#checkout {
    --checkout-scale: 1;
    width: min(980px, calc(100% - 32px)); height: min(912px, calc(100vh - 16px));
    height: min(912px, calc(100dvh - 16px)); max-width: none; max-height: none;
    margin: auto; padding: 0; border: 0; border-radius: 12px; overflow: hidden;
    background: #151e23; color: #f3f7f8; box-shadow: 0 24px 96px #10171e55;
}
#checkout:not([open]) { display: none; }
#checkout[open] { display: flex; flex-direction: column; }
#checkout::backdrop { background: rgb(12 18 24 / 70%); }
html:has(#checkout[open]) { overflow: hidden; }
.checkout-bar { display: flex; flex: none; justify-content: flex-end; align-items: center; gap: 2px; padding: 3px 10px; background: #151e23; }
.shared-header .checkout-bar {
    position: absolute; z-index: 1; top: 1px; right: calc(14px * var(--checkout-scale));
    height: 46px; padding: 0; transform: scale(var(--checkout-scale)); transform-origin: top right;
}
.checkout-bar form { margin: 0; }
.checkout-bar :is(a, button) {
    display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0;
    border-radius: 50%; color: inherit; background: transparent;
}
.checkout-close { font: 1.55rem/1 system-ui, sans-serif; }
.checkout-bar :is(a, button):hover { background: #334249; }
.checkout-bar :is(a, button):focus-visible { outline: 2px solid var(--ice, #9bd5ee); outline-offset: -2px; box-shadow: none; }
.checkout-body { position: relative; flex: 1; min-width: 0; min-height: 0; overflow: clip; }
.checkout-body iframe {
    display: block; width: calc(100% / var(--checkout-scale)); height: calc(100% / var(--checkout-scale));
    border: 0; transform: scale(var(--checkout-scale)); transform-origin: top left;
}
.checkout-loading { position: absolute; inset: 0; display: grid; place-content: center; background: #151e23; color: #d4e3e9; pointer-events: none; }
.checkout-loading[hidden] { display: none; }
@media (min-width: 768px) and (max-height: 740px) {
    #checkout { height: 100vh; height: 100dvh; }
}
@media (max-width: 767px), (pointer: coarse) {
    #checkout { width: 100%; height: 100vh; height: 100dvh; border-radius: 0; }
}
