/* Foxy's default pages put id="fc" on <html>; our templates and the sidecart put it on a div, hence the :is() prefix.
   Velographs Foxy cart: sidecart, full-page cart, checkout, receipt. Spec: docs/plan/14-foxy-cart.md.
   Self-contained (Foxy's hosted pages don't have the site tokens). Every rule is prefixed `:is(html#fc body, html body #fc)`
   so it beats Foxy's `#fc .fc-...` rules, which load after this file. Matches src/styles/builder.css. */

/* ---------- 0. hosted-page header (outside #fc; used by public/foxy/*.html only) ---------- */
body.vg-foxy-page, html#fc body { background: #F4F0E6; margin: 0; }
.vg-foxy-header { background: #F4F0E6; border-bottom: 1px solid rgba(20, 26, 51, 0.16); }
.vg-foxy-header__inner { max-width: 1360px; margin: 0 auto; padding: 18px 40px; box-sizing: border-box; }
.vg-foxy-header__brand {
  display: inline-flex; align-items: center; min-height: 44px; color: #141A33; text-decoration: none;
  font-family: "Instrument Serif", serif; font-size: 30px; letter-spacing: 0.04em;
}
.vg-foxy-header__brand:hover { color: #B5452F; }
.vg-foxy-main { max-width: 1360px; margin: 0 auto; padding: 32px 40px 64px; box-sizing: border-box; }

/* ---------- 1. tokens, base, bleed fixes ---------- */
:is(html#fc, :is(html#fc body, html body #fc)) {
  --paper: #F4F0E6; --ink: #141A33; --text: #2C3148; --label: #4A4F63; --clay: #B5452F; --coral: #D9455F;
  --white: #FFFFFF; --hair: rgba(20, 26, 51, 0.16); --field: rgba(20, 26, 51, 0.3);
  --serif: "Instrument Serif", Georgia, serif; --sans: Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace; --numeral: Monoton, "Instrument Serif", serif;
  background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5;
  text-shadow: none; -webkit-font-smoothing: antialiased;
}
:is(html#fc body, html body #fc) *, :is(html#fc body, html body #fc) *::before, :is(html#fc body, html body #fc) *::after { text-shadow: none; }
/* site global.css bleed: img/svg block, zeroed margins, link hover colour */
:is(html#fc body, html body #fc) svg { display: inline-block; vertical-align: middle; }
:is(html#fc body, html body #fc) img { display: inline-block; }
:is(html#fc body, html body #fc) p { margin: 0 0 8px; }
:is(html#fc body, html body #fc) a { color: var(--ink); }
:is(html#fc body, html body #fc) a:hover { color: var(--clay); }
:is(html#fc body, html body #fc) a.fc-button:hover, :is(html#fc body, html body #fc) a.fc-btn-action:hover, :is(html#fc body, html body #fc) a.fc-sidecart-button:hover { color: inherit; }
:is(html#fc body, html body #fc) .fc-logo, :is(html#fc body, html body #fc) .fc-logo__image { display: none; }
/* Foxy's grey panels and boxes */
:is(html#fc body, html body #fc) .fc-sidebar, :is(html#fc body, html body #fc) .fc-sidebar--cart, :is(html#fc body, html body #fc) .fc-sidebar--checkout,
:is(html#fc body, html body #fc) .fc-checkout__main, :is(html#fc body, html body #fc) .fc-checkout__main__contents, :is(html#fc body, html body #fc) .fc-cart,
:is(html#fc body, html body #fc) .fc-transaction, :is(html#fc body, html body #fc) .fc-transaction__section, :is(html#fc body, html body #fc) .fc-well,
:is(html#fc body, html body #fc) .fc-panel, :is(html#fc body, html body #fc) .fc-container__grid--country {
  background: transparent; border-radius: 0; box-shadow: none;
}
:is(html#fc body, html body #fc) :focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; box-shadow: none; }

/* ---------- 2. headings and small labels ---------- */
:is(html#fc body, html body #fc) h1, :is(html#fc body, html body #fc) h2, :is(html#fc body, html body #fc) h3, :is(html#fc body, html body #fc) .fc-cart__title__header,
:is(html#fc body, html body #fc) .fc-checkout__section__title {
  margin: 0 0 16px; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1;
  letter-spacing: 0; text-align: left; text-transform: none; color: var(--ink);
}
:is(html#fc body, html body #fc) .fc-cart__header .fc-cart__title__header, :is(html#fc body, html body #fc) .fc-cart__title__header { font-size: 40px; line-height: 1; }
:is(html#fc body, html body #fc) h4, :is(html#fc body, html body #fc) h5, :is(html#fc body, html body #fc) legend, :is(html#fc body, html body #fc) .fc-transaction__ui__header,
:is(html#fc body, html body #fc) .fc-form-label, :is(html#fc body, html body #fc) label {
  margin: 0 0 6px; font-family: var(--mono); font-size: 12px; font-weight: 400; line-height: 1.6;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--label);
}
:is(html#fc body, html body #fc) .fc-subtotal__label h5 {
  margin: 0; font-family: var(--sans); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--text);
}
:is(html#fc body, html body #fc) .fc-order-quantity {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label);
}

/* ---------- 3. line items ---------- */
:is(html#fc body, html body #fc) .fc-cart__item {
  padding: 20px 0; border: 0; border-bottom: 1px solid var(--hair); background: transparent;
}
:is(html#fc body, html body #fc) .fc-cart__item__name {
  font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.15; color: var(--ink);
}
:is(html#fc body, html body #fc) ul.fc-cart__item__options { margin: 8px 0 0; padding: 0; list-style: none; }
:is(html#fc body, html body #fc) li.fc-cart__item__option {
  display: flex; align-items: baseline; margin: 0 0 4px; padding: 0; border: 0;
  font-size: 0; /* hides the bare ": " text node; flex (not grid) so that node doesn't become a grid cell */
}
:is(html#fc body, html body #fc) .fc-cart__item__option__name {
  flex: 0 0 76px; margin-right: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label);
}
:is(html#fc body, html body #fc) .fc-cart__item__option__value { flex: 1 1 auto; min-width: 0; font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--ink); text-transform: none; }
:is(html#fc body, html body #fc) .fc-cart__item__total p {
  margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1.15; text-align: right; color: var(--ink);
}
:is(html#fc body, html body #fc) input.fc-cart__item__quantity__input {
  width: 72px; text-align: center; padding: 0 8px;
}
:is(html#fc body, html body #fc) .fc-cart__item__remove a {
  white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay); text-decoration: underline; text-underline-offset: 4px;
}
:is(html#fc body, html body #fc) .fc-cart__item__remove a:hover { color: var(--ink); }

/* ---------- 4. inputs, selects, checkboxes (the .fld__box look) ---------- */
:is(html#fc body, html body #fc) .fc-form-control:not([type=checkbox]):not([type=radio]), :is(html#fc body, html body #fc) input[type="text"], :is(html#fc body, html body #fc) input[type="email"],
:is(html#fc body, html body #fc) input[type="tel"], :is(html#fc body, html body #fc) input[type="number"], :is(html#fc body, html body #fc) input[type="password"],
:is(html#fc body, html body #fc) input.fc-location, :is(html#fc body, html body #fc) select, :is(html#fc body, html body #fc) textarea, :is(html#fc body, html body #fc) .fc-stripe-element {
  box-sizing: border-box; min-height: 46px; padding: 0 18px; border: 1px solid var(--field); border-radius: 14px;
  background: var(--white); box-shadow: none; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5;
}
:is(html#fc body, html body #fc) textarea { padding-block: 12px; }
:is(html#fc body, html body #fc) .fc-stripe-element { display: flex; align-items: center; }
:is(html#fc body, html body #fc) .fc-form-control::placeholder, :is(html#fc body, html body #fc) input::placeholder { color: var(--label); opacity: 1; }
:is(html#fc body, html body #fc) .fc-form-control:not([type=checkbox]):not([type=radio]):focus, :is(html#fc body, html body #fc) input:focus, :is(html#fc body, html body #fc) select:focus,
:is(html#fc body, html body #fc) textarea:focus, :is(html#fc body, html body #fc) .fc-stripe-element--focus {
  outline: 2px solid var(--clay); outline-offset: 3px; border-color: var(--field); box-shadow: none;
}
:is(html#fc body, html body #fc) input[type="checkbox"], :is(html#fc body, html body #fc) input[type="radio"] { accent-color: var(--ink); min-height: 0; }
:is(html#fc body, html body #fc) .fc-form-group { margin-bottom: 16px; }
:is(html#fc body, html body #fc) .fc-container__grid--country .fc-foxycomplete-flag { display: inline-block; }

/* ---------- 5. buttons ---------- */
/* secondary: Go!, Calculate, Add Coupon, Apply, check email, toggle */
:is(html#fc body, html body #fc) .fc-button, :is(html#fc body, html body #fc) button.fc-transaction__ui__toggle, :is(html#fc body, html body #fc) .fc-button--check-email,
:is(html#fc body, html body #fc) .fc-button--cancel {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 44px;
  padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; box-shadow: none;
  color: var(--ink); font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s;
}
:is(html#fc body, html body #fc) .fc-button:hover, :is(html#fc body, html body #fc) button.fc-transaction__ui__toggle:hover,
:is(html#fc body, html body #fc) .fc-button--check-email:hover, :is(html#fc body, html body #fc) .fc-button--cancel:hover {
  background: var(--ink); color: var(--paper);
}
/* primary: the .bld__cta look */
:is(html#fc body, html body #fc) .fc-action--checkout--button, :is(html#fc body, html body #fc) .fc-button--submit {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; box-sizing: border-box;
  min-height: 56px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 28px; background: var(--ink);
  color: var(--paper); font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; transition: background-color .2s;
}
:is(html#fc body, html body #fc) .fc-action--checkout--button:hover, :is(html#fc body, html body #fc) .fc-button--submit:hover { background: #232b4f; color: var(--paper); }
:is(html#fc body, html body #fc) .fc-action--checkout--button svg, :is(html#fc body, html body #fc) .fc-button--submit svg { fill: var(--paper); }
/* sidecart top bar */
:is(html#fc body, html body #fc) .fc-sidecart-only-fixed {
  background: var(--paper); border: 0; border-bottom: 1px solid var(--hair); box-shadow: none;
}
:is(html#fc body, html body #fc) .fc-sidecart-only-fixed a.fc-sidecart-button, :is(html#fc body, html body #fc) .fc-sidecart-only-fixed a.fc-btn-action {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
  background: transparent; box-shadow: none; color: var(--ink); font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
}
:is(html#fc body, html body #fc) .fc-sidecart-only-fixed svg { fill: var(--ink); }
:is(html#fc body, html body #fc) .fc-sidecart-only-fixed .fc-fixed-button-right a.fc-sidecart-button, :is(html#fc body, html body #fc) .fc-sidecart-only-fixed .fc-fixed-button-right a.fc-btn-action {
  background: var(--ink); color: var(--paper);
}
:is(html#fc body, html body #fc) .fc-sidecart-only-fixed .fc-fixed-button-right a:hover { background: #232b4f; color: var(--paper); }
:is(html#fc body, html body #fc) .fc-sidecart-only-fixed .fc-fixed-button-right svg { fill: var(--paper); }
:is(html#fc body, html body #fc) .fc-sidecart-only-fixed .fc-fixed-button-left a:hover { color: var(--clay); }

/* ---------- 6. totals ---------- */
:is(html#fc body, html body #fc) ul.fc-transaction { margin: 0; padding: 0; list-style: none; }
:is(html#fc body, html body #fc) li.fc-transaction__section { padding: 16px 0; border: 0; border-bottom: 1px solid var(--hair); }
:is(html#fc body, html body #fc) .fc-transaction table { width: 100%; border-collapse: collapse; }
:is(html#fc body, html body #fc) tr.fc-subtotal--row td { padding: 4px 0; border: 0; font-family: var(--sans); font-size: 15px; color: var(--text); }
:is(html#fc body, html body #fc) td.fc-subtotal__value { text-align: right; font-variant-numeric: tabular-nums; }
:is(html#fc body, html body #fc) li.fc-transaction__total, :is(html#fc body, html body #fc) li.fc-transaction__total h5, :is(html#fc body, html body #fc) .fc-transaction__total .fc-subtotal__label, :is(html#fc body, html body #fc) .fc-transaction__total .fc-subtotal__label h5 {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
}
:is(html#fc body, html body #fc) .fc-transaction__total .fc-subtotal__value {
  font-family: var(--serif); font-size: 32px; line-height: 1.1; color: var(--ink);
}

/* ---------- 7. checkout extras ---------- */
:is(html#fc body, html body #fc) .fc-checkout__section { padding: 24px 0; border: 0; border-bottom: 1px solid var(--hair); background: transparent; }
:is(html#fc body, html body #fc) .fc-section-counter {
  display: inline-block; width: auto; height: auto; margin-right: 12px; padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; font-family: var(--numeral); font-size: 28px; line-height: 1; color: var(--coral);
}
:is(html#fc body, html body #fc) .fc-alert--danger {
  padding: 14px 18px; border: 1px solid var(--clay); border-radius: 14px; background: var(--white); color: var(--ink); box-shadow: none;
}
:is(html#fc body, html body #fc) .fc-alert--danger h1, :is(html#fc body, html body #fc) .fc-alert--danger h2, :is(html#fc body, html body #fc) .fc-alert--danger h3,
:is(html#fc body, html body #fc) .fc-alert--danger h4, :is(html#fc body, html body #fc) .fc-alert--danger h5, :is(html#fc body, html body #fc) .fc-alert--danger strong {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay);
}
:is(html#fc body, html body #fc) .fc-checkout__additional-field--tos, :is(html#fc body, html body #fc) .fc-checkout__additional-field--secure-transfer {
  font-family: var(--sans); font-size: 15px; color: var(--text);
}

/* ---------- 7b. layout cards, titles, payment, checkboxes, groups (live-DOM fixes) ---------- */
:is(html#fc body, html body #fc) #fc-checkout-container, :is(html#fc body, html body #fc) .fc-checkout__main, :is(html#fc body, html body #fc) .fc-checkout__row { background: transparent !important; }
:is(html#fc body, html body #fc) .fc-sidebar--checkout {
  /* no padding-bottom/margin-bottom: Foxy's equal-height trick depends on them */
  background: transparent; box-shadow: inset 1px 0 0 var(--hair); padding-top: 28px; padding-left: 28px; padding-right: 8px;
}
:is(html#fc body, html body #fc) .fc-sidebar--checkout .fc-sidebar--cart { background: transparent; padding: 0; }
:is(html#fc body, html body #fc) .fc-sidebar--cart .fc-cart__header { padding-top: 24px; }
:is(html#fc body, html body #fc) .fc-sidebar--checkout .fc-cart__header { padding-top: 0; }
:is(html#fc body, html body #fc) fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
:is(html#fc body, html body #fc) fieldset > legend {
  display: flex; align-items: baseline; gap: 12px; width: 100%; margin: 0 0 20px; padding: 0; border: 0;
  font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.1; letter-spacing: 0; text-transform: none; color: var(--ink);
}
:is(html#fc body, html body #fc) fieldset > legend .fc-section-counter { margin-right: 0; }
/* payment */
:is(html#fc body, html body #fc) .fc-input-group-container--radio {
  border: 1px solid var(--field); border-radius: 14px; background: var(--white); box-shadow: none; padding: 16px;
}
:is(html#fc body, html body #fc) .fc-input-group-container--radio.fc-input-group-container--active { border-color: var(--ink); }
:is(html#fc body, html body #fc) .fc-input-group-container__title--forced {
  background-color: transparent !important; background: transparent; border: 0; box-shadow: none; padding: 0 0 10px; font-family: var(--sans); font-size: 15px;
  letter-spacing: 0; text-transform: none; color: var(--ink);
}
:is(html#fc body, html body #fc) #fc-icon-lock-large { width: 28px; height: 28px; fill: var(--label); }
/* checkboxes and radios */
:is(html#fc body, html body #fc) input[type=checkbox], :is(html#fc body, html body #fc) input[type=radio] {
  width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--ink); min-height: 0; padding: 0;
}
:is(html#fc body, html body #fc) .fc-input-group-container--checkbox, :is(html#fc body, html body #fc) .fc-input-group-container--checkbox * {
  background: transparent; border: 0; box-shadow: none; padding: 0;
}
:is(html#fc body, html body #fc) .fc-input-group-container--checkbox .fc-input-group-container__title, :is(html#fc body, html body #fc) label:has(input[type=checkbox]), :is(html#fc body, html body #fc) label:has(input[type=radio]) {
  display: flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--sans); font-size: 15px; line-height: 1.4;
  letter-spacing: 0; text-transform: none; color: var(--text);
}
:is(html#fc body, html body #fc) .fc-input-group-container--checkbox :is(p, small, .fc-form-help, .fc-input-group-container__description) {
  padding-left: 28px; font-family: var(--sans); font-size: 14px; color: var(--label);
}
/* Checkbox title rows. !important is used only here: Foxy draws a fake 28px box with label::before and keeps a grey
   label background through more specific rules in its own sheet, which load after ours. */
:is(html#fc body, html body #fc) .fc-input-group-container--checkbox .fc-input-group-container__title::before,
:is(html#fc body, html body #fc) .fc-input-group-container--checkbox label::before { display: none !important; content: none !important; }
:is(html#fc body, html body #fc) label.fc-input-group-container__title.fc-form-label--secure-transfer,
:is(html#fc body, html body #fc) .fc-input-group-container--checkbox label.fc-input-group-container__title { background: transparent !important; padding: 0 !important; border: 0 !important; }
/* empty totals rows would show a double hairline */
:is(html#fc body, html body #fc) li.fc-transaction__taxes:not(:has(td)), :is(html#fc body, html body #fc) li.fc-transaction__shipping:not(:has(td)) { display: none; }
:is(html#fc body, html body #fc) .fc-transaction__header, :is(html#fc body, html body #fc) .fc-transaction h2, :is(html#fc body, html body #fc) .fc-transaction h3 { text-align: left; }
/* Foxy sends option values as typed/lowercase: capitalise only the fixed choices, never Title or Subtitle */
:is(html#fc body, html body #fc) li.fc-cart__item__option__style .fc-cart__item__option__value,
:is(html#fc body, html body #fc) li.fc-cart__item__option__frame .fc-cart__item__option__value,
:is(html#fc body, html body #fc) li.fc-cart__item__option__size .fc-cart__item__option__value { text-transform: capitalize; }
/* input + button groups */
:is(html#fc body, html body #fc) .fc-input-group, :is(html#fc body, html body #fc) .fc-form-group--multiple-inline { display: flex; gap: 8px; align-items: center; }
:is(html#fc body, html body #fc) .fc-input-group-container, :is(html#fc body, html body #fc) .fc-input-group { max-width: 100%; box-sizing: border-box; }
:is(html#fc body, html body #fc) .fc-input-group .fc-form-control { flex: 1 1 auto; width: auto; min-width: 0; border-radius: 14px; }
:is(html#fc body, html body #fc) .fc-input-group__button { position: static; display: block; width: auto; float: none; }
:is(html#fc body, html body #fc) .fc-input-group__button .fc-button { flex: none; padding: 0 16px; white-space: nowrap; }
:is(html#fc body, html body #fc) .fc-input-group__button, :is(html#fc body, html body #fc) .fc-postal-code-entry__submit { flex: none; margin: 0; }
:is(html#fc body, html body #fc) .fc-input-group__button .fc-button, :is(html#fc body, html body #fc) .fc-postal-code-entry__submit .fc-button { min-height: 46px; border-radius: 999px; }
/* cart header and continue-shopping row */
:is(html#fc body, html body #fc) .fc-cart__title, :is(html#fc body, html body #fc) .fc-order-quantity, :is(html#fc body, html body #fc) .fc-cancel-continue-shopping { text-align: left; justify-content: flex-start; }
:is(html#fc body, html body #fc) .fc-order-quantity span { color: inherit; }
:is(html#fc body, html body #fc) .fc-cancel-continue-shopping { margin-top: 12px; }
:is(html#fc body, html body #fc) .fc-button--cancel svg { margin-right: 8px; fill: var(--ink); }
:is(html#fc body, html body #fc) .fc-button--cancel:hover svg { fill: var(--paper); }
/* discounts row */
:is(html#fc body, html body #fc) .fc-transaction__discounts .fc-transaction__ui { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
/* disabled submit */
:is(html#fc body, html body #fc) .fc-button--submit[disabled], :is(html#fc body, html body #fc) .fc-button--submit.disabled { opacity: 0.45; cursor: not-allowed; }


/* ---------- 7c. sidecart panel, spacing, top bar, postcode row ---------- */
html body [data-fc-sidecart] { background: #F4F0E6; } /* outside #fc: no custom properties here */
:is(html#fc body, html body #fc) #fc-cart.fc-container { background: var(--paper); }
:is(html#fc body, html body #fc) #fc-cart.fc-container { padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
:is(html#fc body, html body #fc) .fc-cart__main__content { padding: 0; }
:is(html#fc body, html body #fc) .fc-container__row { margin-left: 0; margin-right: 0; }
/* line item: details take the remaining width, quantity/price column stays narrow */
:is(html#fc body, html body #fc) .fc-cart__item.fc-container__row { display: flex; flex-wrap: nowrap; gap: 16px; align-items: flex-start; }
:is(html#fc body, html body #fc) .fc-cart__item.fc-container__row::before, :is(html#fc body, html body #fc) .fc-cart__item.fc-container__row::after { display: none; }
:is(html#fc body, html body #fc) .fc-cart__item__details { flex: 1; min-width: 0; width: auto; float: none; }
:is(html#fc body, html body #fc) .fc-cart__item__totals { flex: none; width: auto; float: none; }
/* postcode row */
:is(html#fc body, html body #fc) .fc-postal-code-entry { max-width: 100%; }
:is(html#fc body, html body #fc) .fc-postal-code-entry .fc-form-group--multiple-inline { width: 100%; box-sizing: border-box; display: flex; gap: 8px; align-items: center; }
:is(html#fc body, html body #fc) .fc-postal-code-entry .fc-form-control { width: 100%; }
:is(html#fc body, html body #fc) .fc-postal-code-entry__submit { flex: none; width: auto; }
/* sidecart top bar */
:is(html#fc body, html body #fc) nav.fc-sidecart-only-fixed {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; box-sizing: border-box;
  padding: 12px 12px; background: var(--paper);
}
:is(html#fc body, html body #fc) nav.fc-sidecart-only-fixed .fc-fixed-button-left, :is(html#fc body, html body #fc) nav.fc-sidecart-only-fixed .fc-fixed-button-right { float: none; width: auto; min-width: 0; }
:is(html#fc body, html body #fc) nav.fc-sidecart-only-fixed a.fc-sidecart-button, :is(html#fc body, html body #fc) nav.fc-sidecart-only-fixed a.fc-btn-action { white-space: nowrap; padding: 0 14px; font-size: 11px; }
/* checkbox rows: cancel any negative offset Foxy gives the fake-box layout */
:is(html#fc body, html body #fc) .fc-checkout__additional-field--tos, :is(html#fc body, html body #fc) .fc-checkout__additional-field--secure-transfer, :is(html#fc body, html body #fc) label:has(input[type=checkbox]) { margin-left: 0; left: auto; }
:is(html#fc body, html body #fc) .fc-checkout__additional-field--tos input[type=checkbox], :is(html#fc body, html body #fc) .fc-checkout__additional-field--secure-transfer input[type=checkbox],
:is(html#fc body, html body #fc) label:has(input[type=checkbox]) input[type=checkbox] { position: static; margin-left: 0; left: auto; }

/* ---------- 7d. checkout form: one input column (161px label column + 16px gutter) ---------- */
:is(html#fc body, html body #fc) .fc-checkout__main__form .fc-form-group {
  display: grid; grid-template-columns: 161px minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; align-items: center;
  margin-left: 0; margin-right: 0;
}
:is(html#fc body, html body #fc) .fc-checkout__main__form .fc-form-group > * { float: none; width: auto; max-width: none; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
:is(html#fc body, html body #fc) .fc-checkout__main__form .fc-form-group > label, :is(html#fc body, html body #fc) .fc-checkout__main__form .fc-form-group > .fc-form-label { grid-column: 1; }
:is(html#fc body, html body #fc) .fc-checkout__main__form .fc-form-group > :first-child:not(label):not(.fc-form-label) { grid-column-start: 2; }
:is(html#fc body, html body #fc) .fc-checkout__main__form .fc-form-group > :is(.fc-container__grid--input--customer-email, .fc-container-checkout__grid--postal-code, .fc-container__grid--postal-code, .fc-container__grid--country) { grid-column: 2 / -1; }
/* nested form groups are flex rows, not grids (a nested grid would indent a second time) */
:is(html#fc body, html body #fc) .fc-checkout__main__form .fc-form-group .fc-form-group { display: flex; flex-wrap: nowrap; gap: 0; align-items: center; grid-template-columns: none; }
:is(html#fc body, html body #fc) .fc-checkout__main__form .fc-form-group .fc-form-group > * { grid-column: auto; }
/* checkbox and submit wrappers sit in the outer grid's input columns */
:is(html#fc body, html body #fc) .fc-checkout__main__form .fc-checkout__additional-field--tos, :is(html#fc body, html body #fc) .fc-checkout__main__form .fc-checkout__additional-field--secure-transfer,
:is(html#fc body, html body #fc) .fc-checkout__main__form .fc-form-group .fc-input-group-container--checkbox, :is(html#fc body, html body #fc) .fc-checkout__main__form .fc-container__grid--checkout-submit {
  display: block; grid-template-columns: none; grid-column: 2 / -1; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0;
}
:is(html#fc body, html body #fc) .fc-checkout__main__form .fc-checkout__additional-field--tos > *, :is(html#fc body, html body #fc) .fc-checkout__main__form .fc-checkout__additional-field--secure-transfer > *, :is(html#fc body, html body #fc) .fc-checkout__main__form .fc-container__grid--checkout-submit > * { grid-column: auto; }
:is(html#fc body, html body #fc) .fc-checkout__main__form .fc-form-group > .fc-container__grid--use-different-address { grid-column: 2 / -1; }
:is(html#fc body, html body #fc) .fc-checkout__main__form .fc-checkout__additional-field--secure-transfer .fc-form-group { display: block; }
:is(html#fc body, html body #fc) .fc-checkout__main__form .fc-checkout__additional-field--secure-transfer p { padding-left: 0; margin-top: 8px; }
:is(html#fc body, html body #fc) .fc-input-group-container--checkbox .fc-input-group-container__title { margin-left: 0; }
:is(html#fc body, html body #fc) .fc-checkout__main__form .fc-input-group-container--checkbox :is(p, small, .fc-form-help, .fc-input-group-container__description) { padding-left: 0; }

/* ---------- 7e. checkout sidebar and sidecart refinements ---------- */
:is(html#fc body, html body #fc) .fc-transaction__header { margin-top: 32px; }
html body [data-fc-sidecart] #fc .fc-cart__item__option__name { flex: 0 0 76px; margin-right: 10px; }
html body [data-fc-sidecart] #fc .fc-cart__item__option__value { font-size: 14px; }
html body [data-fc-sidecart] #fc-cart.fc-container { padding-top: 89px; } /* top bar (65px) plus 24px */
html body [data-fc-sidecart] #fc :is(.fc-container__grid, .fc-cart__header, .fc-address-entry, ul.fc-transaction, .fc-form-group--multiple-inline, .fc-container__grid--postal-code) {
  padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0;
}
html body [data-fc-sidecart] #fc .fc-postal-code-entry, html body [data-fc-sidecart] #fc .fc-postal-code-entry .fc-form-group--multiple-inline { overflow: visible; }

:is(html#fc body, html body #fc) .fc-postal-code-entry .fc-form-group--multiple-inline > .fc-container__grid--postal-code.fc-container__grid--postal-code { flex: 1 1 auto; min-width: 0; max-width: 240px; }
:is(html#fc body, html body #fc) .fc-postal-code-entry .fc-form-group--multiple-inline > .fc-container__grid--postal-code-actions.fc-container__grid--postal-code-actions { flex: none; width: auto; margin-left: 0; }
/* Foxy uses !important rules with ID selectors, and its sidecart sheet loads after ours, so the rules below need
   doubled or tripled IDs (#fc#fc works whether #fc is on <html> or a div). */
#fc#fc .fc-button--submit, #fc#fc .fc-action--checkout--button { text-shadow: none !important; }
#fc#fc#fc .fc-cart__item__details { padding-left: 0 !important; padding-right: 0 !important; }
/* Foxy forces margin-left: -18px on the postcode submit wrapper */
#fc#fc#fc .fc-postal-code-entry__submit { margin-left: 8px !important; }
#fc#fc .fc-input-group-container--checkbox .fc-input-group-container__title { display: block !important; position: relative; padding-left: 28px !important; min-height: 0; line-height: 1.5; }
#fc#fc .fc-input-group-container--checkbox input[type=checkbox] { position: static !important; transform: none; margin: 0 !important; width: 18px; height: 18px; }
#fc#fc .fc-input-group-container--checkbox .fc-input-group-container__title > input[type=checkbox] { position: absolute !important; left: 0; top: 50%; transform: translateY(-50%); }
:is(html#fc body, html body #fc) .fc-postal-code-entry .fc-form-group--multiple-inline.fc-form-group--multiple-inline { gap: 0; }
:is(html#fc body, html body #fc) .fc-checkout__main__form .fc-form-group > .fc-container__grid--payment-method { grid-column: 2 / -1; }
:is(html#fc body, html body #fc) li:is(.fc-cart__item__option__style, .fc-cart__item__option__frame, .fc-cart__item__option__size, .fc-cart__item__option__speedunit) .fc-cart__item__option__value { white-space: nowrap; }

/* ---------- 8. phone ---------- */
@media (max-width: 760px) {
  :is(html#fc body, html body #fc) .fc-checkout__main__form .fc-form-group { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  :is(html#fc body, html body #fc) .fc-checkout__main__form .fc-form-group > label, :is(html#fc body, html body #fc) .fc-checkout__main__form .fc-form-group > .fc-form-label, :is(html#fc body, html body #fc) .fc-checkout__main__form .fc-form-group > :first-child:not(label):not(.fc-form-label),
  :is(html#fc body, html body #fc) .fc-checkout__main__form .fc-form-group > :is(.fc-container__grid--input--customer-email, .fc-container-checkout__grid--postal-code, .fc-container__grid--postal-code, .fc-container__grid--country),
  :is(html#fc body, html body #fc) .fc-checkout__main__form .fc-form-group > .fc-container__grid--use-different-address, :is(html#fc body, html body #fc) .fc-checkout__main__form .fc-form-group > .fc-container__grid--payment-method, :is(html#fc body, html body #fc) .fc-checkout__main__form .fc-checkout__additional-field--tos, :is(html#fc body, html body #fc) .fc-checkout__main__form .fc-checkout__additional-field--secure-transfer,
  :is(html#fc body, html body #fc) .fc-checkout__main__form .fc-form-group .fc-input-group-container--checkbox, :is(html#fc body, html body #fc) .fc-checkout__main__form .fc-container__grid--checkout-submit { grid-column: 1 / -1; }
  :is(html#fc body, html body #fc) label:has(input[type=checkbox]) { position: static; margin-left: 0; left: auto; }
  .vg-foxy-header__inner { padding: 12px 24px; }
  .vg-foxy-header__brand { font-size: 26px; letter-spacing: 0.03em; }
  .vg-foxy-main { padding-inline: 24px; }
  :is(html#fc body, html body #fc) .fc-cart__header .fc-cart__title__header, :is(html#fc body, html body #fc) .fc-cart__title__header { font-size: 32px; }
  :is(html#fc body, html body #fc) .fc-sidebar--cart { width: 100%; max-width: 100%; }
  :is(html#fc body, html body #fc) .fc-button--submit, :is(html#fc body, html body #fc) .fc-action--checkout--button { min-height: 52px; border-radius: 26px; }
}

/* ---------- 9. motion ---------- */
@media (prefers-reduced-motion: reduce) {
  :is(html#fc body, html body #fc) *, :is(html#fc body, html body #fc) *::before, :is(html#fc body, html body #fc) *::after { transition: none; animation: none; scroll-behavior: auto; }
}

/* ---------- 14b. line-item thumbnail (the customer's own map; gift cards get a fixed image) ----------
   Foxy markup (live, Nov 5): .fc-cart__items--with-images > .fc-cart__item > .fc-cart__item__details-and-image >
   [.fc-cart__item__image > span > img.fc-cart__item__image__img, .fc-cart__item__details > [.fc-cart__item__name, ul.fc-cart__item__options]]
   + .fc-cart__item__totals. Every item gets an image div once any item has an image; empty ones are hidden.
   Layout: thumbnail beside the product name, options full width underneath, totals on the right. Posters are square-cornered. */
#fc#fc .fc-cart__items--with-images .fc-cart__item { display: flex !important; align-items: flex-start; gap: 12px; }
#fc#fc .fc-cart__items--with-images .fc-cart__item__details-and-image { flex: 1 1 auto; min-width: 0; width: auto !important; float: none !important; }
#fc#fc .fc-cart__items--with-images .fc-cart__item__totals { flex: 0 0 auto; float: none !important; margin-left: auto; }
#fc#fc .fc-cart__item__image:not(:has(img)) { display: none !important; }
#fc#fc .fc-cart__items--with-images .fc-cart__item__details-and-image:has(img) { display: grid !important; grid-template-columns: 72px minmax(0, 1fr); column-gap: 16px; row-gap: 16px; align-items: start; }
#fc#fc .fc-cart__item__details-and-image:has(img) > .fc-cart__item__details { display: contents !important; }
#fc#fc .fc-cart__item__details-and-image:has(img) .fc-cart__item__image { grid-column: 1; grid-row: 1; width: 72px !important; max-width: 72px !important; height: auto !important; padding: 0 !important; margin: 0 !important; float: none !important; position: static !important; }
#fc#fc .fc-cart__item__details-and-image:has(img) .fc-cart__item__name { grid-column: 2; grid-row: 1; margin: 0 !important; }
#fc#fc .fc-cart__item__details-and-image:has(img) .fc-cart__item__details > :not(.fc-cart__item__name) { grid-column: 1 / -1; }
#fc#fc .fc-cart__item__image > span { display: block !important; padding: 0 !important; margin: 0 !important; background: none !important; border: 0 !important; border-radius: 0 !important; }
#fc#fc .fc-cart__item__image__img { display: block !important; width: 72px !important; height: 96px !important; max-width: none !important; max-height: none !important; object-fit: cover; border-radius: 0 !important; position: static !important; transform: none !important; box-shadow: 0 1px 2px rgba(20, 26, 51, 0.08), 0 12px 24px rgba(20, 26, 51, 0.12); }
@media (max-width: 760px) {
  #fc#fc .fc-cart__items--with-images .fc-cart__item__details-and-image:has(img) { grid-template-columns: 60px minmax(0, 1fr); }
  #fc#fc .fc-cart__item__details-and-image:has(img) .fc-cart__item__image { width: 60px !important; max-width: 60px !important; }
  #fc#fc .fc-cart__item__image__img { width: 60px !important; height: 80px !important; }
}

/* ---------- Live-checkout fixes (Nov 6, found on the first real checkout; the CSS snapshot tests had no scripts) ----------
   1. Stripe's card field sits in our flex .fc-stripe-element; without flex-grow its iframe collapsed to 1px and couldn't be clicked.
   2. The nested cart sidebar keeps Foxy's equal-height margin-bottom: -9999px after we zeroed its padding, so the
      checkout row ended at the form's height and clipped the order summary and total.
   3. The coupon input group (Bootstrap display: table) pushed APPLY outside the sidebar. */
#fc#fc .fc-stripe-element > .StripeElement { flex: 1 1 auto !important; width: 100% !important; min-width: 0; }
#fc#fc .fc-sidebar--checkout .fc-sidebar--cart { margin-bottom: 0 !important; }
#fc#fc .fc-coupon-entry--input { display: flex !important; align-items: center; gap: 8px; width: 100%; margin-top: 12px; }
#fc#fc .fc-coupon-entry--input > .fc-coupon-entry__input { flex: 1 1 auto; min-width: 0; width: auto !important; float: none !important; }
#fc#fc .fc-coupon-entry--input > .fc-input-group__button { display: block !important; width: auto !important; flex: 0 0 auto; }
#fc#fc .fc-coupon-entry--input .fc-coupon-entry__apply { margin: 0 !important; border-radius: 999px !important; }

/* ---------- Checkout polish (Ryan's notes after the first live order, Nov 6). All values tested live on the checkout. ----------
   Form rows: 12px between every input row (was 24-36px: the grid picked up Foxy's empty clearfix pseudo-elements as rows). */
#fc#fc fieldset .fc-form-group { margin-bottom: 12px !important; padding-top: 0 !important; padding-bottom: 0 !important; row-gap: 12px !important; }
#fc#fc fieldset .fc-form-group::before, #fc#fc fieldset .fc-form-group::after { display: none !important; }
#fc#fc fieldset .fc-form-group--postal-code { row-gap: 0 !important; }
#fc#fc fieldset.fc-address-entry > .fc-form-group:last-child { margin-bottom: 0 !important; }
/* "Use a different billing address": 12px under Country. The label keeps its 44px touch height, so pull it up by the half it adds. */
#fc#fc#fc#fc .fc-container__grid--use-different-address > .fc-input-group-container--checkbox { padding-top: 0 !important; margin-top: -13px !important; }
#fc#fc .fc-form-label--different-address { margin-bottom: 0 !important; }
/* Email: same corner radius as the other inputs, CONTINUE beside it. */
#fc#fc .fc-input-group:has(> #customer_email) { display: flex !important; align-items: center; gap: 8px; }
#fc#fc #customer_email { border-radius: 14px !important; flex: 1 1 auto; min-width: 0; width: auto !important; float: none !important; }
#fc#fc .fc-input-group:has(> #customer_email) > .fc-input-group__button { display: block !important; width: auto !important; flex: 0 0 auto; }
#fc#fc .fc-input-group:has(> #customer_email) .fc-button { margin: 0 !important; border-radius: 999px !important; }
/* Order summary: tighter rows. */
#fc#fc .fc-sidebar--checkout .fc-transaction > li.fc-transaction__section { padding-top: 10px !important; padding-bottom: 10px !important; margin-bottom: 0 !important; }
#fc#fc .fc-sidebar--checkout .fc-transaction td, #fc#fc .fc-sidebar--checkout .fc-transaction th { padding-top: 0 !important; padding-bottom: 0 !important; }
#fc#fc .fc-sidebar--checkout .fc-transaction h5 { margin-top: 0 !important; margin-bottom: 0 !important; }
#fc#fc .fc-sidebar--checkout .fc-transaction__header { margin-top: 24px !important; margin-bottom: 4px !important; }
/* Coupon entry: smaller. */
#fc#fc .fc-coupon-entry--input > .fc-coupon-entry__input { height: 40px !important; min-height: 40px !important; font-size: 14px !important; padding: 0 14px !important; }
#fc#fc .fc-coupon-entry--input .fc-coupon-entry__apply { height: 40px !important; min-height: 40px !important; padding: 0 16px !important; font-size: 11px !important; }
/* Applied coupon: name on one line, code below in mono (hides Foxy's ": " separator text node). */
#fc#fc .fc-transaction__discounts .fc-subtotal__label { font-size: 0 !important; line-height: 0; }
#fc#fc .fc-transaction__discounts .fc-coupon__name { display: block; font-size: 14px; line-height: 1.4; }
#fc#fc .fc-transaction__discounts .fc-coupon__code { display: inline-block; margin-top: 4px; font-family: var(--mono); font-size: 11px; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; }
#fc#fc .fc-transaction__discounts .fc-action--close { display: inline-block; margin-left: 6px; font-size: 14px; line-height: 1; vertical-align: -2px; }
#fc#fc .fc-transaction__discounts .fc-subtotal__value { vertical-align: top !important; font-size: 14px; line-height: 1.4; }
#fc#fc .fc-transaction__discounts table { margin-top: 10px; }

/* ---------- Receipt layout (Ryan's notes after the first live order, Nov 6). Tested live on the receipt page. ----------
   1. "Receipt: #…" left-aligned on the same line as the section headings (the empty logo column is collapsed).
   2. Labels (Merchant, Order ID, Name, Address, Email…) left-aligned, starting on the heading line.
   3. Your Cart starts below the info sections, and its heading, column header and items share the heading line.
   4. Quantity/Total: Foxy pushes and pulls these with relative left/right offsets, so with our flex item row the
      total landed on top of the Order Summary. They're now a plain flex row (Quantity, then Total), with a gutter before the sidebar. */
#fc#fc .fc-receipt__main .fc-container__grid--receipt--logo { width: 0 !important; padding: 0 !important; }
#fc#fc .fc-receipt__main .fc-container__grid--receipt--transaction-subject { width: 100% !important; float: none !important; text-align: left !important; padding: 20px 0 0 !important; }
#fc#fc .fc-receipt__main .fc-container__grid--receipt--transaction-subject h3 { text-align: left !important; margin-left: -10px !important; }
#fc#fc .fc-receipt__main .fc-form-label[class*="static-label"] { text-align: left !important; padding: 0 15px !important; }
#fc#fc .fc-receipt__main .fc-cart__header { clear: both; padding-top: 32px; }
#fc#fc .fc-receipt__main .fc-cart__title { padding: 0 !important; }
#fc#fc .fc-receipt__main .fc-cart__main__content { padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; }
#fc#fc .fc-receipt__main .fc-cart__main__content > div { padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; }
#fc#fc .fc-receipt__main .fc-cart__items__header { display: flex !important; align-items: center; padding: 0 15px; margin: 0 -15px !important; }
#fc#fc .fc-receipt__main .fc-cart__items__header__item { margin: 0 !important; padding: 12px 0 !important; float: none !important; flex: 1 1 auto; width: auto !important; }
#fc#fc .fc-receipt__main .fc-cart__items__header__totals { float: none !important; width: auto !important; flex: 0 0 auto; padding: 0 !important; }
#fc#fc .fc-receipt__main .fc-cart__item { padding-left: 0 !important; padding-right: 0 !important; }
#fc#fc .fc-receipt__main .fc-cart__item__details-and-image { padding-left: 0 !important; margin-left: 0 !important; }
#fc#fc .fc-receipt__main .fc-cart__item__totals { width: auto !important; padding: 0 !important; }
#fc#fc .fc-receipt__main :is(.fc-cart__items__header__totals, .fc-cart__item__totals) > .fc-container__row { display: flex !important; flex-direction: row; justify-content: flex-end; gap: 24px; margin: 0 !important; }
#fc#fc .fc-receipt__main :is(.fc-cart__items__header__totals, .fc-cart__item__totals) > .fc-container__row > * { position: static !important; left: auto !important; right: auto !important; float: none !important; padding: 0 !important; text-align: right !important; }
#fc#fc .fc-receipt__main :is(.fc-cart__items__header__price, .fc-cart__item__price):not(:has(*)) { display: none !important; }
#fc#fc .fc-receipt__main :is(.fc-cart__items__header__quantity, .fc-cart__item__quantity) { order: 1; width: 64px !important; }
#fc#fc .fc-receipt__main :is(.fc-cart__items__header__total, .fc-cart__item__total) { order: 2; width: 96px !important; }
#fc#fc .fc-receipt__main .fc-cart__item__quantity p { text-align: right !important; }
#fc#fc .fc-receipt__main .fc-cart__item__totals > .fc-container__row { align-items: baseline; }
/* Order Summary: the same tighter rows as the checkout. */
#fc#fc .fc-receipt__main .fc-sidebar--cart .fc-transaction > li.fc-transaction__section { padding-top: 10px !important; padding-bottom: 10px !important; margin-bottom: 0 !important; }
#fc#fc .fc-receipt__main .fc-sidebar--cart .fc-transaction td, #fc#fc .fc-receipt__main .fc-sidebar--cart .fc-transaction th { padding-top: 0 !important; padding-bottom: 0 !important; }
@media (min-width: 761px) {
  #fc#fc .fc-receipt__main .fc-cart__main__content { padding-right: 32px !important; }
}
@media (max-width: 760px) {
  #fc#fc .fc-receipt__main :is(.fc-cart__items__header__totals, .fc-cart__item__totals) > .fc-container__row { gap: 12px; }
  #fc#fc .fc-receipt__main :is(.fc-cart__items__header__quantity, .fc-cart__item__quantity) { width: 40px !important; }
  #fc#fc .fc-receipt__main :is(.fc-cart__items__header__total, .fc-cart__item__total) { width: 72px !important; }
}

/* ---------- Cart, checkout and receipt polish, round 2 (Ryan's notes after the second live order, Nov 6). Tested live. ----------
   Checkout: no white border round the checkout (Foxy's #fc-checkout-container border), nor above the sidecart's checkout button. */
#fc#fc #fc-checkout-container { border: 0 !important; }
#fc#fc .fc-actions--payment { border-top-color: transparent !important; }
/* Line-item options (Title, Subtitle, Style…): label stacked over its value, both on the label's left line.
   Applies everywhere, the receipt included. */
#fc#fc li.fc-cart__item__option { display: block !important; margin: 0 0 10px !important; }
#fc#fc .fc-cart__item__option__name { display: block !important; flex: none !important; width: auto !important; margin: 0 0 2px !important; }
#fc#fc .fc-cart__item__option__value { display: block !important; }
/* "N items in your order" sits closer to the first item. */
#fc#fc .fc-order-quantity { margin-bottom: 4px !important; }
/* Postcode GO!: Foxy's 4px bottom padding pushed the label off centre. */
#fc#fc .fc-postal-code-entry__submit .fc-button { padding: 0 18px !important; }
/* Sidecart and cart page (not the checkout's cart): taxes are worked out at checkout, so no tax/shipping estimate here,
   and coupons are entered at checkout ("Can be applied at checkout", approved by Ryan). Order Summary rows as tight as the checkout. */
#fc#fc .fc-sidebar--cart:not(.fc-sidebar--checkout .fc-sidebar--cart, .fc-receipt__main .fc-sidebar--cart) .fc-address-entry,
#fc#fc .fc-sidebar--cart:not(.fc-sidebar--checkout .fc-sidebar--cart, .fc-receipt__main .fc-sidebar--cart) .fc-transaction__shipping .fc-transaction__ui__header,
#fc#fc .fc-sidebar--cart:not(.fc-sidebar--checkout .fc-sidebar--cart, .fc-receipt__main .fc-sidebar--cart) .fc-transaction__discounts .fc-transaction__ui__toggle,
#fc#fc .fc-sidebar--cart:not(.fc-sidebar--checkout .fc-sidebar--cart, .fc-receipt__main .fc-sidebar--cart) .fc-transaction__discounts .fc-coupon-entry { display: none !important; }
#fc#fc .fc-sidebar--cart:not(.fc-sidebar--checkout .fc-sidebar--cart, .fc-receipt__main .fc-sidebar--cart) .fc-transaction__discounts .fc-transaction__ui { display: flex !important; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
#fc#fc .fc-sidebar--cart:not(.fc-sidebar--checkout .fc-sidebar--cart, .fc-receipt__main .fc-sidebar--cart) .fc-transaction__discounts .fc-transaction__ui::after { content: "Can be applied at checkout"; font-family: var(--sans); font-weight: 600; font-size: 14px; line-height: 1.4; color: var(--ink); text-align: right; }
#fc#fc .fc-sidebar--cart:not(.fc-sidebar--checkout .fc-sidebar--cart, .fc-receipt__main .fc-sidebar--cart) .fc-transaction > li.fc-transaction__section { padding-top: 10px !important; padding-bottom: 10px !important; margin-bottom: 0 !important; }
#fc#fc .fc-sidebar--cart:not(.fc-sidebar--checkout .fc-sidebar--cart, .fc-receipt__main .fc-sidebar--cart) .fc-transaction :is(td, th) { padding-top: 0 !important; padding-bottom: 0 !important; }
#fc#fc .fc-sidebar--cart:not(.fc-sidebar--checkout .fc-sidebar--cart, .fc-receipt__main .fc-sidebar--cart) .fc-transaction h5 { margin-top: 0 !important; margin-bottom: 0 !important; }
#fc#fc .fc-sidebar--cart:not(.fc-sidebar--checkout .fc-sidebar--cart, .fc-receipt__main .fc-sidebar--cart) .fc-transaction__header { margin-top: 24px !important; margin-bottom: 4px !important; }
/* Receipt: each label/value row clears the one before. The checkout polish hid Foxy's clearfix pseudo-elements, so in
   Shipping Information the name and address floated up beside "Shipping method". Space above the second row of sections. */
#fc#fc .fc-receipt__main fieldset .fc-form-group { display: flow-root !important; clear: both; margin-bottom: 6px !important; }
#fc#fc .fc-receipt__main .fc-form-group--static :is(.fc-form-label, .fc-form-control--static) { margin-bottom: 0 !important; }
#fc#fc .fc-receipt__main :is(#fc-receipt__section--shipping-information, #fc-receipt__section--custom-fields) { padding-top: 24px; }

/* ---------- Round 3 (Ryan's notes, Nov 6). Tested live. ----------
   Empty cart: the message in our style (hairline box, ink link), and no Order Summary or checkout button with nothing to check out. */
#fc#fc .fc-messages__empty-notification { background: transparent !important; border: 1px solid var(--hair) !important; border-radius: 14px !important; padding: 20px !important; text-align: left !important; box-shadow: none !important; }
#fc#fc .fc-messages__empty-notification a { color: var(--ink) !important; font-family: var(--sans) !important; font-size: 15px !important; line-height: 1.5 !important; text-decoration: underline !important; text-underline-offset: 3px; text-decoration-color: var(--field) !important; }
#fc#fc .fc-messages__empty-notification a:hover { text-decoration-color: var(--ink) !important; }
#fc#fc .fc-cart-container:has(.fc-messages__empty-notification) .fc-sidebar--cart { display: none !important; }
#fc#fc:has(.fc-messages__empty-notification) .fc-fixed-button-right { display: none !important; }
/* Success and info messages (receipt "Thank you…", cart notices) in the same style. Error messages keep Foxy's colours. */
#fc#fc :is(.fc-alert--success, .fc-alert--info) { background: transparent !important; border: 1px solid var(--hair) !important; border-radius: 14px !important; color: var(--text) !important; font-family: var(--sans) !important; font-size: 15px !important; line-height: 1.5 !important; padding: 16px 20px !important; box-shadow: none !important; }
#fc#fc :is(.fc-alert--success, .fc-alert--info) * { color: inherit !important; }
/* Checkout postcode row: two columns, the same widths and gap as the name row above (city/state select or GO! in the second). */
#fc#fc .fc-checkout__main__form .fc-postal-code-entry .fc-form-group--multiple-inline { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px !important; }
#fc#fc .fc-checkout__main__form .fc-postal-code-entry :is(.fc-container__grid--postal-code, .fc-container__grid--postal-code-actions) { width: auto !important; float: none !important; padding: 0 !important; margin: 0 !important; min-width: 0; grid-row: 1; }
#fc#fc .fc-checkout__main__form .fc-postal-code-entry .fc-form-group--multiple-inline > .fc-container__grid--postal-code { grid-column: 1 !important; }
#fc#fc .fc-checkout__main__form .fc-postal-code-entry .fc-form-group--multiple-inline > .fc-container__grid--postal-code-actions { grid-column: 2 !important; }
#fc#fc .fc-checkout__main__form .fc-postal-code-entry__submit { margin: 0 !important; padding: 0 !important; }
#fc#fc .fc-checkout__main__form :is(.fc-postal-code-entry__city-state-options, .fc-form-control--city-options) { width: 100% !important; box-sizing: border-box; }
/* Checkout coupon: Add/Hide Coupon fits beside "Discounts" and ends on the column edge; APPLY ends there too, 12px from the input. */
#fc#fc .fc-transaction__discounts .fc-transaction__ui { display: flex !important; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
#fc#fc .fc-transaction__discounts .fc-transaction__ui__toggle { margin: 0 0 0 auto !important; padding: 0 12px !important; font-size: 11px !important; letter-spacing: 0.1em !important; flex: 0 1 auto; max-width: 100%; }
#fc#fc .fc-coupon-entry--input { gap: 12px !important; }
#fc#fc .fc-coupon-entry--input > .fc-input-group__button { margin: 0 !important; padding: 0 !important; }
#fc#fc .fc-coupon-entry--input .fc-coupon-entry__apply { position: static !important; left: auto !important; right: auto !important; margin: 0 !important; }
/* Receipt on the site's paper background: no white card or grey header band, hairlines instead of the dashed rule, pill buttons. */
#fc#fc #fc-receipt-container, #fc#fc .fc-receipt__main .fc-cart-container { background: transparent !important; border-color: transparent !important; box-shadow: none !important; }
#fc#fc #fc-receipt__section--header { background: transparent !important; border-bottom: 1px solid var(--hair) !important; }
#fc#fc #fc-receipt__section--receipt_messaging_and_actions { border-bottom: 1px solid var(--hair) !important; }
#fc#fc .fc-receipt__main .fc-cart__items__header { background: transparent !important; border-bottom: 1px solid var(--hair) !important; }
#fc#fc .fc-receipt__main .fc-receipt-action .fc-button { border-radius: 999px !important; }
/* Stray lines: Foxy's #ddd rule under the whole Order Summary list doubled the total's hairline (sidecart, checkout,
   receipt), and the receipt's item header kept a white right border. */
#fc#fc ul.fc-transaction { border-bottom: 0 !important; }
#fc#fc .fc-receipt__main .fc-cart__items__header { border-right: 0 !important; }
