.checkout-code-dialog{box-sizing:border-box;width:min(565px,calc(100% - 28px));max-width:none;max-height:calc(100dvh - 28px);margin:auto;overflow:auto;overscroll-behavior:contain;padding:37px 39px 25px;border:1px solid #3a626d;border-radius:15px;background:#102a33;color:#edf8fa;box-shadow:0 26px 100px #0009;color-scheme:dark}
.checkout-code-dialog::backdrop{background:#020e13a8;backdrop-filter:blur(2px)}
.checkout-code-dialog button{font:inherit;cursor:pointer}
.checkout-code-dialog :is(button,input):focus-visible{outline:2px solid #8ce9df;outline-offset:3px}
.checkout-code-dialog .checkout-code-close{position:absolute;right:19px;top:18px;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:#24414b;color:#d0e7ee;font-size:24px;line-height:1}
.checkout-code-dialog .checkout-code-icon{width:55px;height:55px;background:#1d4d53;border-radius:14px;display:grid;place-items:center;color:#8ce9df;margin:0 0 22px}
.checkout-code-dialog .checkout-code-kicker{margin:0;color:#8edbdc;font-size:11px;letter-spacing:.14em;font-weight:650}
.checkout-code-dialog h2{margin:9px 0 0;color:inherit;font-size:31px;line-height:1.2;letter-spacing:-.035em}
#checkout-code-description{margin:12px 0 0;color:#afc8d1;font-size:14px;line-height:1.6}
.checkout-code-dialog form{margin:24px 0 0}
.checkout-code-dialog .checkout-code-label{display:block;margin:0 0 8px;color:#bad4dc;font-size:13px}
.checkout-code-dialog .checkout-code-field{display:flex;align-items:center;gap:12px;min-height:58px;padding:0 16px;border:1px solid #64b7bf;border-radius:7px;background:#071d25;color:#76d6d0}
.checkout-code-dialog .checkout-code-field svg{flex:none;width:21px;height:21px}
.checkout-code-dialog .checkout-code-field:focus-within{box-shadow:0 0 0 3px #6ce6d325}
.checkout-code-dialog input#checkout-code-input{min-width:0;width:100%;min-height:48px;margin:0;padding:8px 0;border:0;outline:0;box-shadow:none;background:transparent;color:#f1f9fa;line-height:1.25;font-family:inherit;font-size:18px;font-weight:650;text-transform:uppercase;letter-spacing:.06em}
.checkout-code-dialog input#checkout-code-input::placeholder{color:#91aeb8;text-transform:none;letter-spacing:normal;font-weight:400}
#checkout-code-hint{margin:10px 0 0;color:#a8c4cf;font-size:12px;line-height:1.5}
.checkout-code-dialog .checkout-code-error{margin:12px 0 0;padding:10px 12px;border:1px solid #b17d53;border-radius:6px;background:#3c2c24;color:#ffd1a0;font-size:13px}
.checkout-code-actions{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:24px}
.checkout-code-dialog :is(.checkout-code-next,.checkout-code-skip){min-height:48px;padding:8px 10px;border-radius:5px;font-size:14px;font-weight:650}
.checkout-code-dialog .checkout-code-next{border:1px solid #78e1d7;background:#78e1d7;color:#06292f}
.checkout-code-dialog .checkout-code-skip{border:1px solid #63818c;background:transparent;color:#e5f1f5}
.checkout-code-dialog button:hover:not(:disabled){filter:brightness(1.12)}
.checkout-code-dialog button:disabled{cursor:wait;opacity:.65}
.checkout-code-dialog .checkout-code-switch{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;width:100%;margin:4px 0 0;padding:8px 0;border:0;background:none;color:#87e6de;font-size:14px}
.checkout-code-switch svg{width:17px;height:17px}
.checkout-code-preview{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding-top:15px;border-top:1px solid #34525e}
.checkout-code-preview[hidden]{display:none}
.checkout-code-preview p{margin:0 0 0 auto;color:#aac8d1;text-align:right;font-size:12px;line-height:1.3}
.checkout-code-preview strong{display:block;margin-top:2px;color:#ecf6f8;font-size:18px}
.checkout-code-photos{display:flex;flex-wrap:wrap;gap:4px}
.checkout-code-photo{display:flex;align-items:center;justify-content:center;width:31px;height:35px;padding:2px;border-radius:5px;background:#dce8e8;overflow:hidden}
.checkout-code-photo img{width:100%;height:100%;object-fit:contain}
.checkout-code-choice{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0}
.checkout-code-choice span{min-width:0;overflow-wrap:anywhere}
.checkout-code-choice button{flex:none}
@media(max-width:540px){.checkout-code-dialog{padding:22px 20px 19px}.checkout-code-dialog .checkout-code-icon{width:44px;height:44px;margin-bottom:16px}.checkout-code-dialog h2{font-size:25px}.checkout-code-dialog .checkout-code-close{top:14px;right:14px}.checkout-code-dialog form{margin-top:18px}.checkout-code-actions{margin-top:17px}.checkout-code-preview{margin-top:9px;padding-top:11px}.checkout-code-preview strong{font-size:16px}.checkout-code-photo{width:24px;height:27px}}
@media(max-width:360px){.checkout-code-dialog{padding-inline:15px}.checkout-code-dialog input#checkout-code-input{font-size:16px}.checkout-code-dialog .checkout-code-field{padding-inline:10px;gap:7px}}

.checkout-code-dialog {
  border-color: var(--store-line);
  border-radius: var(--store-control-radius);
  background: #fff;
  color: var(--store-ink);
  color-scheme: light;
}

.checkout-code-dialog :is(button, input):focus-visible { outline-color: var(--store-accent); }
.checkout-code-dialog .checkout-code-close { background: var(--store-surface); color: var(--store-ink); }
.checkout-code-dialog .checkout-code-icon { background: var(--store-accent-tint); color: var(--store-accent); }
.checkout-code-dialog :is(.checkout-code-kicker, .checkout-code-switch) { color: var(--store-accent-hover); }
.checkout-code-dialog :is(#checkout-code-description, #checkout-code-hint, .checkout-code-preview p) { color: var(--store-muted); }
.checkout-code-dialog :is(.checkout-code-label, .checkout-code-preview strong) { color: var(--store-ink); }
.checkout-code-dialog .checkout-code-field { border-color: var(--store-line); border-radius: var(--store-control-radius); background: #fff; color: var(--store-accent); }
.checkout-code-dialog .checkout-code-field:focus-within { border-color: var(--store-accent); box-shadow: 0 0 0 3px var(--store-accent-tint); }
.checkout-code-dialog input#checkout-code-input { color: var(--store-ink); }
.checkout-code-dialog input#checkout-code-input::placeholder { color: var(--store-muted); font-size: 15px; }
.checkout-code-dialog .checkout-code-error { border-color: #edb5b5; border-radius: var(--store-control-radius); background: #fff2f2; color: #8c1d24; }
.checkout-code-dialog :is(.checkout-code-next, .checkout-code-skip) { border-radius: var(--store-control-radius); }
.checkout-code-dialog .checkout-code-next { border-color: var(--store-accent); background: var(--store-accent); color: var(--store-on-accent); }
.checkout-code-dialog .checkout-code-next:hover:not(:disabled) { background: var(--store-accent-hover); filter: none; }
.checkout-code-dialog .checkout-code-skip { border-color: var(--store-line); color: var(--store-ink); }
.checkout-code-dialog .checkout-code-skip:hover:not(:disabled) { background: var(--store-surface); filter: none; }
.checkout-code-dialog .checkout-code-preview { border-color: var(--store-line); }
