.cart-is-open{overflow:hidden}
#cart-dialog{position:fixed;inset:0 0 0 auto;margin:0;border:0;border-left:1px solid var(--line);border-radius:0;width:min(510px,100%);height:100dvh;max-height:100dvh;max-width:100%;padding:0;background:#1a211a;color:#f4f0e6;box-shadow:-20px 0 70px #0005;overflow:hidden}
#cart-dialog[open]{display:flex;flex-direction:column;animation:cart-enter .22s ease-out}
#cart-dialog::backdrop{background:#070b08a8;backdrop-filter:blur(4px)}
#cart-dialog .cart-head{padding:28px 30px 23px;flex:none;border-bottom:1px solid var(--line);align-items:center}
#cart-dialog .cart-head h2{font:36px var(--serif);margin:0}
#cart-dialog #cart-close{border:1px solid var(--line);width:44px;height:44px;border-radius:50%;font-size:27px;color:inherit;background:transparent;cursor:pointer}
.cart-scroll{flex:1;overflow-y:auto;padding:0 30px 24px;overscroll-behavior:contain}
.cart-product{display:grid;grid-template-columns:68px minmax(0,1fr) auto;gap:17px;padding:22px 0;border-bottom:1px solid #808d7738;align-items:start}
.cart-product img{width:68px;height:91px;object-fit:cover;border-radius:5px;background:#30382b}
.cart-product-copy>strong{font:25px var(--serif);display:block;margin-bottom:7px;color:inherit}
.cart-product-copy p{font-size:11px;line-height:1.7;margin:0 0 12px;color:inherit;opacity:.7}
.cart-line-total{font-size:13px;white-space:nowrap;padding-top:5px;font-weight:500}
.cart-quantity{display:inline-flex;border:1px solid #88957c70;border-radius:25px;overflow:hidden;align-items:center;vertical-align:middle}
.cart-quantity button,.cart-quantity input{appearance:textfield;border:0;background:transparent;color:inherit;text-align:center;font:14px inherit;height:37px;padding:0;width:33px;min-width:0;box-sizing:border-box}
.cart-quantity button{font-size:18px;cursor:pointer}.cart-quantity button:disabled{opacity:.35;cursor:default}
.cart-quantity input{font-size:14px;border-radius:0!important;outline-offset:-3px}.cart-quantity input::-webkit-inner-spin-button{appearance:none}
.cart-remove{display:block;background:transparent;color:inherit;opacity:.7;border:0;font-size:10px;text-decoration:underline;text-underline-offset:3px;padding:12px 0 0;cursor:pointer}
.cart-bottom{padding:20px 30px max(24px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#20291f;flex:none}
#cart-dialog .cart-summary{border:0;padding:0;margin:0;align-items:baseline;display:flex;justify-content:space-between;font-size:13px}
#cart-sum{font:30px var(--serif)}
#cart-dialog .cart-caption{font-size:11px;line-height:1.8;opacity:.7;margin:15px 0}
#cart-dialog .cart-bottom .button{width:100%;justify-content:space-between;box-sizing:border-box;margin-top:12px}
#cart-dialog #cart-continue{width:100%;justify-content:center;margin-top:18px;font-size:12px}
.cart-saving{font-size:11px;color:#dccc9f;margin:0 0 14px}
.cart-undo{margin-top:18px;display:flex;justify-content:space-between;gap:15px;font-size:12px;align-items:center;background:#dccc9f14;border-radius:5px;padding:12px}
.cart-undo button{border:0;background:none;color:var(--gold);text-decoration:underline;cursor:pointer;font:inherit}
.cart-empty{text-align:center;padding:45px 5px}.cart-empty h3{font:28px var(--serif);margin:20px 0 12px}.cart-empty p{font-size:13px;line-height:1.8;opacity:.7}.cart-empty-symbol{display:inline-flex;border:1px solid var(--line);border-radius:50%;width:60px;height:60px;align-items:center;justify-content:center;font-size:25px;color:var(--gold)}
.checkout-page .order{padding-top:45px;min-height:70vh}.checkout-back{display:inline-block;font-size:12px;margin-bottom:30px}.checkout-page .order h1{font:clamp(45px,5vw,72px) var(--serif);line-height:1.05;letter-spacing:-.035em;color:#283023}
.checkout-page .order-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:7%;align-items:start}
.checkout-page .order-form{grid-column:1;grid-row:1}.checkout-page .basket{grid-column:2;grid-row:1;position:sticky;top:110px;padding:28px;background:#e7eadf;border:1px solid #26302318;border-radius:12px}
.basket-heading{display:flex;gap:12px;align-items:center;justify-content:space-between}.basket-heading a{font-size:10px;white-space:nowrap;text-decoration:underline;text-underline-offset:4px}.checkout-page .basket h3{font-size:30px}
.checkout-page .basket>p{font-size:12px}.checkout-page #basket-items{margin-top:16px}.checkout-page .basket-total{margin-top:16px}.checkout-page .cart-product{gap:13px;grid-template-columns:58px minmax(0,1fr) auto}.checkout-page .cart-product img{width:58px;height:78px}.checkout-page .cart-product-copy>strong{font-size:24px}.checkout-page .cart-line-total{font-size:12px}
.checkout-page .order-form .fields{margin-top:28px}.checkout-page .order-form h3{font-size:32px}.checkout-empty{max-width:650px;padding:40px 0 80px}.checkout-empty h2{font-size:40px!important}.checkout-empty p{margin:20px 0 28px;font-size:14px}.checkout-page .checkout-payment-note{border:1px solid #b88c3b;background:#fff0c5;padding:15px;border-radius:6px;font-size:12px;line-height:1.7}
.checkout-page .checkout-steps{margin-bottom:40px}.checkout-steps [aria-current=step]{color:#283b26;font-weight:600}.checkout-steps [aria-current=step] b{background:#283b26;color:white}
.selection-empty{margin:25px 0;font-size:13px;color:var(--muted)}
.payment-result{padding:70px 6%;max-width:850px;margin:0 auto;min-height:60vh}.payment-result h1{font:clamp(40px,5vw,65px) var(--serif);margin:20px 0}.payment-result p{line-height:1.9;font-size:15px;margin:15px 0}.payment-result .button{margin-top:24px}
[hidden]{display:none!important}

.stripe-test-dialog {
  width: min(740px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  box-sizing: border-box;
  padding: 0 clamp(16px, 4vw, 32px) clamp(16px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #faf9f5;
  color: #242820;
  box-shadow: 0 18px 65px #0006;
}
.stripe-test-dialog::backdrop { background: #070b08b8; }
.stripe-test-dialog h2 { margin: 0; }
.stripe-test-dialog header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 12px;
  border-bottom: 1px solid #dedbd3;
  background: #faf9f5;
}
.stripe-test-dialog h2 { font: clamp(25px, 4vw, 36px)/1.15 var(--serif); }
.stripe-test-dialog header p { margin: 4px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.stripe-test-dialog p:empty { display: none; }
.stripe-test-dialog button:focus-visible { outline: 2px solid #917523; outline-offset: 4px; }
.stripe-test-dialog #checkout-form:not(:empty) {
  background: #fff;
  border-radius: 8px;
}
#stripe-test-start { margin-top: 8px; }
.checkout-live #stripe-test-start { width: 100%; justify-content: center; }
.checkout-live #stripe-test-result { margin: 0 auto; width: 100%; }
#stripe-confirmed-items { padding-left: 1.4em; line-height: 1.7; }
@media(prefers-reduced-motion:no-preference) {
  .stripe-test-dialog[open] { animation: payment-appear .25s ease-out both; }
  #stripe-test-result:not([hidden]) { animation: payment-appear .4s ease-out both; }
  @keyframes payment-appear { from { opacity: 0; transform: translateY(10px); } }
}
@media(max-width:520px) {
  .stripe-test-dialog { width: calc(100% - 12px); max-height: calc(100dvh - 12px); }
}
@keyframes cart-enter{from{transform:translateX(100%)}to{transform:translateX(0)}}
@media(max-width:850px){.checkout-page .order-layout{gap:4%}.checkout-page .basket{padding:20px}.basket-heading{flex-wrap:wrap}.checkout-page .cart-product{grid-template-columns:48px minmax(0,1fr);gap:12px}.checkout-page .cart-product img{width:48px;height:64px}.checkout-page .cart-line-total{grid-column:2;padding:0;margin-top:-5px}}
@media(max-width:760px){#cart-dialog .cart-head{padding:22px}#cart-dialog .cart-head h2{font-size:31px}.cart-scroll{padding:0 22px 20px}.cart-bottom{padding:20px 22px max(22px,env(safe-area-inset-bottom))}.cart-product{gap:12px;grid-template-columns:58px minmax(0,1fr) auto}.cart-product img{width:58px;height:78px}.cart-line-total{font-size:12px}.cart-product-copy>strong{font-size:24px}.checkout-page .order{padding-top:28px}.checkout-page .order-layout{display:flex;flex-direction:column;gap:35px}.checkout-page .basket{position:static;order:0;padding:23px}.checkout-page .order-form{order:1}.checkout-page .cart-product{grid-template-columns:58px minmax(0,1fr) auto}.checkout-page .cart-line-total{grid-column:auto;padding-top:5px}.checkout-page .cart-product img{width:58px;height:78px}.checkout-page .checkout-steps{font-size:9px;gap:8px}.checkout-page .checkout-steps b{flex:none}.checkout-page .basket h3{font-size:28px}.checkout-back{margin-bottom:25px}.checkout-page .section-heading{margin-bottom:22px}.payment-result{padding-top:45px}}
@media(prefers-reduced-motion:reduce){#cart-dialog[open]{animation:none}}
