/*
 * The store client's pages: cart ([data-static-cart]), checkout ([data-static-checkout]),
 * order ([data-static-order]), mini-cart, the add-to-cart notice, and the account page's address
 * editor (.static-account__address-form, the same address form).
 *
 * Built from the site's own type and colours: the font and text colour are inherited, the accent
 * is the theme's (--sb-accent), and every other colour is mixed from those. A site tunes it with
 * these, on :root or the box:
 *   --static-checkout-accent       Pay and Checkout, and the chosen option (default: the theme's accent for
 *                                  choices, its text colour for Pay)
 *   --static-checkout-accent-text  text on Pay (default: white)
 *   --static-checkout-bg           the cards behind the form and the summary (default: the theme's --sb-bg, else white)
 *   --static-checkout-page         the page around them on the cart, checkout and order pages (default: a soft tint)
 *   --static-checkout-radius       corner radius of fields and buttons (default 12px; cards are twice it)
 *   --static-checkout-font         the type (default: inherited)
 *   --static-checkout-sticky-top   how far below the top the checkout and cart summaries stay as the page scrolls
 *                                  (default: 1.5rem below the site's sticky header, --sb-header-h, which the theme's
 *                                  header sets to its drawn height, 0 when it does not stick; 4.5rem without it)
 * The checkout's background picture (Static Theme > WooCommerce > Checkout) arrives as
 * --static-checkout-image on the box; without one the summary sits on a soft gradient.
 * Icons are line drawings in this file (data: URIs used as masks, so they take the text colour):
 * no icon font, no other host.
 * Mobile first: one column to 60rem, then the form beside its summary.
 */

.static-checkout,
.static-cart,
.static-order,
.static-add-notice,
.static-account__address-form,
[data-static-mini-cart] {
  --sc-ink: currentColor;
  --sc-bg: var(--static-checkout-bg, var(--sb-bg, #fff));
  --sc-accent: var(--static-checkout-accent, var(--sb-accent, var(--sb-text, #1f2937)));
  --sc-pay: var(--static-checkout-accent, var(--sb-text, #1f2937));
  --sc-accent-text: var(--static-checkout-accent-text, #fff);
  --sc-radius: var(--static-checkout-radius, 12px);
  --sc-radius-card: calc(var(--sc-radius) * 2);
  --sc-muted: rgba(60, 60, 67, 0.7);
  --sc-muted: color-mix(in srgb, currentColor 62%, var(--sc-bg));
  --sc-faint: color-mix(in srgb, currentColor 42%, var(--sc-bg));
  --sc-line: rgba(0, 0, 0, 0.1);
  --sc-line: color-mix(in srgb, currentColor 11%, var(--sc-bg));
  --sc-line-strong: rgba(0, 0, 0, 0.2);
  --sc-line-strong: color-mix(in srgb, currentColor 19%, var(--sc-bg));
  --sc-panel: rgba(0, 0, 0, 0.03);
  --sc-panel: color-mix(in srgb, currentColor 3.5%, var(--sc-bg));
  --sc-panel-strong: rgba(0, 0, 0, 0.06);
  --sc-panel-strong: color-mix(in srgb, currentColor 7%, var(--sc-bg));
  --sc-tint: color-mix(in srgb, var(--sc-accent) 6%, var(--sc-bg));
  --sc-ring: rgba(0, 0, 0, 0.12);
  --sc-ring: color-mix(in srgb, var(--sc-accent) 18%, transparent);
  --sc-shadow-soft: 0 1px 2px rgba(16, 24, 40, 0.05);
  --sc-shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 30px -10px rgba(16, 24, 40, 0.12), 0 30px 60px -30px rgba(16, 24, 40, 0.1);
  --sc-danger: #b42318;
  --sc-danger-bg: #fef3f2;
  --sc-ok: #067647;
  --sc-ok-bg: #ecfdf3;
  --sc-warn: #93370d;
  --sc-warn-bg: #fffaeb;
  --sc-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --sc-sticky-top: var(--static-checkout-sticky-top, calc(var(--sb-header-h, 4.5rem) + 1.5rem));
  font-family: var(--static-checkout-font, inherit);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Line icons (24px grid), drawn as masks: .static-icon--{name}. */
  --sc-uri-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='m3.5 7 8.5 6 8.5-6'/%3E%3C/svg%3E");
  --sc-uri-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 20.5c.6-3.6 3.8-6 7.5-6s6.9 2.4 7.5 6'/%3E%3C/svg%3E");
  --sc-uri-building: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='1.5'/%3E%3Cpath d='M9 7h1.5M13.5 7H15M9 11h1.5M13.5 11H15M9 15h1.5M13.5 15H15M10.5 21v-2.5h3V21'/%3E%3C/svg%3E");
  --sc-uri-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.5 3.8 5.5 3.8 9s-1.3 6.5-3.8 9c-2.5-2.5-3.8-5.5-3.8-9S9.5 5.5 12 3z'/%3E%3C/svg%3E");
  --sc-uri-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5 12 4l8 6.5V19a1.5 1.5 0 0 1-1.5 1.5h-4v-6h-5v6h-4A1.5 1.5 0 0 1 4 19z'/%3E%3C/svg%3E");
  --sc-uri-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.1-7-11.5a7 7 0 0 1 14 0C19 14.9 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E");
  --sc-uri-mailbox: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9h14M5 15h14M10 4 8 20M16 4l-2 16'/%3E%3C/svg%3E");
  --sc-uri-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h2.8l1.6 4.4-2 1.3a11.5 11.5 0 0 0 5.9 5.9l1.3-2 4.4 1.6v2.8a1.8 1.8 0 0 1-2 1.8C10.6 18.7 5.3 13.4 4.7 5.5a1.8 1.8 0 0 1 1.8-2z'/%3E%3C/svg%3E");
  --sc-uri-truck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5h11v9.5h-11zM13.5 9.5h4l3 3.2V16h-7'/%3E%3Ccircle cx='6.5' cy='17.5' r='1.8'/%3E%3Ccircle cx='16.5' cy='17.5' r='1.8'/%3E%3C/svg%3E");
  --sc-uri-bolt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2.5 4.5 13.5h6.5l-1 8 8.5-11h-6.5z'/%3E%3C/svg%3E");
  --sc-uri-store: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10v10h15V10M3 4h18l-1.2 4.6a2.6 2.6 0 0 1-5 .1 2.7 2.7 0 0 1-5.6 0 2.6 2.6 0 0 1-5 0zM10 20v-5h4v5'/%3E%3C/svg%3E");
  --sc-uri-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5M12 14.5v2'/%3E%3C/svg%3E");
  --sc-uri-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --sc-uri-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E");
  --sc-uri-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h15M13.5 6l6 6-6 6'/%3E%3C/svg%3E");
  --sc-uri-bag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.1 12.5H6.1z'/%3E%3Cpath d='M9 10V6.5a3 3 0 0 1 6 0V10'/%3E%3C/svg%3E");
  --sc-uri-seal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2.8 2.3 1.6 2.8-.1.9 2.7 2.2 1.7-.8 2.7.8 2.7-2.2 1.7-.9 2.7-2.8-.1L12 21.2l-2.3-1.6-2.8.1-.9-2.7-2.2-1.7.8-2.7-.8-2.7 2.2-1.7.9-2.7 2.8.1z'/%3E%3Cpath d='m8.8 12.2 2.2 2.2 4.3-4.4'/%3E%3C/svg%3E");
  --sc-uri-pencil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19.5 8.5l-4-4L4 16z'/%3E%3Cpath d='m13.5 6.5 4 4'/%3E%3C/svg%3E");
  --sc-uri-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.2 2'/%3E%3C/svg%3E");
  --sc-uri-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E");
  --sc-uri-select: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E");
}

.static-checkout *,
.static-checkout *::before,
.static-checkout *::after,
.static-cart *,
.static-cart *::before,
.static-cart *::after,
.static-order *,
.static-order *::before,
.static-order *::after,
.static-account__address-form *,
.static-account__address-form *::before,
.static-account__address-form *::after {
  box-sizing: border-box;
}

/* The page's prose rules (.entry-content p, ul, li, h2, h3: margins, list indent, a larger size) stop at these
   pages: two classes outweigh the theme's class + element. Spacing is gaps and padding; the few rules below that
   give one of these elements a margin, or a list side padding, carry .static-store-page to stay ahead. */
.static-store-page.static-store-page--checkout :where(p, h1, h2, h3, ul, ol, li),
.static-store-page.static-store-page--cart :where(p, h1, h2, h3, ul, ol, li),
.static-store-page.static-store-page--order :where(p, h1, h2, h3, ul, ol, li) {
  margin: 0;
}
.static-store-page.static-store-page--checkout :where(ul, ol),
.static-store-page.static-store-page--cart :where(ul, ol),
.static-store-page.static-store-page--order :where(ul, ol) {
  padding-left: 0;
  list-style: none;
}

.static-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- the page around the store ------------------------------------------------------------- */

/* The cart, checkout and order pages sit on a soft tint, header to footer. */
main:has(.static-store-page--checkout, .static-store-page--cart, .static-store-page--order) {
  background: var(--static-checkout-page, color-mix(in srgb, var(--static-checkout-accent, var(--sb-accent, #1f2937)) 3%, #f5f6f8));
}
/* The checkout and order pages title themselves ("Almost there…", "Thank you"): the page title stays for
   assistive tech only. */
/* The cart titles itself too ("Your cart", with its count). */
.entry-header:has(~ .entry-content .static-store-page--checkout),
.entry-header:has(~ .entry-content .static-store-page--cart),
.entry-header:has(~ .entry-content .static-store-page--order) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
/* The checkout leaves the theme's reading column (a prose width, too narrow for a form beside its summary) for the
   site's width, up to 1180px, centred on it: two columns from 60rem whatever the theme's column is. */
.static-store-page.static-store-page--checkout {
  --sc-wide: min(1180px, 100vw - 2rem);
  width: var(--sc-wide);
  max-width: none;
  margin-left: calc(50% - var(--sc-wide) / 2);
  margin-right: 0;
  padding: 0 0 3rem;
}

/* ---- icons -------------------------------------------------------------------------------------- */

.static-icon {
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  background-color: currentColor;
  -webkit-mask: var(--sc-i) center / contain no-repeat;
  mask: var(--sc-i) center / contain no-repeat;
}
.static-icon--mail { --sc-i: var(--sc-uri-mail); }
.static-icon--user { --sc-i: var(--sc-uri-user); }
.static-icon--building { --sc-i: var(--sc-uri-building); }
.static-icon--globe { --sc-i: var(--sc-uri-globe); }
.static-icon--home { --sc-i: var(--sc-uri-home); }
.static-icon--pin { --sc-i: var(--sc-uri-pin); }
.static-icon--mailbox { --sc-i: var(--sc-uri-mailbox); }
.static-icon--phone { --sc-i: var(--sc-uri-phone); }
.static-icon--truck { --sc-i: var(--sc-uri-truck); }
.static-icon--bolt { --sc-i: var(--sc-uri-bolt); }
.static-icon--store { --sc-i: var(--sc-uri-store); }
.static-icon--lock { --sc-i: var(--sc-uri-lock); }
.static-icon--check { --sc-i: var(--sc-uri-check); }
.static-icon--chevron { --sc-i: var(--sc-uri-chevron); }
.static-icon--arrow { --sc-i: var(--sc-uri-arrow); }
.static-icon--bag { --sc-i: var(--sc-uri-bag); }
.static-icon--seal { --sc-i: var(--sc-uri-seal); }
.static-icon--pencil { --sc-i: var(--sc-uri-pencil); }
.static-icon--clock { --sc-i: var(--sc-uri-clock); }
.static-icon--alert { --sc-i: var(--sc-uri-alert); }

/* ---- buttons -------------------------------------------------------------------------- */

.static-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3rem;
  margin: 0;
  padding: 0 1.25rem;
  border: 1px solid var(--sc-line-strong);
  border-radius: var(--sc-radius);
  background: var(--sc-bg);
  color: inherit;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--sc-shadow-soft);
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}
.static-button:hover { border-color: color-mix(in srgb, currentColor 40%, var(--sc-bg)); }
.static-button:focus-visible,
.static-cart__stepper button:focus-visible,
.static-chip__remove:focus-visible,
.static-checkout__toggle:focus-visible,
.static-progress__target:focus-visible,
.static-checkout__note summary:focus-visible,
.static-cart__remove:focus-visible,
.static-cart__continue:focus-visible {
  outline: 2px solid var(--sc-accent);
  outline-offset: 3px;
}
.static-button:disabled,
.static-button[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.static-button--quiet { background: var(--sc-bg); }
.static-button--small { min-height: 2.25rem; padding: 0 0.875rem; font-size: 0.875rem; }

/* The one dark button on a page: Pay, Checkout. */
.static-button--primary {
  width: 100%;
  min-height: 3.5rem;
  border: 0;
  border-radius: calc(var(--sc-radius) + 2px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--sc-pay) 86%, #fff), var(--sc-pay) 55%);
  color: var(--sc-accent-text);
  font-size: 1.0625rem;
  letter-spacing: 0.005em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(16, 24, 40, 0.2), 0 10px 24px -10px color-mix(in srgb, var(--sc-pay) 70%, transparent);
}
.static-button--primary:hover {
  border-color: transparent;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sc-pay) 92%, #fff), color-mix(in srgb, var(--sc-pay) 88%, #000) 55%);
}
.static-button--primary:active:not(:disabled) { transform: translateY(1px); }
.static-button--primary .static-icon { width: 1.125rem; height: 1.125rem; }
.static-button--primary .static-icon--arrow { transition: transform 0.2s var(--sc-ease); }
.static-button--primary:hover .static-icon--arrow { transform: translateX(3px); }
.static-button.is-busy .static-icon { display: none; }

/* The payment form's own button (static-payment.js) carries text only: its lock is drawn here. */
.static-payment__submit::before {
  content: "";
  width: 1.125rem;
  height: 1.125rem;
  background-color: currentColor;
  -webkit-mask: var(--sc-uri-lock) center / contain no-repeat;
  mask: var(--sc-uri-lock) center / contain no-repeat;
}

.static-payment__submit::after {
  content: "";
  width: 1.125rem;
  height: 1.125rem;
  background-color: currentColor;
  -webkit-mask: var(--sc-uri-arrow) center / contain no-repeat;
  mask: var(--sc-uri-arrow) center / contain no-repeat;
  transition: transform 0.2s var(--sc-ease);
}
.static-payment__submit:hover::after { transform: translateX(3px); }
.static-payment__submit:disabled::after { content: none; }

.static-button.is-busy::before,
.static-payment__submit:disabled::before {
  content: "";
  width: 1.1em;
  height: 1.1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  background: none;
  -webkit-mask: none;
  mask: none;
  animation: static-spin 0.7s linear infinite;
}
@keyframes static-spin { to { transform: rotate(360deg); } }

/* ---- fields ----------------------------------------------------------------------------- */

.static-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}
.static-field[hidden] { display: none; }
.static-field__label {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
}
.static-field__req { color: var(--sc-danger); }
.static-field__opt { color: var(--sc-muted); font-weight: 400; }
.static-field__req[hidden],
.static-field__opt[hidden] { display: none; }

.static-field__control { position: relative; display: block; }
.static-field__icon {
  position: absolute;
  top: 50%;
  left: 0.875rem;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: -0.5625rem;
  color: var(--sc-faint);
  pointer-events: none;
  transition: color 0.15s ease;
}
.static-field__control:focus-within .static-field__icon { color: var(--sc-accent); }

.static-field__input {
  width: 100%;
  min-height: 3rem;
  margin: 0;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--sc-line-strong);
  border-radius: var(--sc-radius);
  background-color: var(--sc-bg);
  color: inherit;
  font: inherit;
  font-size: 1rem; /* 16px: iOS does not zoom into the field */
  line-height: 1.25;
  box-shadow: var(--sc-shadow-soft);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
  scroll-margin: var(--sc-sticky-top) 0 6.5rem; /* clear of a sticky site header, and of the phone's pinned Pay */
}
.static-field__control.has-icon .static-field__input { padding-left: 2.75rem; }
textarea.static-field__input { min-height: 6rem; resize: vertical; }
select.static-field__input {
  padding-right: 2.5rem;
  background-image: var(--sc-uri-select);
  background-position: right 0.875rem center;
  background-size: 1.125rem 1.125rem;
  background-repeat: no-repeat;
  text-overflow: ellipsis;
  cursor: pointer;
}
.static-field__input::placeholder { color: var(--sc-faint); opacity: 1; }
.static-field__input:hover { border-color: color-mix(in srgb, currentColor 32%, var(--sc-bg)); }
.static-field__input:focus {
  outline: none;
  border-color: var(--sc-accent);
  box-shadow: 0 0 0 4px var(--sc-ring);
}
.static-field.is-invalid .static-field__input { border-color: var(--sc-danger); background-color: color-mix(in srgb, var(--sc-danger) 3%, var(--sc-bg)); }
.static-field.is-invalid .static-field__input:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.14); }
.static-field.is-invalid .static-field__icon { color: var(--sc-danger); }
.static-field__error {
  margin: 0;
  color: var(--sc-danger);
  font-size: 0.8125rem;
  line-height: 1.35;
}
.static-field__error:empty { display: none; }
.static-field__error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  margin-right: 0.375rem;
  border-radius: 50%;
  background: var(--sc-danger);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  vertical-align: -0.125rem;
}

/* The address grid: six columns; names side by side, city / state / postcode in one row. */
.static-address__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem 0.75rem;
}
.static-address__grid > .static-field { grid-column: span 6; }
.static-address__grid > .static-field--half { grid-column: span 3; }
.static-address__grid > .static-field--third { grid-column: span 3; }
.static-address__grid > .static-field--city { grid-column: span 6; }
.static-address__grid[data-row="one"] > .static-field--third { grid-column: span 6; }
@media (min-width: 36rem) {
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-address__grid[data-row="three"] > .static-field--third { grid-column: span 2; }
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-address__grid[data-row="two"] > .static-field--third { grid-column: span 3; }
}
/* Under 22rem (a 320px phone) the names stack: half of the row is too short for a name. */
@media (max-width: 21.99rem) {
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-address__grid > .static-field--half { grid-column: span 6; }
}

/* Address suggestions */
.static-field--lookup { position: relative; }
.static-lookup,
.static-store-page .static-lookup {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 0.375rem;
  list-style: none;
  border: 1px solid var(--sc-line-strong);
  border-radius: var(--sc-radius);
  background: var(--sc-bg);
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.16);
}
.static-lookup[hidden] { display: none; }
.static-lookup__item {
  display: flex;
  flex-direction: column;
  padding: 0.625rem 0.75rem;
  border-radius: calc(var(--sc-radius) - 4px);
  cursor: pointer;
}
.static-lookup__item:hover,
.static-lookup__item[aria-selected="true"] { background: var(--sc-panel-strong); }
.static-lookup__main { font-weight: 500; }
.static-lookup__secondary,
.static-lookup__empty { color: var(--sc-muted); font-size: 0.8125rem; }
.static-lookup__empty { padding: 0.625rem 0.75rem; }
/* Google Maps attribution (Places API policies): the official logo unmodified, 18px high
   (16-19 allowed), 10px clear left, right and top, 5px below; white on a dark list. */
.static-lookup__by {
  display: flex;
  justify-content: flex-end;
  padding: 0 0.125rem 0;
}
.static-lookup__logo {
  display: block;
  box-sizing: content-box;
  width: 98px;
  height: 18px;
  padding: 10px 10px 5px;
  background: url(google-maps/GoogleMaps_Logo_DarkGray.svg) no-repeat 10px 10px / 98px 18px;
}
.static-lookup--dark .static-lookup__logo { background-image: url(google-maps/GoogleMaps_Logo_White.svg); }

/* Checkbox */
.static-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  cursor: pointer;
  font-size: 0.9375rem;
}
.static-check__input { position: absolute; left: 0; opacity: 0; width: 1.25rem; height: 1.25rem; margin: 0; }
.static-check__box {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 1.5px solid var(--sc-line-strong);
  border-radius: 6px;
  background: var(--sc-bg);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.static-check__box::after {
  content: "";
  width: 0.875rem;
  height: 0.875rem;
  background-color: var(--sc-accent-text);
  -webkit-mask: var(--sc-uri-check) center / contain no-repeat;
  mask: var(--sc-uri-check) center / contain no-repeat;
  opacity: 0;
}
.static-check__input:checked + .static-check__box { border-color: var(--sc-accent); background: var(--sc-accent); }
.static-check__input:checked + .static-check__box::after { opacity: 1; }
.static-check__input:focus-visible + .static-check__box { box-shadow: 0 0 0 4px var(--sc-ring); border-color: var(--sc-accent); }

/* ---- checkout ------------------------------------------------------------------------------ */


.static-checkout__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
.static-checkout__main { min-width: 0; padding-bottom: 6rem; /* room for the pinned Pay */ }

/* The owner's copy and the progress row */
.static-checkout__top { display: flex; flex-direction: column; gap: 1.25rem; padding: 0 0 0.25rem; }
.static-checkout__intro { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; }
.static-checkout__eyebrow {
  color: var(--sc-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.static-checkout__headline {
  font-size: clamp(1.875rem, 1.35rem + 2.4vw, 2.875rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.static-checkout__subline { max-width: 32rem; color: var(--sc-muted); font-size: 1rem; text-wrap: pretty; }

.static-progress__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 26rem;
  margin: 0 auto;
}
.static-progress__step { position: relative; display: flex; justify-content: center; min-width: 0; }
/* The rail into each step, from the one before it: filled once that one is done. */
.static-progress__step + .static-progress__step::before {
  content: "";
  position: absolute;
  top: 0.8125rem;
  right: calc(50% + 1rem);
  left: calc(-50% + 1rem);
  height: 2px;
  border-radius: 2px;
  background: var(--sc-line-strong);
  transition: background-color 0.3s var(--sc-ease);
}
.static-progress__step.is-complete + .static-progress__step::before { background: var(--sc-accent); }
.static-progress__target {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  min-width: 2.75rem;
  margin: 0;
  padding: 0 0.25rem 0.25rem;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--sc-muted);
  font: inherit;
  font-size: 0.8125rem;
  line-height: 1.2;
  text-align: center;
}
button.static-progress__target { cursor: pointer; }
button.static-progress__target:hover .static-progress__label { color: var(--sc-ink); }
.static-progress__dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1.5px solid var(--sc-line-strong);
  border-radius: 50%;
  background: var(--sc-bg);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.3s var(--sc-ease), border-color 0.3s var(--sc-ease), color 0.3s var(--sc-ease);
}
.static-progress__dot .static-icon { display: none; width: 0.875rem; height: 0.875rem; }
.static-progress__label { white-space: nowrap; transition: color 0.2s ease; }
.static-progress__step.is-current .static-progress__target { color: var(--sc-ink); }
.static-progress__step.is-current .static-progress__label { font-weight: 600; }
.static-progress__step.is-current .static-progress__dot { border-color: var(--sc-pay); background: var(--sc-pay); color: var(--sc-accent-text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sc-pay) 12%, transparent); }
.static-progress__step.is-complete .static-progress__target { color: var(--sc-ink); }
.static-progress__step.is-complete .static-progress__dot { border-color: var(--sc-accent); background: var(--sc-accent); color: var(--sc-accent-text); }
.static-progress__step.is-complete .static-progress__num { display: none; }
.static-progress__step.is-complete .static-progress__dot .static-icon { display: block; }

/* The form card */
.static-checkout__card {
  position: relative;
  padding: 1.5rem 1.25rem 1.75rem;
  border: 1px solid color-mix(in srgb, currentColor 6%, transparent);
  border-radius: calc(var(--sc-radius-card) - 4px);
  background: var(--sc-bg);
  box-shadow: var(--sc-shadow-card);
}
.static-checkout__form { display: flex; flex-direction: column; gap: 2.25rem; counter-reset: static-step; }

/* Sections: numbered, the number a tick once the section is done. */
.static-checkout__section { position: relative; display: flex; flex-direction: column; gap: 1rem; counter-increment: static-step; scroll-margin-top: 6rem; }
.static-checkout__head { display: flex; align-items: center; gap: 0.75rem; min-height: 1.75rem; }
.static-checkout__step {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--sc-pay);
  color: var(--sc-accent-text);
  font-size: 0.8125rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.25s var(--sc-ease);
}
.static-checkout__step::after { content: counter(static-step); }
.static-checkout__step .static-icon { display: none; width: 0.9375rem; height: 0.9375rem; }
.static-checkout__section.is-complete > .static-checkout__head .static-checkout__step { background: var(--sc-accent); }
.static-checkout__section.is-complete > .static-checkout__head .static-checkout__step::after { content: none; }
.static-checkout__section.is-complete > .static-checkout__head .static-checkout__step .static-icon { display: block; }
.static-checkout__title {
  margin: 0;
  font-family: inherit;
  font-size: 1.1875rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: inherit;
}
.static-checkout .static-checkout__lede { margin: -0.75rem 0 0.125rem 2.5rem; color: var(--sc-muted); font-size: 0.875rem; }
.static-checkout__section-error {
  padding: 0.75rem 0.875rem;
  border-radius: var(--sc-radius);
  background: var(--sc-danger-bg);
  color: var(--sc-danger);
  font-size: 0.875rem;
}
.static-checkout__section-error:empty { display: none; }
.static-checkout .static-checkout__who { margin-top: -0.5rem; color: var(--sc-muted); font-size: 0.875rem; }

/* Shipping method cards */
.static-checkout__methods {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  min-height: 3.5rem; /* the address arriving does not push the page */
}
.static-checkout__methods-wait {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  padding: 0.875rem 1rem;
  border: 1px dashed var(--sc-line-strong);
  border-radius: calc(var(--sc-radius) + 2px);
  background: var(--sc-panel);
  color: var(--sc-muted);
  font-size: 0.9375rem;
}
.static-option {
  position: relative;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--sc-line-strong);
  border-radius: calc(var(--sc-radius) + 2px);
  background: var(--sc-bg);
  box-shadow: var(--sc-shadow-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  animation: static-in 0.25s var(--sc-ease);
}
.static-option:hover { border-color: color-mix(in srgb, currentColor 32%, var(--sc-bg)); }
.static-option:has(.static-option__input:checked) {
  border-color: var(--sc-accent);
  background: var(--sc-tint);
  box-shadow: 0 0 0 1px var(--sc-accent), var(--sc-shadow-soft);
}
.static-option__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.static-option__dot {
  width: 1.125rem;
  height: 1.125rem;
  border: 1.5px solid var(--sc-line-strong);
  border-radius: 50%;
  background: var(--sc-bg);
  transition: border-width 0.15s ease, border-color 0.15s ease;
}
.static-option__input:checked + .static-option__dot { border: 5.5px solid var(--sc-accent); }
.static-option__input:focus-visible + .static-option__dot { box-shadow: 0 0 0 4px var(--sc-ring); }
.static-option > .static-icon { width: 1.375rem; height: 1.375rem; color: var(--sc-muted); }
.static-option:has(.static-option__input:checked) > .static-icon { color: var(--sc-ink); }
.static-option__title { font-size: 0.9375rem; font-weight: 550; line-height: 1.3; }
.static-option__detail { color: var(--sc-muted); font-weight: 400; }
/* On a phone the delivery time goes under the method's name. */
@media (max-width: 35.99rem) {
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-option__detail { display: block; font-size: 0.8125rem; }
}
.static-option__price { font-size: 0.9375rem; font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.static-option__price.is-free { color: var(--sc-ok); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
@keyframes static-in { from { opacity: 0; } to { opacity: 1; } }

/* Billing address folds open below its checkbox. */
.static-checkout__section--billing { gap: 0.25rem; }
.static-checkout__section--billing > .static-checkout__head { margin-bottom: 0.5rem; }
.static-checkout__reveal {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.3s var(--sc-ease), visibility 0s linear 0.3s;
}
.static-checkout__reveal.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.3s var(--sc-ease), visibility 0s;
}
.static-checkout__reveal-inner { min-height: 0; overflow: hidden; margin: 0 -0.375rem; padding: 0 0.375rem; }
.static-checkout__reveal.is-open .static-checkout__reveal-inner { padding-top: 0.75rem; padding-bottom: 0.375rem; }
.static-checkout__section--billing:not(:has(.static-check)) .static-checkout__reveal-inner { padding-top: 0; }

/* Note: a quiet link that opens a field. */
.static-checkout .static-checkout__note { margin-top: -1.5rem; }
.static-checkout__note summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  color: var(--sc-muted);
  font-size: 0.875rem;
  list-style: none;
  cursor: pointer;
}
.static-checkout__note summary::-webkit-details-marker { display: none; }
.static-checkout__note summary > span:not(.static-icon) { text-decoration: underline; text-decoration-color: var(--sc-line-strong); text-underline-offset: 3px; }
.static-checkout__note summary:hover { color: var(--sc-ink); }
.static-checkout__note summary .static-icon { width: 1rem; height: 1rem; }
.static-checkout__note summary .static-icon--chevron { transition: transform 0.2s var(--sc-ease); }
.static-checkout__note[open] summary .static-icon--chevron { transform: rotate(180deg); }
.static-checkout__note[open] summary { margin-bottom: 0.5rem; }

/* Payment */
.static-checkout__payment-wait {
  display: flex;
  align-items: center;
  min-height: 5rem;
  padding: 1rem 1.125rem;
  border: 1px dashed var(--sc-line-strong);
  border-radius: calc(var(--sc-radius) + 2px);
  background: var(--sc-panel);
  color: var(--sc-muted);
  font-size: 0.9375rem;
}
.static-checkout__payment-wait[hidden],
.static-checkout__section--payment:has([data-static-payment][data-mounted], [data-static-payment][data-mounting]) .static-checkout__payment-wait { display: none; }
.static-checkout__payment:not(:empty) { animation: static-in 0.3s var(--sc-ease); }
.static-checkout__payment:empty,
.static-checkout__payment[hidden] { display: none; }
.static-payment { display: flex; flex-direction: column; gap: 1rem; }
.static-payment__element { min-height: 12rem; }
.static-payment__test[hidden] { display: none; }
.static-payment__test {
  padding: 0.5rem 0.875rem;
  border-radius: var(--sc-radius);
  background: var(--sc-warn-bg);
  color: var(--sc-warn);
  font-size: 0.8125rem;
  text-align: center;
}
.static-payment__note { color: var(--sc-muted); }
.static-payment__error,
.static-checkout__error,
.static-checkout__notice[role="alert"] {
  color: var(--sc-danger);
  font-size: 0.9375rem;
}
.static-payment__error:empty,
.static-checkout__error:empty { display: none; }
.static-checkout__error:not(:empty),
.static-checkout__notice {
  padding: 0.875rem 1rem;
  border-radius: var(--sc-radius);
  background: var(--sc-danger-bg);
}
.static-checkout__notice[role="status"] { background: var(--sc-panel-strong); color: inherit; }
.static-checkout .static-checkout__notice { margin: 0 0 1rem; }
.static-payment__retry { align-self: flex-start; }
.static-checkout__pay[hidden] { display: none; }
.static-store-page .static-checkout__secure-line,
.static-checkout__secure-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: -0.25rem;
  color: var(--sc-muted);
  font-size: 0.8125rem;
}
.static-checkout__secure-line .static-icon { width: 0.875rem; height: 0.875rem; }

/* Express checkout: the wallets in one row, above the form. */
.static-checkout__express { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.75rem; }
.static-checkout__express[hidden] { display: none; }
.static-checkout__express-title { color: var(--sc-muted); font-size: 0.8125rem; font-weight: 500; text-align: center; }
.static-checkout__express-element { min-height: 0; }
/* While Stripe decides and draws: one button row (the wallets' 48px), shimmering under the frame; the drawn
   button takes the same row, or the block goes. */
.static-checkout__express.is-loading .static-checkout__express-element {
  height: 3rem;
  overflow: hidden;
  border-radius: var(--sc-radius);
  background: linear-gradient(90deg, var(--sc-panel-strong) 0%, var(--sc-panel) 40%, var(--sc-panel-strong) 80%);
  background-size: 300% 100%;
  animation: static-shimmer 1.4s ease-in-out infinite;
}
.static-store-page .static-checkout__or,
.static-checkout__or {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  color: var(--sc-muted);
  font-size: 0.8125rem;
}
.static-checkout__or::before,
.static-checkout__or::after { content: ""; flex: 1; height: 1px; background: var(--sc-line); }

/* The phone's pinned Pay: over the page's bottom edge, clear of the home indicator, gone while the buyer
   types or while the page's own Pay is on screen. */
.static-checkout__bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--sc-line);
  background: color-mix(in srgb, var(--sc-bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  transition: transform 0.28s var(--sc-ease), opacity 0.2s ease;
}
.static-checkout__bar.is-away { transform: translateY(calc(100% + 1rem)); opacity: 0; pointer-events: none; }
.static-checkout__bar .static-button--primary { max-width: 32rem; margin: 0 auto; display: flex; min-height: 3.25rem; }

/* In place of the form: an empty cart, an ended checkout, a paid one. */
.static-checkout__ended {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 30rem;
  margin: 1rem auto 2rem;
  padding: 2.75rem 1.5rem 2.25rem;
  border: 1px solid color-mix(in srgb, currentColor 6%, transparent);
  border-radius: var(--sc-radius-card);
  background: var(--sc-bg);
  box-shadow: var(--sc-shadow-card);
  text-align: center;
}
.static-checkout__ended-mark {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  background: var(--sc-tint);
  color: var(--sc-accent);
}
.static-checkout__ended-mark .static-icon { width: 1.75rem; height: 1.75rem; }
.static-checkout__ended-title { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.01em; }
.static-checkout__ended-note { max-width: 22rem; color: var(--sc-muted); }
.static-checkout__ended .static-button { width: auto; min-width: 14rem; margin-top: 0.75rem; padding: 0 1.75rem; }

/* ---- the order summary ---- */

/* A band of the owner's picture (or a soft gradient) behind a frosted card. */
.static-checkout__summary {
  position: relative;
  padding: 0.625rem;
  border-radius: var(--sc-radius-card);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--sc-accent) 20%, transparent), transparent 62%),
    radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--sc-pay) 10%, transparent), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--sc-accent) 10%, #eef1f6), color-mix(in srgb, var(--sc-accent) 4%, #f7f8fb));
  isolation: isolate;
}
.static-checkout.has-image .static-checkout__summary {
  background: var(--static-checkout-image) center / cover no-repeat, color-mix(in srgb, var(--sc-accent) 12%, #e9edf3);
}
.static-checkout__summary-inner { display: flex; flex-direction: column; gap: 0.625rem; }
.static-checkout__summary-card {
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: calc(var(--sc-radius-card) - 8px);
  background: color-mix(in srgb, var(--sc-bg) 84%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 14px 34px -14px rgba(16, 24, 40, 0.35);
}
.static-checkout__toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  min-height: 3.75rem;
  margin: 0;
  padding: 0.5rem 0.875rem 0.5rem 0.5rem;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.static-checkout__toggle-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.static-checkout__toggle-label { font-size: 0.875rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.static-checkout__toggle-count { color: var(--sc-muted); font-size: 0.8125rem; }
.static-checkout__toggle-icon { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-left: -0.25rem; color: var(--sc-muted); }
.static-checkout__toggle-icon .static-icon { width: 1.125rem; height: 1.125rem; transition: transform 0.25s var(--sc-ease); }
.static-checkout__toggle[aria-expanded="true"] .static-checkout__toggle-icon .static-icon { transform: rotate(180deg); }
.static-checkout__toggle-total { font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.static-thumb--bar { width: 2.5rem; height: 2.5rem; border-radius: 10px; }
.static-thumb--bar img,
.static-thumb--bar .static-thumb__blank { border-radius: 9px; }
.static-checkout__summary-body {
  max-height: 0;
  padding: 0 1rem;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.35s var(--sc-ease), visibility 0s linear 0.35s;
}
.static-checkout__summary.is-open .static-checkout__summary-body {
  max-height: 200rem;
  padding-bottom: 1.125rem;
  visibility: visible;
  transition: max-height 0.5s var(--sc-ease), visibility 0s;
}
.static-checkout__summary-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.static-checkout__summary.is-saving .static-checkout__totals dd,
.static-checkout__summary.is-saving .static-checkout__toggle-total { opacity: 0.5; transition: opacity 0.2s ease 0.15s; }

/* The trust note: on a phone it opens with the summary. */
.static-checkout__trust {
  display: none;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: calc(var(--sc-radius-card) - 8px);
  background: color-mix(in srgb, var(--sc-bg) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 10px 30px -16px rgba(16, 24, 40, 0.35);
}
.static-checkout__summary.is-open .static-checkout__trust { display: flex; }
.static-checkout__trust-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--sc-ok-bg);
  color: var(--sc-ok);
}
.static-checkout__trust-mark .static-icon { width: 1.375rem; height: 1.375rem; }
.static-checkout__trust-copy { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }
.static-checkout__trust-title { font-size: 0.9375rem; font-weight: 650; }
.static-checkout__trust-text { color: var(--sc-muted); font-size: 0.8125rem; }

.static-checkout__lines,
.static-order__lines {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 1rem 0 1.25rem;
  list-style: none;
}
.static-checkout__summary.is-open .static-checkout__lines { border-top: 1px solid var(--sc-line); }
.static-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.9375rem;
}
.static-thumb {
  position: relative;
  display: block;
  flex: none;
  width: 3.75rem;
  height: 3.75rem;
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius);
  background: var(--sc-bg);
}
.static-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--sc-radius) - 1px);
  object-fit: cover;
}
.static-thumb__blank {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--sc-radius) - 1px);
  background: linear-gradient(135deg, var(--sc-panel), var(--sc-panel-strong));
}
.static-thumb__qty {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  display: grid;
  place-items: center;
  min-width: 1.375rem;
  height: 1.375rem;
  padding: 0 0.375rem;
  border: 2px solid var(--sc-bg);
  border-radius: 999px;
  background: var(--sc-pay);
  color: var(--sc-accent-text);
  font-size: 0.6875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.static-line__info { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }
.static-line__name { font-weight: 600; overflow-wrap: anywhere; }
.static-line__variant,
.static-line__note { color: var(--sc-muted); font-size: 0.8125rem; }
.static-line__note { color: var(--sc-warn); }
.static-line__total { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.static-line__info .static-button { align-self: flex-start; margin-top: 0.375rem; }

.static-checkout__coupon { padding: 1.125rem 0 0; border-top: 1px solid var(--sc-line); }
.static-checkout__coupon-row { display: flex; gap: 0.5rem; }
.static-checkout__coupon-row .static-field__input { flex: 1; min-width: 0; min-height: 2.875rem; }
.static-checkout__coupon-row .static-button { flex: none; min-height: 2.875rem; }
.static-checkout__coupons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 0 0;
  list-style: none;
}
.static-checkout__coupons:empty { display: none; }
/* The store takes no discount codes (checkout.json coupons: false; static-store.js marks the box). */
[data-coupons="off"] .static-checkout__coupon,
[data-coupons="off"] .static-checkout__coupons { display: none; }
[data-coupons="off"] .static-checkout__totals { margin-top: 0; }
.static-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.25rem 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--sc-panel-strong);
  font-size: 0.8125rem;
  font-weight: 600;
}
.static-chip__remove {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
}
.static-chip__remove:hover { background: var(--sc-line); }

.static-checkout__totals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.625rem 0; /* no column gap: the total's rule runs unbroken under both cells */
  margin-top: 1.125rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--sc-line);
  font-size: 0.9375rem;
}
.static-checkout__totals dt,
.static-checkout__totals dd { margin: 0; }
.static-checkout__totals dt { color: var(--sc-muted); }
.static-checkout__totals dd { padding-left: 1rem; text-align: right; font-variant-numeric: tabular-nums; }
.static-checkout__totals .is-pending { color: var(--sc-muted); }
.static-checkout__totals .is-discount { color: var(--sc-ok); }
.static-checkout__totals .is-total {
  align-self: baseline;
  margin-top: 0.5rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--sc-line);
  color: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.static-checkout__currency { margin-right: 0.375rem; color: var(--sc-muted); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em; }
.static-store-page .static-checkout__tax-note,
.static-checkout__tax-note { margin-top: 0.25rem; color: var(--sc-muted); font-size: 0.8125rem; text-align: right; }
.static-checkout__tax-note:empty { display: none; }

/* Loading: reserved space with the summary and form's shape */
.static-skeleton {
  display: block;
  height: 1rem;
  margin: 0 0 1rem;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--sc-panel-strong) 0%, var(--sc-panel) 40%, var(--sc-panel-strong) 80%);
  background-size: 300% 100%;
  animation: static-shimmer 1.4s ease-in-out infinite;
}
.static-skeleton[data-w="30"] { width: 30%; }
.static-skeleton[data-w="40"] { width: 40%; }
.static-skeleton[data-w="60"] { width: 60%; }
.static-skeleton[data-w="90"] { width: 90%; height: 3rem; }
.static-skeleton[data-w="100"] { height: 3rem; }
.static-checkout__skeleton .static-checkout__summary-card { padding: 1rem 1rem 0.25rem; }
@keyframes static-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* A 320px phone: every pixel to the fields and the summary bar's words. */
@media (max-width: 21.99rem) {
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-checkout__card { padding: 1.25rem 1rem 1.5rem; }
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-thumb--bar { display: none; }
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-checkout__toggle { padding-left: 0.875rem; }
}

@media (min-width: 36rem) {
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-checkout__card { padding: 2rem 2rem 2.25rem; border-radius: var(--sc-radius-card); }
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-checkout__summary { padding: 0.875rem; }
}

/* Two columns: the form card on the left; on the right the picture fills the column and the summary follows the
   page down over it. */
@media (min-width: 60rem) {
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-checkout__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    grid-template-areas: "top summary" "main summary";
    grid-template-rows: auto 1fr;
    column-gap: clamp(2rem, 3.5vw, 3.5rem);
    row-gap: 2rem;
    align-items: start;
  }
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-checkout__top { grid-area: top; padding-top: 1.5rem; gap: 1.75rem; }
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-checkout__main { grid-area: main; padding-bottom: 0; }
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-checkout__card { padding: 2.5rem 2.75rem 2.75rem; }
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-progress__target { font-size: 0.875rem; }
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-checkout__summary {
    grid-area: summary;
    align-self: stretch;
    min-height: 36rem;
    padding: 1.75rem;
    border-radius: calc(var(--sc-radius-card) + 4px);
    box-shadow: var(--sc-shadow-card);
  }
  /* Clear of a sticky site header. A summary taller than the screen (a long order) scrolls inside its card, so its
     top and its total are never cut off; the trust note stays under it. */
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-checkout__summary-inner {
    position: sticky;
    top: var(--sc-sticky-top);
    max-height: calc(100vh - var(--sc-sticky-top) - 1.5rem);
    max-height: calc(100dvh - var(--sc-sticky-top) - 1.5rem);
    gap: 1rem;
  }
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-checkout__summary-card {
    min-height: 0;
    padding: 1.5rem 1.5rem 1.375rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-checkout__trust { flex: none; }
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-checkout__toggle { display: none; }
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-checkout__summary-body,
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-checkout__summary.is-open .static-checkout__summary-body {
    max-height: none;
    padding: 0;
    overflow: visible;
    visibility: visible;
  }
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-checkout__summary-title {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--sc-line);
    font-family: inherit;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-checkout__lines { padding: 1.25rem 0; }
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-checkout__trust { display: flex; }
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-checkout__bar { display: none; }
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-checkout__skeleton .static-checkout__summary-card { padding: 1.5rem; }
}

/* ---- order page --------------------------------------------------------------------------- */

.static-order {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}
.static-order > .static-progress { margin-bottom: 0.25rem; }
.static-order__card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem 1.25rem;
  border: 1px solid color-mix(in srgb, currentColor 6%, transparent);
  border-radius: var(--sc-radius-card);
  background: var(--sc-bg);
  box-shadow: var(--sc-shadow-card);
}
.static-order__head { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.static-order__heading { display: flex; flex-direction: column; gap: 0.25rem; }
.static-order__mark {
  position: relative;
  flex: none;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--sc-ok-bg);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--sc-ok) 30%, transparent);
  animation: static-pop 0.45s var(--sc-ease) both;
}
.static-order__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 1.375rem;
  height: 0.7rem;
  border-left: 3px solid var(--sc-ok);
  border-bottom: 3px solid var(--sc-ok);
  transform: translate(-50%, -50%) rotate(-45deg);
  transform-origin: center;
  animation: static-tick 0.35s var(--sc-ease) 0.3s both;
}
@keyframes static-pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes static-tick { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.static-order__ref { color: var(--sc-muted); font-size: 0.9375rem; }
.static-order__title { font-family: inherit; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: inherit; }
.static-order__state {
  align-self: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--sc-panel-strong);
  font-size: 0.8125rem;
  font-weight: 600;
}
.static-order__card > .static-order__note { color: var(--sc-muted); text-align: center; }
.static-order > .static-order__note,
.static-order > .static-order__state,
.static-order > .static-order__ref { text-align: center; }
.static-order__lines { padding: 1.25rem 0; border-top: 1px solid var(--sc-line); border-bottom: 1px solid var(--sc-line); }
.static-order__totals { display: flex; flex-direction: column; gap: 0.5rem; font-variant-numeric: tabular-nums; }
.static-order__row { display: flex; justify-content: space-between; gap: 1rem; color: var(--sc-muted); }
.static-order__row > span:last-child { color: var(--sc-ink); }
.static-order__total { margin-top: 0.25rem; padding-top: 0.75rem; border-top: 1px solid var(--sc-line); color: var(--sc-ink); font-size: 1.25rem; font-weight: 700; }
.static-order__addresses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: calc(var(--sc-radius) + 2px);
  background: var(--sc-panel);
}
.static-order__addresses:empty { display: none; }
.static-order__address { display: flex; flex-direction: column; gap: 0.125rem; }
.static-store-page .static-order__address h3,
.static-order__address h3 { margin-bottom: 0.25rem; font-family: inherit; font-size: 0.875rem; font-weight: 650; }
.static-order__address p { color: var(--sc-muted); font-size: 0.9375rem; }
.static-order__shop { align-self: center; }
.static-payment__back { display: inline-block; color: inherit; font-weight: 600; text-underline-offset: 3px; }
@media (min-width: 36rem) {
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-order__card { padding: 2.5rem 2.5rem 2.25rem; }
}

/* ---- cart page --------------------------------------------------------------------------- */

/* As the checkout: the site's width up to 72rem with a 1rem gutter, centred on the page, whatever column the theme
   gives it (a builder page has no gutter; a classic page's reading column is too narrow for lines beside a summary). */
.static-cart { width: 100%; max-width: 72rem; margin: 0 auto; padding: 1.5rem 0 3rem; container-type: inline-size; }
.static-store-page.static-store-page--cart {
  --sc-wide: min(72rem, 100vw - 2rem);
  width: var(--sc-wide);
  max-width: none;
  margin-left: calc(50% - var(--sc-wide) / 2);
  margin-right: 0;
}
.static-cart[aria-busy="true"] .static-cart__total,
.static-cart[aria-busy="true"] .static-cart__totals dd:not(.is-pending),
.static-cart[aria-busy="true"] .static-cart__bar-total { opacity: 0.5; transition: opacity 0.2s ease 0.15s; }

/* The page's heading: the theme's entry title stays for assistive tech (see "the page around the store"). */
.static-cart__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.875rem; margin-bottom: 1.25rem; }
.static-store-page .static-cart__title,
.static-cart__title {
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: clamp(1.875rem, 1.35rem + 2.2vw, 2.625rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.static-cart__count { color: var(--sc-muted); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }

.static-cart__notes:empty { display: none; }
.static-cart__notes { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.static-cart__note,
.static-cart__error {
  padding: 0.75rem 1rem;
  border-radius: var(--sc-radius);
  background: var(--sc-warn-bg);
  color: var(--sc-warn);
  font-size: 0.9375rem;
}
.static-cart__error { background: var(--sc-danger-bg); color: var(--sc-danger); }
.static-cart__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
.static-cart__lines,
.static-cart__summary,
.static-cart__empty-state {
  border: 1px solid color-mix(in srgb, currentColor 6%, transparent);
  border-radius: calc(var(--sc-radius-card) - 4px);
  background: var(--sc-bg);
  box-shadow: var(--sc-shadow-card);
}
.static-store-page .static-cart__lines,
.static-cart__lines { padding: 0 1.25rem; list-style: none; }
.static-cart__line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "thumb info total" "thumb stepper stepper";
  align-items: start;
  gap: 0.75rem 1rem;
  padding: 1.25rem 0;
}
.static-cart__line + .static-cart__line { border-top: 1px solid var(--sc-line); }
.static-cart__line .static-thumb { grid-area: thumb; width: 4.5rem; height: 4.5rem; }
.static-cart__info { grid-area: info; display: flex; flex-direction: column; align-items: flex-start; gap: 0.125rem; min-width: 0; }
.static-cart__name { color: inherit; font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
a.static-cart__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.static-cart__variant,
.static-cart__unit { color: var(--sc-muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.static-cart__remove {
  margin-top: 0.25rem;
  padding: 0.25rem 0;
  border: 0;
  background: none;
  color: var(--sc-muted);
  font: inherit;
  font-size: 0.8125rem;
  text-decoration: underline;
  text-decoration-color: var(--sc-line-strong);
  text-underline-offset: 3px;
  cursor: pointer;
}
.static-cart__remove:hover { color: inherit; }
.static-cart__stepper {
  grid-area: stepper;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  border: 1px solid var(--sc-line-strong);
  border-radius: 999px;
  background: var(--sc-bg);
  box-shadow: var(--sc-shadow-soft);
}
.static-cart__stepper button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.125rem;
  cursor: pointer;
}
.static-cart__stepper button:hover:not(:disabled) { background: var(--sc-panel-strong); }
.static-cart__stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.static-cart__qty { min-width: 1.75rem; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.static-cart__total { grid-area: total; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }

/* The order summary: priced rows, the code, the estimated total, Checkout. */
.static-cart__summary { display: flex; flex-direction: column; padding: 1.5rem 1.25rem 1.25rem; }
.static-store-page .static-cart__summary-title,
.static-cart__summary-title {
  margin: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sc-line);
  color: inherit;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.static-cart__totals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.625rem 0;
  margin: 0;
  padding: 1rem 0;
  font-size: 0.9375rem;
}
.static-cart__totals dt,
.static-cart__totals dd { margin: 0; }
.static-cart__totals dt { color: var(--sc-muted); }
.static-cart__totals dd { padding-left: 1rem; text-align: right; font-variant-numeric: tabular-nums; }
.static-cart__totals dd.is-pending { color: var(--sc-muted); font-size: 0.875rem; }
/* Not priced yet: a placeholder the width of an amount. */
.static-cart__totals dd:empty::before {
  content: "";
  display: inline-block;
  width: 4.5rem;
  height: 0.875em;
  border-radius: 6px;
  vertical-align: -0.0625em;
  background: linear-gradient(90deg, var(--sc-panel-strong) 0%, var(--sc-panel) 40%, var(--sc-panel-strong) 80%);
  background-size: 300% 100%;
  animation: static-shimmer 1.4s ease-in-out infinite;
}
.static-cart__totals--total { align-items: baseline; padding: 1rem 0 0; border-top: 1px solid var(--sc-line); }
.static-cart__totals--total dt { color: inherit; font-size: 1.0625rem; font-weight: 650; }
.static-cart__totals--total dd { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.static-store-page .static-cart__tax,
.static-cart__tax { margin: 0.375rem 0 1.25rem; color: var(--sc-muted); font-size: 0.8125rem; text-align: right; }

.static-cart__code { padding: 0 0 1rem; }
.static-cart__code:empty { display: none; }
.static-cart__code-open {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
/* A plus in a ring, drawn: it reads as "add" without an icon file. */
.static-cart__code-open::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 1.375rem;
  height: 1.375rem;
  border: 1.5px solid var(--sc-line-strong);
  border-radius: 50%;
  color: var(--sc-muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
}
.static-cart__code-open:hover { text-decoration: underline; text-underline-offset: 3px; }
.static-cart__code-row { display: flex; gap: 0.5rem; }
.static-cart__code-row .static-field__input { flex: 1; min-width: 0; min-height: 2.875rem; text-transform: uppercase; }
.static-cart__code-row .static-field__input::placeholder { text-transform: none; }
.static-cart__code-row .static-button { flex: none; min-height: 2.875rem; }
.static-store-page .static-cart__codes,
.static-cart__codes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.static-chip__code { letter-spacing: 0.02em; text-transform: uppercase; } /* as the field shows it; codes are not case-sensitive */
.static-cart__code-note { margin-top: 0.5rem; color: var(--sc-muted); font-size: 0.8125rem; }
.static-cart__code-note.is-error,
.static-cart__code-error { color: var(--sc-danger); font-size: 0.8125rem; }
.static-cart__code-error { margin: 0.375rem 0 0; }
.static-cart__code-error:empty { display: none; }
.static-cart__code-form.is-invalid .static-field__input { border-color: var(--sc-danger); }
.static-cart__totals dd.is-discount { color: var(--sc-ok); }

/* The shipping estimate: under the shipping row, as quiet as the code link until asked for. */
.static-cart__ship { padding: 0 0 0.75rem; }
.static-cart__ship-open,
.static-cart__ship-change {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.static-cart__ship-open { min-height: 2.75rem; }
.static-cart__ship-change { min-height: 1.75rem; margin-left: 0.5rem; }
/* The estimate's methods: the checkout's radio cards (.static-option), compact. */
.static-cart__ship-methods { display: grid; gap: 0.375rem; margin: 0 0 0.5rem; font-size: 0.875rem; }
.static-cart__ship-method {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--sc-line);
  border-radius: 10px;
  background: var(--sc-bg);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.static-cart__ship-method:hover { border-color: var(--sc-line-strong); }
.static-cart__ship-method.is-chosen { border-color: var(--sc-accent); box-shadow: 0 0 0 1px var(--sc-accent); }
.static-cart__ship-radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.static-cart__ship-dot { flex: none; width: 1rem; height: 1rem; border: 1.5px solid var(--sc-line-strong); border-radius: 50%; background: var(--sc-bg); }
.static-cart__ship-method.is-chosen .static-cart__ship-dot { border-color: var(--sc-accent); box-shadow: inset 0 0 0 3px var(--sc-bg); background: var(--sc-accent); }
.static-cart__ship-radio:focus-visible + .static-cart__ship-dot { outline: 2px solid var(--sc-accent); outline-offset: 2px; }
.static-cart__ship-title { flex: 1; min-width: 0; }
.static-cart__ship-method:not(.is-chosen) .static-cart__ship-title { color: var(--sc-muted); }
.static-cart__ship-price { flex: none; font-variant-numeric: tabular-nums; }
.static-cart__ship-price.is-free { font-weight: 600; }
.static-store-page .static-cart__ship-for,
.static-cart__ship-for,
.static-store-page .static-cart__ship-note,
.static-cart__ship-note { margin: 0; color: var(--sc-muted); font-size: 0.8125rem; }
.static-cart__ship-note { margin-bottom: 0.375rem; }
.static-cart__ship-form { display: grid; gap: 0.625rem; padding: 0.25rem 0 0.25rem; }
.static-cart__ship-field { margin: 0; }
.static-cart__ship-field .static-field__label { font-size: 0.8125rem; }
.static-cart__ship-field .static-field__input { min-height: 2.75rem; }
.static-cart__ship-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.625rem; }
.static-cart__ship-go { justify-self: start; min-height: 2.75rem; }
.static-cart__ship-error { margin: 0; color: var(--sc-danger); font-size: 0.8125rem; }
.static-cart__ship-error:empty { display: none; }
@media (min-width: 22rem) {
  .static-cart__ship-row { grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); }
}

.static-cart__checkout::after {
  content: "";
  width: 1.125rem;
  height: 1.125rem;
  background-color: currentColor;
  -webkit-mask: var(--sc-uri-arrow) center / contain no-repeat;
  mask: var(--sc-uri-arrow) center / contain no-repeat;
  transition: transform 0.2s var(--sc-ease);
}
.static-cart__checkout:hover::after { transform: translateX(3px); }
.static-cart__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 0.875rem;
  color: var(--sc-muted);
  font-size: 0.8125rem;
  text-align: center;
}
.static-cart__secure .static-icon { width: 1rem; height: 1rem; color: var(--sc-ok); }
.static-cart__continue { align-self: center; margin-top: 0.5rem; padding: 0.5rem; color: var(--sc-muted); font-size: 0.875rem; text-decoration: underline; text-decoration-color: var(--sc-line-strong); text-underline-offset: 3px; }
.static-cart__continue:hover { color: inherit; }

/* A phone's pinned Checkout (as the checkout's pinned Pay), only while the page's own Checkout is below the screen. */
.static-cart__bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--sc-line);
  background: color-mix(in srgb, var(--sc-bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  transition: transform 0.28s var(--sc-ease), opacity 0.2s ease;
}
.static-cart__bar.is-away { transform: translateY(calc(100% + 1rem)); opacity: 0; pointer-events: none; }
.static-cart__bar .static-button--primary { display: flex; max-width: 32rem; min-height: 3.25rem; margin: 0 auto; }
.static-cart__bar-total { padding-left: 0.75rem; border-left: 1px solid color-mix(in srgb, var(--sc-accent-text) 35%, transparent); font-variant-numeric: tabular-nums; }

.static-cart__empty-state { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; max-width: 30rem; margin: 1rem auto; padding: 2.75rem 1.5rem 2.25rem; text-align: center; }
.static-cart__empty-state .static-button { width: auto; min-width: 14rem; margin-top: 0.75rem; padding: 0 1.75rem; }
.static-cart__empty { font-size: 1.25rem; font-weight: 650; }
.static-cart__empty-mark {
  display: block;
  width: 4rem;
  height: 4rem;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--sc-tint), var(--sc-tint));
  position: relative;
}
.static-cart__empty-mark::after {
  content: "";
  position: absolute;
  inset: 1.125rem;
  background-color: var(--sc-accent);
  -webkit-mask: var(--sc-uri-bag) center / contain no-repeat;
  mask: var(--sc-uri-bag) center / contain no-repeat;
}
@container (min-width: 34rem) {
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-store-page .static-cart__lines,
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-cart__lines { padding: 0 1.75rem; }
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-cart__line {
    grid-template-columns: auto minmax(0, 1fr) auto 6.5rem;
    grid-template-areas: "thumb info stepper total";
    align-items: center;
  }
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-cart__line .static-thumb { width: 5rem; height: 5rem; }
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-cart__summary { padding: 1.75rem 1.75rem 1.5rem; }
}
/* Beside the lines, the summary follows the page down, clear of a sticky site header; taller than the screen, it
   scrolls inside itself rather than run off the bottom. */
@container (min-width: 52rem) {
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-cart__layout { grid-template-columns: minmax(0, 1fr) 22rem; gap: 1.5rem; }
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-cart__head { margin-bottom: 1.75rem; }
  :is(.static-checkout, .static-cart, .static-order, .static-account__address-form) .static-cart__summary {
    position: sticky;
    top: var(--sc-sticky-top);
    max-height: calc(100vh - var(--sc-sticky-top) - 1rem);
    max-height: calc(100dvh - var(--sc-sticky-top) - 1rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}

/* ---- mini-cart --------------------------------------------------------------------------- */

.static-mini-cart__lines { display: flex; flex-direction: column; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.static-mini-cart__line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
.static-mini-cart__line .static-thumb { width: 2.75rem; height: 2.75rem; }
.static-mini-cart__total { font-variant-numeric: tabular-nums; }
.static-mini-cart__subtotal { margin: 0.75rem 0 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- add-to-cart notice --------------------------------------------------------------------- */

.static-add-notice {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.75rem;
  margin: 0.75rem 0 0;
  padding: 0.625rem 0.875rem;
  border-radius: var(--sc-radius);
  background: var(--sc-warn-bg);
  color: var(--sc-warn);
  font-size: 0.9375rem;
  line-height: 1.35;
  animation: static-notice 0.3s var(--sc-ease);
}
.static-add-notice--ok { background: var(--sc-ok-bg); color: var(--sc-ok); }
.static-add-notice--ok > span:first-child::before {
  content: "";
  display: inline-block;
  width: 0.75rem;
  height: 0.4rem;
  margin: 0 0.5rem 0.2rem 0.125rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
.static-add-notice__cart { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@keyframes static-notice { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---- motion ---------------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .static-checkout *,
  .static-checkout *::before,
  .static-checkout *::after,
  .static-cart *,
  .static-cart *::after,
  .static-order *,
  .static-order *::after,
  .static-add-notice {
    animation: none !important;
    transition: none !important;
  }
}
