/* ============================================================
   UNA LOU — Commerce7 front-end V2 theme overrides
   Load AFTER https://cdn.commerce7.com/v2/commerce7.css
   Variable reference: https://design-docs.commerce7.com/docs/css-overrides
   ============================================================ */

:root {
  --c7-page-width: 820px;
  --c7-page-width-checkout: 1100px;

  --c7-font-family: 'lydian', Georgia, serif;
  --c7-body-text-color: #92311e;
  --c7-alt-text-color: #92311e;
  --c7-font-size: 15px;
  --c7-font-size-sub: 13px;
  --c7-heading-font-family: 'highway gothic', sans-serif;
  --c7-heading-text-color: #92311e;
  --c7-heading-font-weight: normal;

  --c7-primary-color: #92311e;
  --c7-primary-color-text: #92311e;
  --c7-primary-color-dark: #6e2416;
  --c7-primary-color-focus: rgba(146, 49, 30, 0.25);

  --c7-link-color: #92311e;
  --c7-bg: rgba(219, 216, 212, 0.9);
  --c7-bg-alt: rgba(219, 216, 212, 0.6);
  --c7-border-color: #92311e;
  --c7-border-radius: 0;

  --c7-loading-bg: rgba(231, 160, 154, 0.5);
  --c7-modal-border-radius: 0;
  --c7-modal-shadow: none;
  --c7-overlay-bg: rgba(146, 49, 30, 0.35);
  --c7-progress-bar: #92311e;
  --c7-pill-bg: #e7a09a;
  --c7-pill-text-color: #92311e;

  --c7-field-bg: #fff;
  --c7-field-border-radius: 0;
  --c7-field-border-color: #92311e;
  --c7-field-focus-color: rgba(146, 49, 30, 0.1);
  --c7-field-option-selected-color: #92311e;
  --c7-field-option-focus-color: rgba(146, 49, 30, 0.25);
  --c7-field-placeholder: #b58a84;

  --c7-primary-button-bg: #92311e;
  --c7-primary-button-bg-hover: #6e2416;
  --c7-primary-button-text-color: #fff;
  --c7-alt-button-bg: #e7a09a;
  --c7-alt-button-bg-hover: #dd8b84;
  --c7-alt-button-text-color: #92311e;
  --c7-button-border-radius: 0;

  --c7-header-text-color: #92311e;
  --c7-cart-count-bg: #92311e;
  --c7-cart-count-bg-focus: rgba(146, 49, 30, 0.25);
  --c7-cart-count-text-color: #fff;
  --c7-side-cart-shadow: none;
  --c7-dropdown-border-radius: 0;
  --c7-dropdown-shadow: 0 1px 7px 0 rgba(146, 49, 30, 0.2);
  --c7-dropdown-hover: #e7a09a;

  --c7-block-bg: rgba(219, 216, 212, 0.9);
  --c7-block-border-color: #92311e;
  --c7-block-border-radius: 0;
  --c7-block-shadow: none;
}

/* Page veil and page-to-page fades.
   <html class="c7-loading"> is in the markup so nothing paints piecemeal; js/c7.js
   removes it once fonts, images, video and the C7 widgets have visible content
   (capped at 3s). Clicking one of our own links adds html.c7-leaving first.
   The html element carries the textured pink (a screen-sized layer pinned behind the
   page, as body.inner::before in site.css, because iPhone Safari ignores fixed
   backgrounds) and body / #wrapper are transparent, so the texture is the one constant.
   The frame (title graphic, UNA / LOU lettering, four corner symbols) is excluded
   from every fade: it is on every page, so it paints at once and never leaves.
   Only the content between them fades. */
html { background: #e7a09a; }
html::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0; height: 100vh; z-index: -1; pointer-events: none;
  background: #e7a09a url("../assets/images/surface-background.webp") center center / cover no-repeat;
}
body, #wrapper { background: transparent !important; }
/* html::before already draws the texture; skip site.css's copy on body so it does not fade with the page */
body.inner::before { display: none; }

#home > :not(.title, #rose, #una, #lou, #plant, #astro, #flower, #fruit) { transition: opacity 400ms ease; }
html.c7-loading #home > :not(.title, #rose, #una, #lou, #plant, #astro, #flower, #fruit) { opacity: 0; transition: none; }
html.c7-leaving #home > :not(.title, #rose, #una, #lou, #plant, #astro, #flower, #fruit) { opacity: 0; transition: opacity 200ms ease; }

/* Home page only: a slower, more deliberate first reveal (the leave fade stays 200ms) */
body.home #home > :not(.title, #rose, #una, #lou, #plant, #astro, #flower, #fruit) { transition-duration: 900ms; }
html.c7-leaving body.home #home > :not(.title, #rose, #una, #lou, #plant, #astro, #flower, #fruit) { transition-duration: 200ms; }
/* About / Press popups exist on every framed page (no round trip to the home page);
   on scrolling pages they are fixed so they centre in the viewport, not the document */
body.inner .popup { position: fixed; }
/* About / Press popups fade in rather than snapping (site.js forces a reflow first) */
.popup { opacity: 0; transition: opacity 250ms ease; }
.popup.on { opacity: 1; }
/* while fading out (display still block, .on gone) stay centred instead of jumping off-screen */
.popup[style*="display: block"] { left: 50%; }
/* Find page: plain Log in / Cart links stand in for the C7 widgets */
#menu a.c7-plain { margin-left: 33px; }
html.c7-leaving .popup.on { opacity: 0; }
@media (prefers-reduced-motion: reduce) { #home > *, .popup { transition: none !important; } }

/* Account + cart links sit in the nav as small caps like the other menu items.
   The v1 menu is a fixed 570px flex row; with two more items it overflowed and
   flexbox shrank the Instagram icon to 0 width. Let the row size to its content,
   keep it centred, and reserve the widgets' width so nothing jumps when C7 renders. */
/* No transform here: a transformed ancestor becomes the containing block for
   position:fixed descendants, and C7's side cart lives inside #c7-cart. */
/* Home page too: the whole menu (About/Press, Instagram, Log in, Cart) sits under the title
   like on Shop/Find, instead of along the bottom edge as in v1. The 760px/520px breakpoints
   in site.css already put it at the top on every page. */
#home #menu { width: max-content; left: 0; right: 0; margin-left: auto; margin-right: auto; white-space: nowrap; bottom: auto; top: 96px; }
#home #menu > * { flex-shrink: 0; }
#menu #c7-account, #menu #c7-cart { margin-left: 33px; white-space: nowrap; min-height: 20px; }
#menu #c7-account { min-width: 72px; }
#menu #c7-cart    { min-width: 75px; }
/* The nav triggers, never the side cart panel that C7 nests inside #c7-cart.
   Selectors carry #home #menu because site.css styles every `#home #menu button`
   (33px left margin, display:block, 20px line box): that rule caught C7's cart button,
   pushed it 33px right and beat a plain #menu override. Logged in, the account trigger
   is an <a> holding .c7-user-nav__account__name plus a chevron, so it is listed too. */
#home #menu .c7-user-nav__account__login,
#home #menu .c7-user-nav__account > a,
#home #menu .c7-user-nav__account > button,
#home #menu .c7-user-nav__cart > button {
  font: 12px 'highway gothic'; letter-spacing: 3px; text-transform: uppercase; color: #92311e;
  /* C7 pads these 15px top and bottom; the nav row is 20px tall */
  padding: 0; margin: 0; height: 20px; line-height: 20px; display: flex; align-items: center; text-decoration: none;
}
#home #menu .c7-user-nav__account > a:hover, #home #menu .c7-user-nav__cart > button:hover { text-decoration: none; }
/* C7's wrappers are inline-block, which adds baseline space under a 20px child; and it
   reserves 15px on the right of the account for nothing visible. Keep the 33px rhythm. */
#menu .c7-user-nav__account, #menu .c7-user-nav__cart { display: block; }
#menu .c7-user-nav__account { padding-right: 0; }
#menu .c7-user-nav__account__name { display: flex; align-items: center; }
#menu .c7-user-nav__account__name svg { width: 14px; height: 14px; margin-left: 4px; }
/* Bag icon: C7 sizes it 20x22 with vertical-align:text-top, which hung 9px below the
   20px row. Size it like the Instagram icon and let the flex row centre it. */
#menu .c7-user-nav__cart__title { display: flex; align-items: center; height: 20px; }
#menu .c7-user-nav__cart__title svg { display: block; width: 18px; height: 19px; }
#menu .c7-user-nav__cart__count { margin-left: 6px; height: 18px; min-width: 18px; padding: 0 4px; font: bold 11px 'highway gothic'; letter-spacing: 0; align-self: center; }
#menu .c7-side-cart { white-space: normal; text-align: left; }

/* Una Lou has no wine club and no reservations: hide those entries in the account
   dropdown and on the profile pages. Matched by URL so it survives C7 markup changes. */
#c7-account a[href^="/profile/club"], #c7-account a[href^="/profile/reservation"],
#c7-account a[href^="/club"],         #c7-account a[href^="/reservation"],
#c7-content a[href^="/profile/club"], #c7-content a[href^="/profile/reservation"],
#c7-content a[href^="/club"],         #c7-content a[href^="/reservation"] { display: none !important; }
/* No thumbs up / thumbs down product rating on the account pages (the Past Purchases
   block on the dashboard and the order history): C7 draws it as two buttons inside
   .c7-order-item-rating on every order item. Una Lou does not use product ratings. */
#c7-content .c7-order-item-rating { display: none !important; }
/* No "Asterisks indicate required fields" line above C7 forms (log in, sign up,
   account details, addresses, checkout). The asterisks themselves stay. */
.c7-form__required-fields-notice { display: none !important; }
@media screen and (max-width: 760px) {
  #menu #c7-account, #menu #c7-cart { margin-left: 10px; }
}
@media screen and (max-width: 520px) {
  #menu #c7-account, #menu #c7-cart { margin-left: 0; min-width: 0; }
  #home #menu .c7-user-nav__account__login, #home #menu .c7-user-nav__account > a, #home #menu .c7-user-nav__cart > button { font-size: 10px; letter-spacing: 1.5px; }
  #menu .c7-user-nav__cart__count { margin-left: 4px; }

  /* Phone menu: two centred lines, like the old site's one line of page links.
     Line 1: (Home,) Shop, Music, About, Press, Find. Line 2: Instagram, Log in / Sign in, Cart.
     The ::after is a full-width flex item that forces the break; items after it get order 2.
     Same height under the title on every page (the home page was 96px down, from the
     desktop rule above). No transform: C7's side cart is fixed inside #c7-cart. */
  #home #menu {
    top: 57px; left: 16px; right: 16px; width: auto; height: auto; margin: 0;
    flex-wrap: wrap; justify-content: center; column-gap: 14px; row-gap: 0; white-space: normal;
  }
  /* The break item sits on a line of its own, so its height is the space between the two lines */
  #home #menu::after { content: ''; flex-basis: 100%; height: 9px; order: 1; }
  #home #menu > a.instagram, #home #menu > #c7-account, #home #menu > #c7-cart, #home #menu > a.c7-plain { order: 2; }
  /* Instagram is in the menu now; drop the second icon at the bottom of the home page */
  .mobile-social { display: none; }
}

/* Buttons and headings in C7 markup pick up the brand type */
.c7-btn, .c7-button, [class*="c7-"] button[type="submit"] {
  font-family: 'highway gothic', sans-serif; letter-spacing: 2px; text-transform: uppercase; font-size: 12px;
  /* C7 gives its buttons min-height: 46px but lays the label out as a normal block
     line box (18px line + 11px padding = 40px), so the 6px left over all falls
     below the text and the label rides high — most visible on View Cart / Proceed
     to Checkout in the side cart. align-content centres the line box in the
     leftover space without changing display, so widths stay as C7 sized them. */
  align-content: center;
}
[class*="c7-"] h1, [class*="c7-"] h2, [class*="c7-"] h3 {
  letter-spacing: 2px; text-transform: uppercase;
}

/* Account dropdown fades in. C7 toggles display:none -> block on :hover (inside
   @media (hover: hover)), which cannot animate; keep it in the layout and fade
   opacity instead. Touch devices keep C7's own tap-to-open behaviour. */
@media (hover: hover) {
  #menu .c7-user-nav__account__dropdown {
    display: block !important; opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 200ms ease, visibility 0s linear 200ms;
  }
  #menu .c7-user-nav__account:hover .c7-user-nav__account__dropdown,
  #menu .c7-user-nav__account:focus-within .c7-user-nav__account__dropdown {
    opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s;
  }
}
#menu .c7-user-nav__account__dropdown { border: 2px solid #92311e; text-align: left; white-space: normal; }
#menu .c7-user-nav__account__dropdown a { font: 13px 'lydian'; letter-spacing: 0; text-transform: none; }
#menu .c7-user-nav__account__dropdown li a { text-transform: uppercase; font: 11px 'highway gothic'; letter-spacing: 2px; }

/* Profile: C7's grey welcome block and tab bar become site type on the texture */
#c7-content .c7-account__header { background: transparent !important; padding: 0 0 26px !important; text-align: center; }
/* "Hello Gary" + Log out in a paper panel with the popup border */
#c7-content .c7-account__header .c7-wrapper { display: inline-block; width: auto; background: rgba(219, 216, 212, 0.9); border: 2px solid #92311e; padding: 20px 44px 18px; }
#c7-content .c7-account__header p { font: 15px/1.6 'lydian' !important; color: #92311e !important; margin: 0 !important; }
#c7-content .c7-account__header p:first-child { font: 18px 'highway gothic' !important; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 8px !important; }
/* second <p> is "Welcome to your account!" + the Log out link; keep only the link */
#c7-content .c7-account__header p:nth-child(2) { font-size: 0 !important; line-height: 0 !important; }
#c7-content .c7-account__header .c7-link { font: 11px 'highway gothic' !important; letter-spacing: 2px; text-transform: uppercase; margin-left: 0; color: #92311e !important; }
#c7-content .c7-account__menu { background: transparent !important; border-top: 1px solid #92311e; border-bottom: 1px solid #92311e; margin-bottom: 40px !important; }
#c7-content .c7-account__menu ul { justify-content: center; }
#c7-content .c7-account__menu a { font: 12px 'highway gothic' !important; letter-spacing: 3px; text-transform: uppercase; color: #92311e !important; background: transparent !important; border: 0 !important; padding: 14px 18px !important; }
#c7-content .c7-account__menu li.c7-active a { box-shadow: inset 0 -2px 0 #92311e; }
/* Dashboard: the Past Purchases block is the first thing after the two columns
   (account details on the right). C7 leaves only the 20px block margin between
   the account box and the Past Purchases heading; give it some air. */
#c7-content .c7-account-dashboard__columns + .c7-account-dashboard__block { margin-top: 36px; }

/* Music page (c7-v2): the Spotify playlist in a paper panel with the popup border */
body.music .page .intro { margin-bottom: 26px; }
body.music .playlist { background: rgba(219, 216, 212, 0.9); border: 4px solid #92311e; padding: 12px; max-width: 660px; margin: 0 auto; }
body.music .playlist iframe { display: block; width: 100%; height: 560px; border: 0; }
body.music .page .open { margin-top: 22px; }
body.music .page .open a { font: 12px 'highway gothic'; letter-spacing: 3px; text-transform: uppercase; color: #92311e; border-bottom: 2px solid #92311e; padding-bottom: 2px; }
@media screen and (max-width: 520px) {
  body.music .playlist { padding: 8px; border-width: 2px; }
  body.music .playlist iframe { height: 420px; }
}

/* Buy button inside our own product cards (shop page) */
.product .c7-buy-product { display: inline-block; margin-top: 4px; }

/* Side cart and modals go on the paper colour, not white */
.c7-side-cart, .c7-modal { background: rgba(219, 216, 212, 0.98); }

/* Checkout: same frame as Shop and Find (body.inner gives the texture, fixed
   lettering and corner symbols; #home gives the padding and title position).
   C7 paints its two columns on --c7-bg / --c7-bg-alt; make them transparent so the
   pink texture shows through, and turn the order summary into a paper panel with
   the same 4px rust border as the About / Press popups. */
body.checkout #home { padding-top: 130px; }
body.checkout .checkout-main { max-width: var(--c7-page-width-checkout); margin: 0 auto; }
/* C7 pins #c7-content to the viewport (position: fixed; inset: 0) and scrolls inside it.
   Put it back in normal flow so it sits below the title and the page scrolls as usual. */
body.checkout #c7-content.c7-content--checkout {
  position: static !important; inset: auto !important;
  height: auto !important; min-height: 0 !important; overflow: visible !important;
}
body.checkout .c7-checkout,
body.checkout .c7-checkout__background { background: transparent !important; }
body.checkout .c7-checkout .c7-wrapper { gap: 40px; }
body.checkout .c7-checkout__header { padding-top: 0; }
body.checkout .c7-checkout__summary-container {
  background: rgba(219, 216, 212, 0.9) !important;
  border: 4px solid #92311e;
  min-height: 0 !important;
  align-self: flex-start;
  position: sticky; top: 30px;
  padding: 30px 30px 6px !important;
}
/* The shell already shows the title graphic; hide C7's own tenant logo so there is one brand mark */
body.checkout .c7-checkout-logo { display: none !important; }
@media screen and (max-width: 760px) {
  body.checkout #home { padding-top: 120px; }
}
@media screen and (max-width: 520px) {
  body.checkout #home { padding-top: 70px; }
  /* C7's phone header pads 30px above an (empty, hidden) logo and 15px above the steps */
  body.checkout .c7-checkout__header--mobile { padding-top: 0; }
  body.checkout .c7-checkout__header--mobile > a { display: none; }
  body.checkout .c7-breadcrumbs { margin-top: 0; }
  /* Four steps on one line: C7 pads each 13px/11px, which wraps "4. Review" */
  body.checkout .c7-breadcrumbs li { padding-left: 6px; padding-right: 7px; margin: 0 1px; }
}

/* Google Pay / Apple Pay buttons on the first checkout step. Fullsteam puts the Google Pay
   iframe (240px, inline margin-right: 25px) and <apple-pay-button> inline in a centred div.
   The margin is meant for sitting side by side, but two 240px buttons never fit the column,
   so they wrap and the margin pushes Google Pay 12px left of Apple Pay (seen on iPhone,
   Nov 2026). Stack them, centred, with no side margin. */
#fullsteam-hosted-digital-wallet-div {
  display: flex; flex-direction: column; align-items: center; row-gap: 10px;
}
#fullsteam-hosted-digital-wallet-div > iframe { margin: 0 !important; max-width: 100%; }
#fullsteam-hosted-digital-wallet-div > apple-pay-button { max-width: 100%; }

/* "Check out quickly with" / "Or" dividers around the Apple Pay / Google Pay buttons.
   C7 runs one line across the full width and hides the middle behind the label's
   background (--c7-bg, paper), which shows as a grey box on the pink. Draw the line
   either side of the label instead, with no background. All screen sizes.
   The label is a <p><span> in the first divider and a bare <span> in the "Or" one. */
.c7-divider { display: flex; align-items: center; gap: 10px; }
.c7-divider::before, .c7-divider::after {
  content: '' !important; display: block !important; position: static !important;
  flex: 1; width: auto !important; height: 1px; background: #92311e;
}
.c7-divider > p { margin: 0; }
.c7-divider span { background: transparent !important; padding: 0 !important; }

/* "Need help? Call us" question mark (cart, checkout). C7 draws it as an SVG image with a
   hard-coded black stroke, which CSS colour cannot reach; same icon, stroke in rust. */
.c7-callout:not(.c7-callout--club)::before {
  content: url('data:image/svg+xml; utf8, <svg aria-hidden="true" focusable="false" role="presentation" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%2392311e" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>');
}

/* "$24.00 / Bottle" on buy buttons (Shop, product pages). C7 sets the unit at its smaller
   sub size with vertical-align: text-top, a superscript that sits crooked in Highway Gothic.
   Same size and baseline as the price, so it reads as one line. */
.c7-product__add-to-cart__price__variant { font-size: inherit; vertical-align: baseline; }
