/* Checkout window (checkout.js): the order on a dark panel on the left, contact and payment method on white on the right (as in Stripe Checkout). */
.co{width:min(980px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:22px;overflow:auto;background:#fff;color:#1a1b25;box-shadow:0 40px 110px rgba(0,0,0,.7),0 0 0 1px rgba(244,242,255,.1)}
.co::backdrop{background:rgba(4,4,14,.78);backdrop-filter:blur(8px)}
.co[open]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);animation:tp-in .28s cubic-bezier(.2,.8,.2,1)}
.co svg{display:block;width:100%;height:100%}

.co-sum{display:flex;flex-direction:column;padding:28px 34px 24px;background:radial-gradient(120% 80% at 0 0,rgba(255,62,165,.16),transparent 55%),radial-gradient(90% 70% at 100% 100%,rgba(45,226,255,.1),transparent 60%),#0d0a24;color:var(--ink)}
.co-top{display:flex;align-items:center;gap:12px}
.co-back{display:grid;place-items:center;width:32px;height:32px;padding:7px;border:0;border-radius:50%;background:none;color:var(--mute);cursor:pointer}
.co-back:hover{background:rgba(244,242,255,.08);color:var(--ink)}
.co-logo{font-size:15px;pointer-events:none}
.co-head{margin:30px 0 22px}
.co-merchant{margin:0;color:var(--mute);font-size:16px;font-weight:500}
.co-amount{margin:6px 0 0;font:800 clamp(30px,4vw,38px)/1.1 var(--display);letter-spacing:-.6px}
.co-label{margin:0 0 10px;font-size:16px;font-weight:600}
.co-cur{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:8px}
.co-cur button{display:flex;align-items:center;gap:8px;min-height:50px;padding:10px 12px;border:1px solid transparent;border-radius:10px;background:rgba(244,242,255,.07);color:var(--ink);font:600 15px var(--text);white-space:nowrap;cursor:pointer;text-align:left;transition:border-color .15s,background .15s}
.co-cur button img{flex:none;width:20px;height:20px;border-radius:50%;box-shadow:0 0 0 1px rgba(255,255,255,.2)}
.co-cur button:hover{background:rgba(244,242,255,.11)}
.co-cur button.on{border-color:rgba(244,242,255,.85);background:rgba(244,242,255,.1)}
.co-fx{margin:10px 0 0;color:var(--mute);font-size:12.5px;line-height:1.5}
.co-lines{margin-top:26px}
.co-line{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;font-size:15px}
.co-line+.co-line{border-top:1px solid rgba(244,242,255,.12)}
.co-line>b,.co-line>span:last-child{white-space:nowrap}
.co-item{align-items:flex-start}
.co-item b{font-weight:700}
.co-item small{display:block;margin-top:2px;color:var(--mute);font-size:13px}
.co-sub{font-weight:700}
.co-sub+.co-line:not(.co-total){border-top:0;padding-top:0}
.co-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:7px;background:rgba(244,242,255,.1);font-size:14px;font-weight:600}
.co-chip svg{width:15px;height:15px;color:var(--mute)}
.co-minus{color:var(--mute)}
.co-total{font-size:16px;font-weight:700}
.co-total b{font:800 20px var(--display)}
.co-foot{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:auto 0 0;padding-top:26px;color:var(--mute);font-size:12.5px}
.co-foot i{width:1px;height:14px;background:rgba(244,242,255,.25)}
.co-foot a{color:var(--mute);text-decoration:none}.co-foot a:hover{color:var(--ink)}
.co-secure{width:14px;height:14px}

.co-pay{padding:36px 40px 30px;background:#fff;color:#30313d;font-family:var(--text)}
.co-close{position:absolute;top:12px;right:12px;z-index:2;width:36px;height:36px;border:0;border-radius:50%;background:#f1f1f5;color:#30313d;font-size:22px;line-height:1;cursor:pointer}
.co-close:hover{background:#e4e4ec}
.co-h{margin:0 0 10px;font:600 17px var(--text);color:#30313d}
.co-h:not(:first-child){margin-top:26px}
.co-field{display:flex;align-items:center;gap:24px;min-height:50px;padding:12px 16px;border:1px solid #e6e6ec;border-radius:9px;background:#f6f7f9;font-size:15px}
.co-field span{color:#6a6d7c;flex:none}
.co-field b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500;color:#1a1b25}
.co-field .co-guest{flex:1;color:#30313d}
.co-methods{border:1px solid #e0e0e8;border-radius:11px;overflow:hidden;box-shadow:0 1px 3px rgba(20,20,50,.06)}
.co-opt{display:block;cursor:pointer}
.co-opt+.co-opt{border-top:1px solid #e6e6ec}
.co-opt-row{display:flex;align-items:center;gap:12px;min-height:56px;padding:12px 16px}
.co-opt input{flex:none;width:18px;height:18px;margin:0;accent-color:#14122e;cursor:pointer}
.co-opt-icon{flex:none;width:22px;height:22px;color:#30313d}
.co-opt-name{flex:1;font-size:16px;font-weight:500;color:#1a1b25}
.co-brands{display:flex;gap:4px}.co-brands svg{width:30px;height:20px}
.co-opt.on{background:#fafafc}
.co-hint{display:flex;gap:8px;align-items:flex-start;margin:-4px 16px 0 46px;padding:0 0 14px;color:#6a6d7c;font-size:13.5px;line-height:1.45}
.co-hint svg{flex:none;width:14px;height:14px;margin-top:2px}
.co-opt:focus-within{outline:2px solid #6b5cff;outline-offset:-2px}
.co-opt input:focus-visible{outline:none}
.co-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:54px;margin-top:26px;padding:12px 20px;border:0;border-radius:11px;background:linear-gradient(180deg,#1d1940,#100d29);color:#fff;font:700 17px var(--text);cursor:pointer;box-shadow:0 8px 22px rgba(16,13,41,.28);transition:transform .15s,box-shadow .2s,filter .15s}
.co-btn:hover{filter:brightness(1.25);box-shadow:0 10px 28px rgba(16,13,41,.36)}
.co-btn:active{transform:translateY(1px)}
.co-btn:disabled{cursor:progress;filter:none;opacity:.75}
.co-btn-lock{width:16px;height:16px;opacity:.75}
.co-btn:focus-visible{outline:3px solid #6b5cff;outline-offset:3px}
.co-error{margin:12px 0 0;padding:10px 12px;border-radius:9px;background:#fff1f3;border:1px solid #ffc2cd;color:#a3122f;font-size:14.5px}
.co-legal{margin:14px 0 0;color:#6a6d7c;font-size:12.5px;line-height:1.55;text-align:center}
.co-legal a{color:#30313d}.co-legal a:hover{color:#000}

@media(max-width:760px){
  .co{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0}
  .co[open]{grid-template-columns:1fr}
  .co-sum{padding:18px 16px 20px}
  .co-head{margin:16px 0 16px}
  .co-cur{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:1fr;gap:6px}
  .co-cur button{justify-content:center;gap:6px;min-height:46px;padding:8px 6px;font-size:14px}
  .co-cur button img{width:18px;height:18px}
  .co-lines{margin-top:16px}
  .co-foot{padding-top:16px}
  .co-pay{padding:24px 16px 28px}
  .co-close{top:14px;right:12px;background:rgba(244,242,255,.1);color:var(--ink)}
  .co-field{gap:14px}
}
@media(prefers-reduced-motion:reduce){.co[open]{animation:none}}
