:root { --checkout-wine: #74112a; --checkout-ink: #211615; --checkout-cream: #fffaf5; --checkout-line: #eadbd5; }

body.checkout-open { overflow: hidden; }

.drawer-panel {
    top: 0; right: 0; bottom: 0; width: min(480px, 100vw); gap: 0; padding: 0;
    grid-template-rows: auto minmax(0, 1fr) auto; background: #fffdf9;
}
.drawer-head { min-height: 78px; padding: 18px 24px; border-bottom: 1px solid var(--checkout-line); }
.drawer-head h2 { margin: 0; color: var(--checkout-ink); font-family: var(--font-display, Georgia, serif); font-size: 36px; font-weight: 500; }
.drawer-head button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--checkout-line); border-radius: 50%; font-size: 24px; line-height: 1; }
.cart-body { min-height: 0; padding: 8px 24px 24px; overflow-y: auto; }
.cart-items { overflow: visible; }
.cart-item { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 20px 0; }
.cart-item-image { width: 88px; height: 104px; border: 1px solid #eee1dc; border-radius: 4px; background: #f8f1ec; object-fit: cover; }
.cart-item-copy { min-width: 0; }
.cart-item h3 { margin: 0 0 5px; font-size: 21px; line-height: 1.08; }
.cart-item p { overflow: hidden; margin: 0 0 10px; color: #80665e; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-price { color: var(--checkout-wine); font-size: 14px; }
.cart-item-actions { display: grid; grid-template-columns: 30px 22px 30px; justify-items: center; gap: 2px; }
.cart-item-actions button:not(.cart-remove) { width: 30px; height: 30px; border-radius: 50%; background: white; }
.cart-item-actions > span { align-self: center; color: var(--checkout-ink); font-size: 13px; }
.cart-item-actions .cart-remove { grid-column: 1 / -1; margin-top: 4px; color: #8d756e; font-size: 11px; text-decoration: underline; }
.cart-offer-host { margin-top: 18px; }

.cart-offer {
    display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px;
    padding: 16px; border: 1px solid #e5c6cd; background: #fff5f6;
}
.cart-offer[hidden] { display: none; }
.cart-offer-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--checkout-wine); color: white; font-weight: 800; }
.cart-offer-copy strong, .cart-offer-copy span { display: block; }
.cart-offer-copy strong { color: var(--checkout-ink); font-size: 14px; }
.cart-offer-copy span { margin-top: 3px; color: #765c56; font-size: 12px; }
.cart-offer button { padding: 9px 10px; border: 1px solid #d9aeb8; border-radius: 3px; background: white; color: var(--checkout-wine); font-size: 12px; font-weight: 800; cursor: pointer; }
.cart-offer.is-applied { background: #f3f7f1; border-color: #d4e2d0; }
.cart-offer.is-expired { grid-template-columns: 1fr; background: #f7f4f2; }

.cart-summary { gap: 9px; padding: 16px 24px 20px; border-top: 1px solid var(--checkout-line); background: white; box-shadow: 0 -12px 32px rgba(58, 35, 31, .06); }
.cart-benefits { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 6px !important; margin-bottom: 7px; }
.cart-benefits span { padding: 7px 4px; border: 1px solid #eadbd5; color: #6c534d; font-size: 9px; text-align: center; text-transform: none; }
.cart-price-row { display: flex; align-items: center; justify-content: space-between; }
.cart-price-row[hidden] { display: none; }
.cart-price-row span { color: #705a54; font-size: 12px; font-weight: 600; text-transform: none; }
.cart-price-row strong { color: var(--checkout-ink); font-family: var(--font-body, sans-serif); font-size: 13px; }
.cart-price-row--saving span, .cart-price-row--saving strong { color: #397346; }
.cart-price-row--total { margin-top: 3px; padding-top: 12px; border-top: 1px solid var(--checkout-line); }
.cart-price-row--total span { color: var(--checkout-ink); font-size: 14px; font-weight: 800; }
.cart-price-row--total span small { display: block; margin-top: 2px; color: #8a746d; font-size: 9px; font-weight: 500; }
.cart-price-row--total strong { color: var(--checkout-ink); font-family: var(--font-display, Georgia, serif); font-size: 30px; font-weight: 600; }
.cart-summary .primary-action { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; margin-top: 4px; border-radius: 4px; font-size: 13px; letter-spacing: .04em; box-shadow: 0 10px 24px rgba(116,17,42,.17); }
.cart-summary .primary-action span { color: inherit; font-size: 18px; text-transform: none; }
.cart-payment-note { margin: 0; color: #856f68; font-size: 10px; text-align: center; }

.checkout-overlay { position: fixed; inset: 0; z-index: 80; opacity: 0; pointer-events: none; transition: opacity 220ms ease; }
.checkout-overlay.is-open { opacity: 1; pointer-events: auto; }
.checkout-backdrop { position: absolute; inset: 0; background: rgba(30, 18, 17, .48); backdrop-filter: blur(3px); }
.checkout-sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); display: grid; grid-template-rows: auto auto 1fr auto; background: var(--checkout-cream); box-shadow: -24px 0 70px rgba(33, 22, 21, .22); transform: translateX(35px); transition: transform 260ms ease; }
.checkout-overlay.is-open .checkout-sheet { transform: translateX(0); }
.checkout-head { display: flex; align-items: center; justify-content: space-between; min-height: 66px; padding: 13px 28px; border-bottom: 1px solid var(--checkout-line); }
.checkout-brand { height: 34px; width: auto; object-fit: contain; }
.checkout-close { display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 50%; background: #f5eeea; color: var(--checkout-ink); font-size: 22px; cursor: pointer; }
.checkout-reserve { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 28px; border-bottom: 1px solid #ecdadd; background: #fff7f7; color: var(--checkout-wine); font-size: 11px; font-weight: 700; }
.checkout-reserve strong { font-size: 12px; font-variant-numeric: tabular-nums; }
.checkout-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 15px 28px 0; }
.checkout-progress span { border-top: 1px solid #d9c9c4; padding-top: 7px; color: #a18c85; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.checkout-progress span.is-active, .checkout-progress span.is-done { border-color: var(--checkout-wine); color: var(--checkout-wine); }
.checkout-body { overflow-y: auto; padding: 20px 28px 28px; scroll-behavior: auto; }
.checkout-step[hidden] { display: none; }
.checkout-kicker { margin: 0 0 8px; color: var(--checkout-wine); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.checkout-step h2 { max-width: 460px; margin: 0; color: var(--checkout-ink); font-family: var(--font-display, Georgia, serif); font-size: 34px; font-weight: 500; line-height: 1.04; }
.checkout-lede { max-width: 470px; margin: 9px 0 18px; color: #80665e; font-size: 12px; line-height: 1.55; }
.checkout-field { display: grid; gap: 6px; margin-bottom: 11px; color: #3c2b28; font-size: 11px; font-weight: 700; }
.checkout-field input, .checkout-field select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #ddcec8; border-radius: 3px; background: white; color: var(--checkout-ink); font: inherit; font-size: 14px; outline: none; }
.checkout-field input:focus, .checkout-field select:focus { border-color: var(--checkout-wine); box-shadow: 0 0 0 3px rgba(116,17,42,.09); }
.checkout-location { margin-bottom: 16px; padding-bottom: 15px; border-bottom: 1px solid var(--checkout-line); }
.checkout-location > label { display: block; margin-bottom: 7px; color: #3c2b28; font-size: 11px; font-weight: 700; }
.checkout-location-widget gmp-place-autocomplete { width: 100%; min-height: 44px; color-scheme: light; }
.checkout-location > p { margin: 6px 0 0; color: #8a746d; font-size: 9px; }
.checkout-address-panel { margin-bottom: 16px; border-top: 1px solid var(--checkout-line); border-bottom: 1px solid var(--checkout-line); }
.checkout-address-tab { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 15px 0; border: 0; background: transparent; color: var(--checkout-ink); text-align: left; cursor: pointer; }
.checkout-address-tab b, .checkout-address-tab small { display: block; }
.checkout-address-tab b { font-family: var(--font-display, Georgia, serif); font-size: 20px; font-weight: 600; }
.checkout-address-tab small { margin-top: 2px; color: #8c756e; font-size: 9px; }
.checkout-address-tab i { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--checkout-line); border-radius: 50%; color: var(--checkout-wine); font-style: normal; font-size: 18px; }
.checkout-address-fields { padding: 2px 0 16px; }
.checkout-address-fields[hidden] { display: none; }
.checkout-address-validate { width: 100%; min-height: 44px; border: 1px solid var(--checkout-wine); border-radius: 3px; background: white; color: var(--checkout-wine); font-size: 12px; font-weight: 800; cursor: pointer; }
.checkout-address-status { margin: 5px 0 10px; padding: 10px 12px; border-left: 2px solid #b3874e; background: #fff8ec; color: #745c3e; font-size: 11px; line-height: 1.45; }
.checkout-address-status[data-state="valid"] { border-color: #4b7b53; background: #f1f7f0; color: #35623d; }
.checkout-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkout-error { margin: 0 0 14px; padding: 11px 13px; border-left: 3px solid #b43b42; background: #fff0f0; color: #8c2028; font-size: 12px; line-height: 1.5; }
.checkout-error[hidden] { display: none; }
.checkout-pin-status { margin: -7px 0 14px; color: #526f4b; font-size: 12px; }
.checkout-pin-status[data-state="error"] { color: #9a2f36; }
.checkout-primary { width: 100%; min-height: 52px; border: 0; border-radius: 4px; background: var(--checkout-wine); color: white; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 26px rgba(116,17,42,.2); transition: transform 160ms ease, background 160ms ease; }
.checkout-primary:hover { background: #5e0d21; transform: translateY(-1px); }
.checkout-primary:disabled { opacity: .55; cursor: wait; transform: none; }
.checkout-trust { display: flex; justify-content: center; gap: 18px; margin: 16px 0 0; color: #765f58; font-size: 11px; }
.checkout-summary-card { padding: 16px; border: 1px solid var(--checkout-line); background: white; }
.checkout-summary-row { display: flex; justify-content: space-between; gap: 15px; padding: 8px 0; color: #684f49; font-size: 13px; }
.checkout-summary-row--discount { color: #397346; }
.checkout-summary-row--total { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--checkout-line); color: var(--checkout-ink); font-size: 16px; font-weight: 800; }
.checkout-payment { display: grid; gap: 8px; margin: 17px 0; padding: 0; border: 0; }
.checkout-payment legend { margin-bottom: 8px; color: #3c2b28; font-size: 11px; font-weight: 800; }
.checkout-payment-option { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 62px; padding: 10px 13px; border: 1px solid var(--checkout-line); background: white; cursor: pointer; transition: border-color 160ms ease, background 160ms ease; }
.checkout-payment-option.is-selected { border-color: var(--checkout-wine); background: #fff7f7; }
.checkout-payment-option input { position: absolute; opacity: 0; pointer-events: none; }
.checkout-payment-mark { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid #d8c7c2; border-radius: 50%; color: transparent; font-size: 12px; }
.checkout-payment-option.is-selected .checkout-payment-mark { border-color: var(--checkout-wine); background: var(--checkout-wine); color: white; }
.checkout-payment-option strong, .checkout-payment-option small { display: block; }
.checkout-payment-option strong { color: var(--checkout-ink); font-size: 13px; }
.checkout-payment-option small { margin-top: 3px; color: #80665e; font-size: 10px; }
.checkout-payment-option b { padding: 4px 6px; background: #f1e5e7; color: var(--checkout-wine); font-size: 8px; text-transform: uppercase; }
.checkout-online-note { display: flex; align-items: center; gap: 11px; margin: 16px 0; padding: 13px 14px; border: 1px solid var(--checkout-line); background: #fff; }
.checkout-online-note > span { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border-radius: 50%; background: var(--checkout-wine); color: #fff; font-size: 12px; }
.checkout-online-note strong, .checkout-online-note small { display: block; }
.checkout-online-note strong { color: var(--checkout-ink); font-size: 13px; }
.checkout-online-note small { margin-top: 2px; color: #80665e; font-size: 10px; }
.checkout-success { padding-top: 5vh; text-align: center; }
.checkout-success-mark { display: grid; width: 68px; height: 68px; margin: 0 auto 20px; place-items: center; border-radius: 50%; background: #e6f1e5; color: #26713b; font-size: 32px; }
.checkout-order-number { margin: 20px 0; padding: 14px; border: 1px solid var(--checkout-line); background: white; color: var(--checkout-wine); font-weight: 800; }
.checkout-foot { padding: 10px 24px; border-top: 1px solid var(--checkout-line); background: #fffdf9; text-align: center; color: #947f78; font-size: 9px; }

@media (max-width: 600px) {
    .drawer-head { min-height: 68px; padding: 13px 18px; }
    .drawer-head h2 { font-size: 32px; }
    .cart-body { padding: 6px 18px 18px; }
    .cart-item { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 10px; }
    .cart-item-image { width: 76px; height: 92px; }
    .cart-item h3 { font-size: 19px; }
    .cart-summary { padding: 13px 18px 16px; }
    .cart-offer { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; padding: 13px 11px; }
    .cart-offer-icon { width: 38px; height: 38px; }
    .cart-offer-copy strong { font-size: 12px; }
    .cart-offer-copy span { font-size: 10px; }
    .cart-offer button { padding: 8px 7px; }
    .checkout-sheet { width: 100%; }
    .checkout-head { min-height: 60px; padding: 10px 18px; }
    .checkout-brand { height: 30px; }
    .checkout-reserve { padding: 8px 18px; }
    .checkout-progress { gap: 9px; padding: 12px 18px 0; }
    .checkout-body { padding: 17px 18px 22px; }
    .checkout-location-widget gmp-place-autocomplete { min-height: 46px; }
    .checkout-field-row { grid-template-columns: 1fr; gap: 0; }
    .checkout-step h2 { font-size: 30px; }
    .checkout-trust { gap: 10px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) { .checkout-overlay, .checkout-sheet, .checkout-primary { transition: none; } }
