/* Coolr Zero — basket & checkout drawer. Uses the page tokens (--paper, --text, --f-*, --display…). */
.cz-overlay{position:fixed;inset:0;z-index:91;background:rgba(5,11,21,.46);opacity:0;transition:opacity .45s var(--ease)}
.cz-overlay.on{opacity:1}
.cz-drawer{position:fixed;top:0;right:0;bottom:0;z-index:92;width:min(520px,100vw);background:var(--paper);color:var(--text);display:flex;flex-direction:column;transform:translateX(105%);transition:transform .6s var(--ease);box-shadow:-24px 0 60px rgba(5,11,21,.18);border-radius:32px 0 0 32px;overflow:hidden}
.cz-drawer.on{transform:none}
@media (max-width:599px){.cz-drawer{border-radius:0}}
.cz-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(22px + env(safe-area-inset-top,0px)) 24px 14px}
.cz-head h2{font-size:calc(var(--ds) * 44px);line-height:.95}
.cz-close{flex:none}
.cz-close svg{width:18px;height:18px}
.cz-steps{display:flex;gap:6px;padding:0 24px 16px}
.cz-steps span{flex:1;height:4px;border-radius:9px;background:var(--line);transition:background-color .4s}
.cz-steps span.on{background:var(--f-dot)}
.cz-body{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:4px 24px 24px;-webkit-overflow-scrolling:touch}
.cz-foot{border-top:1.5px solid var(--line);padding:16px 24px calc(18px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;background:var(--paper)}
.cz-cta{width:100%;background:var(--text);color:var(--paper)}
.cz-cta[disabled]{opacity:.45;cursor:not-allowed}
.cz-link{font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:3px;align-self:center;padding:6px}

.cz-demo{margin:0 24px 12px;padding:10px 14px;border-radius:14px;background:#FFF4D6;color:#5A4300;font-size:13px;font-weight:600;line-height:1.4}

/* Lines */
.cz-empty{padding:40px 0;text-align:center;display:flex;flex-direction:column;gap:14px;align-items:center}
.cz-empty p{margin:0;color:var(--muted);font-size:16px}
.cz-line{display:grid;grid-template-columns:64px 1fr auto;gap:14px;align-items:center;padding:14px 0;border-bottom:1.5px solid var(--line)}
.cz-thumb{width:64px;height:76px;border-radius:16px;background:var(--sw,#CDE6F4);display:flex;align-items:center;justify-content:center;overflow:hidden}
.cz-thumb img{height:88%;width:auto}
.cz-lname{font-family:var(--serif);font-style:italic;font-size:24px;line-height:1.05}
.cz-lmeta{font-size:13px;color:var(--muted);margin-top:3px}
.cz-lerr{font-size:13px;color:#C2410C;font-weight:600;margin-top:4px}
.cz-lright{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.cz-lprice{font-weight:600;font-size:16px;white-space:nowrap}
.cz-qty{display:inline-flex;align-items:center;border:1.5px solid var(--line);border-radius:999px;height:36px}
.cz-qty button{width:34px;height:34px;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:600}
.cz-qty span{min-width:22px;text-align:center;font-weight:600;font-size:14px}

/* Coupon */
.cz-coupon{display:flex;gap:8px;margin-top:18px}
.cz-coupon input{flex:1;min-width:0}
.cz-coupon .btn{height:48px;padding:0 18px;font-size:14px}
.cz-msg{font-size:13px;margin-top:6px;font-weight:600}
.cz-msg.ok{color:#15803D}
.cz-msg.err{color:#C2410C}

/* Summary */
.cz-sum{display:flex;flex-direction:column;gap:6px;font-size:15px}
.cz-sum div{display:flex;justify-content:space-between;gap:12px}
.cz-sum .muted{color:var(--muted);font-size:13px}
.cz-sum .total{font-size:20px;font-weight:700;padding-top:6px}
.cz-sum.loading{opacity:.55}

/* Form */
.cz-form{display:grid;grid-template-columns:1fr 1fr;gap:12px 10px}
.cz-form .full{grid-column:1 / -1}
.cz-field{display:flex;flex-direction:column;gap:6px}
.cz-field label{font-size:13px;font-weight:600}
.cz-input,.cz-coupon input{height:48px;padding:0 16px;border-radius:14px;border:1.5px solid var(--line);background:var(--ground);color:var(--text);font-size:16px;width:100%;transition:border-color .25s}
textarea.cz-input{height:76px;padding:12px 16px;resize:vertical;font-family:inherit}
select.cz-input{appearance:none;-webkit-appearance:none;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 20px) 21px,calc(100% - 15px) 21px;background-size:5px 5px;background-repeat:no-repeat}
.cz-input:focus,.cz-coupon input:focus{outline:none;border-color:var(--text)}
.cz-input[aria-invalid="true"]{border-color:#C2410C}
.cz-ferr{font-size:12px;color:#C2410C;font-weight:600}
.cz-sec{font-size:13px;font-weight:600;letter-spacing:1.4px;text-transform:uppercase;color:var(--muted);margin:22px 0 10px}
.cz-sec:first-child{margin-top:4px}
.cz-pay{display:flex;flex-direction:column;gap:8px}
.cz-opt{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:16px;border:1.5px solid var(--line);cursor:pointer;font-weight:600;font-size:15px}
.cz-opt input{accent-color:var(--text);width:18px;height:18px;margin:0}
.cz-opt small{font-weight:500;color:var(--muted);margin-left:auto;font-size:13px}
.cz-opt:has(input:checked){border-color:var(--text)}
.cz-alert{padding:12px 14px;border-radius:14px;background:#FDECE4;color:#9A3412;font-size:14px;font-weight:600;line-height:1.4;margin-bottom:12px}
#cz-payment-element{min-height:180px}

/* Done */
.cz-done{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;padding:28px 0}
.cz-done .display{font-size:calc(var(--ds) * 64px)}
.cz-done p{margin:0;color:var(--muted);font-size:16px;line-height:1.5;max-width:360px}
.cz-tick{width:84px;height:84px;border-radius:999px;background:var(--f-bg);color:var(--f-ink);display:flex;align-items:center;justify-content:center}
.cz-tick svg{width:38px;height:38px}
.cz-spin{width:28px;height:28px;border-radius:999px;border:3px solid var(--line);border-top-color:var(--text);animation:czspin .8s linear infinite}
@keyframes czspin{to{transform:rotate(360deg)}}

/* Prices on the page while the catalog loads / when sold out */
[data-price].cz-soon{opacity:.7}
.btn.add.cz-off{opacity:.5}
html.cz-lock,html.cz-lock body{overflow:hidden}
