:root {
  color-scheme: light;
  --ink: var(--shop-ink, #172c23);
  --quiet: var(--shop-muted, #52675b);
  --line: var(--shop-line, #d9e3db);
  --green: var(--shop-primary, #20583e);
  --green-deep: var(--shop-primary-hover, #17452f);
  --green-soft: var(--shop-soft, #eaf3ec);
  --paper: var(--shop-canvas, #f4f7f4);
  --white: var(--shop-surface, #fff);
  --control-radius: var(--shop-radius-control, 10px);
  --card-radius: var(--shop-radius-card, 16px);
  --target-size: var(--shop-control-height, 44px);
  --amber: #755011;
  --amber-soft: #fff6df;
  --error: var(--shop-danger, #a12e29);
  --error-soft: #fff0ed;
  font-family: var(--shop-font, Inter, 'Segoe UI', system-ui, sans-serif);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 280px; min-height: 100dvh; margin: 0; display: flex; flex-direction: column; }
a, button, textarea, input { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--shop-focus, #276c4a); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; z-index: 1; left: 12px; top: 8px; transform: translateY(-160%); padding: 10px 14px; background: var(--white); }
.skip-link:focus { transform: none; }
.site-width { width: min(1080px, calc(100% - 56px)); margin-inline: auto; }
.checkout-symbols { position: absolute; pointer-events: none; }
.checkout-header .shop-icon, .panel .shop-icon { width: 18px; height: 18px; }

.checkout-header { background: var(--white); border-bottom: 1px solid var(--line); }
.checkout-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 71px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: var(--target-size); }
.brand-image { display: block; width: 184px; height: auto; }
.header-actions { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: 4px; }
.nav-action { display: inline-flex; align-items: center; min-height: var(--target-size); gap: 7px; padding: 6px 10px; border: 1px solid transparent; border-radius: var(--control-radius); background: transparent; font-size: .875rem; font-weight: 650; color: var(--green); text-decoration: none; }
.nav-action:hover { background: var(--green-soft); }
.nav-action:not(.nav-button) { border-color: var(--line); }

main { flex: 1; padding: clamp(31px, 5vw, 62px) 0 64px; }
.page-heading { margin: 0 0 clamp(21px, 3vw, 32px); }
.page-heading h1 { margin: 0; font-size: clamp(2.38rem, 6vw, 3.95rem); font-weight: 770; letter-spacing: -.072em; line-height: 1.03; }
.page-heading h1:focus { outline: none; }
.store-name { margin: 0 0 8px; color: var(--green); font-size: .9375rem; font-weight: 680; overflow-wrap: anywhere; }
.page-intro { margin: 10px 0 0; color: var(--quiet); line-height: 1.6; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; gap: clamp(16px, 3vw, 29px); }
.checkout-main, .tracking-grid { display: grid; min-width: 0; gap: 16px; }
.panel { min-width: 0; padding: clamp(19px, 3vw, 28px); background: var(--white); border: 1px solid var(--line); border-radius: var(--card-radius); box-shadow: var(--shop-shadow, 0 12px 36px #172c2309); }
.panel h2 { margin: 0; font-size: 1.22rem; font-weight: 750; letter-spacing: -.038em; line-height: 1.25; }
.panel-title { display: flex; align-items: center; gap: 9px; }
.panel-glyph, .choice-glyph { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border-radius: var(--control-radius); color: var(--green); background: var(--green-soft); }
.panel-intro { margin: 7px 0 0; color: var(--quiet); line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.checkout-summary { position: sticky; top: 16px; }

.stack-form { display: grid; justify-items: start; gap: 12px; margin: 18px 0 0; }
.stack-form .stack-form { width: 100%; margin-top: 0; }
.form-field { display: grid; width: 100%; max-width: 400px; gap: 6px; font-size: .9375rem; font-weight: 650; }
.form-field input, .form-field textarea { width: 100%; min-height: 46px; border: 1px solid #bccbc0; border-radius: var(--control-radius); padding: 10px 12px; background: var(--white); font-size: 1rem; font-weight: 450; }
.form-field textarea { resize: vertical; }
.field-hint { margin: 0; color: var(--quiet); font-size: .875rem; line-height: 1.45; white-space: pre-line; }
.code-recipient { overflow-wrap: anywhere; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; min-height: var(--target-size); padding: 9px 15px; border: 1px solid var(--green); border-radius: var(--control-radius); background: var(--green); color: var(--white); font-size: .9375rem; font-weight: 680; text-align: center; text-decoration: none; }
.button:hover:not(:disabled) { background: var(--green-deep); border-color: var(--green-deep); }
.button:disabled { cursor: not-allowed; }
.button-secondary { color: var(--green-deep); background: var(--white); border-color: var(--line); }
.button-quiet { color: var(--green); background: transparent; border-color: transparent; }
.button-quiet:hover:not(:disabled), .button-secondary:hover:not(:disabled) { color: var(--green-deep); background: var(--green-soft); border-color: var(--line); }
.verified { margin: 0; padding: 5px 9px; border-radius: 100px; color: var(--green); background: var(--green-soft); font-size: .8125rem; font-weight: 650; }
.notice, .demo-inbox { margin: 0 0 18px; padding: 11px 14px; color: var(--green-deep); background: var(--green-soft); border: 1px solid #cee1d1; border-radius: 8px; font-size: .9375rem; line-height: 1.45; overflow-wrap: anywhere; }
.notice[data-kind="error"] { color: var(--error); background: var(--error-soft); border-color: #efd1cc; }
.demo-inbox { margin: 0; color: var(--amber); background: var(--amber-soft); border-color: #f1dfb0; }
.demo-inbox p { margin: 0; }
.demo-inbox button { margin-top: 9px; }
.demo-inbox #demo-message { margin-top: 9px; font-weight: 650; white-space: pre-wrap; }

.checkout-auth-dialog {
  width: min(460px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  padding: clamp(18px, 5vw, 26px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 62px #172c2338;
}
.checkout-auth-dialog::backdrop { background: #172c238a; }
.checkout-auth-dialog .panel { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.checkout-auth-dialog .form-field { max-width: none; }
.checkout-auth-notice { margin: 14px 0 0; }
.checkout-auth-footer { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); }
.checkout-auth-footer .button { margin-inline-start: -12px; padding-inline: 12px; }

.choice-group { width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; }
.choices { display: grid; gap: 9px; }
.choice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 10px; width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--control-radius); cursor: pointer; }
.choice:hover { border-color: #95b3a0; }
.choice:has(input:checked) { color: var(--green-deep); background: var(--green-soft); border-color: var(--green); }
.choice input { grid-area: 1 / 3; width: 17px; height: 17px; margin: 8px 0 0; accent-color: var(--green); }
.choice-glyph { grid-area: 1 / 1; }
.choice:has(input:checked) .choice-glyph { color: var(--green-deep); background: var(--white); }
.choice-copy { grid-area: 1 / 2; display: grid; min-width: 0; gap: 3px; }
.choice strong { font-size: .9375rem; }
.choice small { color: var(--quiet); font-size: .875rem; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.delivery-point { min-width: 0; width: 100%; }
.delivery-quote-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.delivery-quote-feedback .field-hint { overflow-wrap: anywhere; }
.delivery-quote-feedback [data-kind="error"] { color: var(--error); }
#place-order { width: min(100%, 250px); justify-content: space-between; }

.quote-items { list-style: none; margin: 13px 0 0; padding: 0; }
.quote-items li { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 10px 0; color: var(--quiet); font-size: .9375rem; }
.quote-items li + li { border-top: 1px solid var(--line); }
.quote-items li > :first-child { min-width: 0; overflow-wrap: anywhere; }
.quote-items li > :last-child, .quote-totals dd { flex: none; font-variant-numeric: tabular-nums; }
.quote-totals { display: grid; gap: 8px; margin: 10px 0 0; padding-top: 13px; border-top: 1px solid var(--line); }
.quote-totals div { display: flex; align-items: start; justify-content: space-between; gap: 12px; color: var(--quiet); font-size: .9375rem; }
.quote-totals dd { margin: 0; text-align: right; }
.quote-totals .quote-total { align-items: center; flex-wrap: wrap; margin-top: 4px; padding: 12px 14px; border-radius: var(--control-radius); color: #fff; background: var(--green-deep); font-weight: 650; }
.quote-total dd { font-size: clamp(1.24rem, 3.4vw, 1.65rem); font-weight: 760; letter-spacing: -.045em; }
.summary-note { margin: 10px 0 0; color: var(--quiet); font-size: .875rem; line-height: 1.45; }

.orders-list { display: grid; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.orders-list:empty { display: none; }
.orders-list a { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: var(--target-size); padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--control-radius); color: var(--green-deep); text-decoration: none; }
.orders-list a:hover { background: var(--green-soft); border-color: var(--green); }
.orders-list a > span { min-width: 0; overflow-wrap: anywhere; }
.orders-list a strong, .orders-list a small { display: block; }
.orders-list a small { margin-top: 2px; color: var(--quiet); font-size: .875rem; }

.order-reference { margin: 12px 0 19px; color: var(--quiet); font-size: .875rem; overflow-wrap: anywhere; }
.order-reference strong { color: var(--green-deep); font-variant-numeric: tabular-nums; }
.status-list { margin: 0; padding: 0; list-style: none; }
.status-list li { position: relative; min-height: 43px; padding: 8px 9px 12px 33px; color: var(--quiet); font-size: .9375rem; }
.status-list li::before { position: absolute; inset: 12px auto auto 12px; z-index: 1; width: 12px; height: 12px; border: 2px solid #a9b7ae; border-radius: 50%; background: var(--white); content: ''; }
.status-list li:not(:last-child)::after { position: absolute; inset: 23px auto -14px 17px; width: 2px; background: var(--line); content: ''; }
.status-list .status-done::before { background: var(--green); border-color: var(--green); }
.status-list .status-current { z-index: 1; border-radius: var(--control-radius); background: var(--green-soft); color: var(--green-deep); font-weight: 720; }
.status-list .status-current::before { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 3px #20583e20; }
.status-list .status-exception { border-radius: var(--control-radius); background: var(--error-soft); color: var(--error); font-weight: 680; }
.status-list .status-exception::before { background: var(--error-soft); border-color: var(--error); }
.status-list small { display: block; margin-top: 3px; color: var(--quiet); font-size: .875rem; font-weight: 450; line-height: 1.4; }
.tracking-detail .button-row { margin-top: 13px; }
.handoff-code { margin-top: 13px; padding: 14px 15px; color: var(--green-deep); border: 1px solid #cee1d1; border-radius: var(--control-radius); background: var(--green-soft); }
.handoff-code p { margin: 0; font-size: .875rem; line-height: 1.4; }
.handoff-code strong { display: block; margin-block: 4px; font-size: 1.55rem; letter-spacing: .15em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.checkout-footer { padding: 20px 0 27px; border-top: 1px solid var(--line); color: var(--quiet); font-size: .875rem; }

@media (max-width: 750px) {
  .site-width { width: min(600px, calc(100% - 32px)); }
  .checkout-nav { min-height: 60px; }
  .checkout-layout { grid-template-columns: minmax(0, 1fr); }
  .checkout-summary { position: static; }
  .checkout-layout:has(#fulfillment-panel:not([hidden])) .checkout-summary { grid-row: 1; }
  #place-order { width: 100%; }
}

@media (max-width: 430px) {
  .checkout-nav { gap: 9px; padding-block: 6px; }
  .brand-image { width: 156px; }
  .header-actions { column-gap: 2px; }
  .nav-action { gap: 5px; padding-inline: 7px; font-size: .8125rem; }
  .nav-action .shop-icon { display: none; }
}

@media (max-width: 360px) {
  .brand-image { width: 130px; }
  .panel { padding: 17px; }
  .choice { gap: 7px; padding: 10px; }
  .choice-glyph { width: 29px; height: 29px; }
  .quote-totals div { gap: 7px; }
}
.checkout-support-link {
  display: inline-block; margin-top: .55rem; color: var(--shop-primary); font-size: .92rem;
  font-weight: 650; text-underline-offset: .18em;
}
