:root { --radius: 6px; }
a { color: var(--blue-dark); }
.sprite, .sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.nav-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: .88rem; font-weight: 700; text-decoration: none; }
.nav-link:hover { text-decoration: underline; }
.checkout { width: min(1140px, calc(100% - 80px)); padding-block: 31px 30px; }
.heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-bottom: 22px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
h1, h2 { margin: 0; color: var(--navy); font-weight: 650; letter-spacing: -.05em; line-height: 1.07; }
h1 { font-size: clamp(2.25rem, 5vw, 3.45rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); }
.heading p { margin: 8px 0 0; color: var(--muted); }
.progress { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 15px; margin: 0 0 2px; padding: 0; list-style: none; color: var(--muted); font-size: .8rem; }
.progress li { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.progress li::before { content: ""; width: 7px; height: 7px; border: 1px solid #738498; border-radius: 50%; }
.progress [aria-current] { color: var(--navy); font-weight: 700; }
.progress [aria-current]::before, .progress .done::before { background: #214db2; border-color: #214db2; }
.layout { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(290px, .94fr); align-items: start; gap: clamp(22px, 4vw, 52px); }
.layout.is-complete { grid-template-columns: minmax(0, 690px); justify-content: center; }
.checkout-content { grid-column: 1; grid-row: 1; min-width: 0; }
.panel { min-width: 0; padding: 10px 0 20px; }
.basket { grid-column: 2; grid-row: 1; position: sticky; top: 16px; padding-left: clamp(17px, 3vw, 32px); border-left: 1px solid var(--line); }
.basket-title, .panel-heading { display: flex; align-items: center; gap: 10px; }
.panel-heading { justify-content: space-between; gap: 12px; margin-bottom: 21px; }
.basket-title h2 { font-size: clamp(1.4rem, 2.6vw, 1.72rem); }
.basket-icon, .receipt-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: var(--blue-light); color: var(--blue); flex: none; }
.basket-count { margin-left: auto; border-radius: 999px; padding: 3px 8px; font-size: .72rem; white-space: nowrap; color: var(--navy); background: var(--blue-light); font-weight: 700; }
.empty-basket { margin-top: 13px; padding: 5px 0; color: var(--muted); }
.empty-basket p { margin: 0 0 5px; }
.empty-basket a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.line { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line:first-child { margin-top: 4px; }
#lines:not(:empty) { max-height: min(47vh, 460px); overflow-y: auto; scrollbar-gutter: stable; padding-inline: 3px; }
.line img { display: block; width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: var(--white); }
.line strong { display: block; font-size: .88rem; line-height: 1.35; overflow-wrap: anywhere; }
.line p { margin: 3px 0; font-size: .77rem; color: var(--muted); }
.line-tools { display: grid; justify-items: end; gap: 3px; }
.quantity { display: flex; align-items: center; border: 1px solid #c3ceda; border-radius: 7px; overflow: hidden; min-height: 35px; }
.quantity button { width: 28px; min-height: 34px; display: grid; place-items: center; border: 0; background: #eff4fa; color: var(--blue); cursor: pointer; padding: 0; }
.quantity button:disabled { opacity: .38; cursor: default; }
.quantity button:focus-visible, .quantity input:focus-visible { outline-offset: -2px; }
.quantity input { appearance: textfield; width: 34px; margin: 0; border: 0; border-radius: 0; min-height: 34px; padding: 0 1px; text-align: center; font-size: .78rem; font-variant-numeric: tabular-nums; }
.quantity input::-webkit-inner-spin-button { appearance: none; }
.remove, .text-button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--blue); padding: 2px 1px; font-weight: 700; cursor: pointer; }
.remove { font-size: .72rem; min-height: 27px; }
.remove:hover, .text-button:hover { text-decoration: underline; }


.summary-note, .hint, .status { color: var(--muted); font-size: .81rem; }
.summary-note { display: flex; align-items: flex-start; gap: 7px; margin: 15px 0 0; }
.summary-note .icon { margin-top: 2px; }
.status { margin: 10px 0 0; }
.status:empty { display: none; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.separated { margin-top: 19px; }
legend { padding: 0; margin-bottom: 8px; width: 100%; }
legend > span { display: flex; align-items: center; gap: 7px; font-size: .98rem; font-weight: 700; }
legend .icon { color: var(--blue); }
.separated legend { border-top: 1px solid var(--line); padding-top: 15px; }
.fields, .method-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.fields > label { min-width: 0; }
.full { grid-column: 1 / -1; }
label { display: block; font-size: .84rem; font-weight: 700; }
label small, legend small { font-size: .72rem; font-weight: 600; color: var(--muted); }
.required { color: #943b31; }
input, textarea { width: 100%; display: block; margin-top: 4px; padding: 9px 10px; min-height: 43px; border: 1px solid #aebac8; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 500; }
textarea { min-height: 65px; resize: vertical; }
textarea::placeholder { color: #536071; }
.method-option { position: relative; display: flex; align-items: center; min-height: 62px; gap: 8px; padding: 8px 10px; border: 1px solid #c3ceda; border-radius: 9px; background: #fff; cursor: pointer; }
.method-option.selected { background: #edf3fc; border-color: #214db2; box-shadow: 0 0 0 1px #214db2; }
.method-option:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.method-option input { width: 15px; height: 15px; min-height: 0; margin: 0 0 0 auto; padding: 0; flex: none; order: 3; accent-color: var(--blue); }
.method-option small { display: block; line-height: 1.25; }
.method-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 6px; background: var(--blue-light); color: var(--blue); }
.delivery-fields, .pickup-note { margin-top: 11px; }
.pickup-note { display: flex; gap: 9px; padding: 11px; border-radius: 8px; background: var(--blue-light); font-size: .85rem; }
.pickup-note > .icon { margin-top: 2px; color: var(--blue); }
.pickup-note p { margin: 3px 0; }
.pickup-note small { display: block; margin-top: 4px; color: var(--muted); }
.notes-hint { margin: 4px 0 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; margin-top: 17px; }
.form-actions p { margin: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid var(--blue); border-radius: 8px; padding: 8px 13px; font-weight: 700; font-size: .86rem; line-height: 1.3; cursor: pointer; text-decoration: none; }
.button.primary { background: var(--blue); color: white; }
.button.primary:hover:not(:disabled) { background: var(--blue-dark); }
.button.secondary { background: var(--white); color: var(--blue); border-color: #aebac8; }
.button.secondary:hover { background: var(--blue-light); }
.button:disabled { cursor: default; opacity: .52; }
.review-intro { margin: -10px 0 12px; color: var(--muted); }
.review-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0 0 9px; }
.review-details > div { padding: 10px; border-radius: 8px; background: #eff4fa; }
.review-details dt { color: var(--muted); font-size: .74rem; font-weight: 700; }
.review-details dd { margin: 3px 0 0; font-size: .86rem; overflow-wrap: anywhere; white-space: pre-line; }
.text-button { min-height: 36px; font-size: .83rem; }
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.receipt { text-align: center; padding: clamp(20px, 6vw, 48px); }
.receipt-icon { width: 51px; height: 51px; margin: 0 auto 12px; border-radius: 50%; font-size: 1.5rem; }
.receipt p { color: var(--muted); }
.receipt .reference { border-radius: 8px; background: #edf3fc; padding: 9px; color: var(--navy); font-weight: 700; overflow-wrap: anywhere; }
.receipt .review-actions { justify-content: center; }
.checkout-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 15px 0 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.checkout-footer a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
@media (max-width: 790px) {

  .layout, .layout.is-complete { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .basket, .checkout-content { grid-column: auto; grid-row: auto; position: static; }
  .basket { border-left: 0; border-bottom: 1px solid var(--line); padding: 0 0 18px; }
  #lines:not(:empty) { max-height: none; overflow: visible; padding-inline: 0; }
  .checkout { width: calc(100% - 32px); padding-top: 21px; }
  .heading { align-items: start; flex-direction: column; margin-bottom: 15px; }
}
@media (max-width: 430px) {
  .fields, .review-details { grid-template-columns: 1fr; }
  .method-option { gap: 6px; padding-inline: 7px; }
  .method-icon { display: none; }
  .line { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 7px; }
  .line img { width: 42px; height: 42px; }
  .form-actions .button, .review-actions .button { width: 100%; }
}

.checkout-heading { display: flex; align-items: center; gap: clamp(12px, 3vw, 27px); }
.checkout-art { display: block; width: clamp(74px, 9vw, 108px); height: auto; flex: none; }
.whatsapp-permission { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; color: var(--navy); }
.whatsapp-permission input { flex: none; width: 17px; min-width: 17px; height: 17px; min-height: 17px; margin: 3px 0 0; padding: 0; accent-color: var(--blue); }
.fulfilment-note { margin-top: 12px; padding: 10px 13px; background: #eff4fa; border-radius: 9px; color: var(--muted); font-size: .85rem; }
.fulfilment-note p { margin: 4px 0; }
.fulfilment-note strong { color: var(--navy); }
.line .line-timing { color: #704919; font-size: .75rem; }
.receipt .invoice-status { color: var(--blue); font-weight: 700; }
@media (max-width: 430px) { .checkout-art { width: 77px; } .checkout-heading p { margin-top: 5px; } }

.checkout-contact { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; }
.checkout-contact a { min-height: 36px; }
.checkout-contact img { width: 25px; height: 25px; object-fit: contain; }
