
.checkout-overlay[hidden],.checkout-resume[hidden]{display:none!important}
.checkout-overlay{position:fixed;inset:0;z-index:10000;background:rgba(27,34,48,.48);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box}
.checkout-dialog{width:min(1180px,100%);height:min(860px,calc(100dvh - 48px));background:#fff;border:1px solid #e7eaf0;border-radius:26px;overflow:hidden;box-shadow:0 30px 100px #15203938;display:flex;flex-direction:column;position:relative;animation:checkout-in .22s ease-out}
.checkout-header{display:flex;align-items:center;gap:14px;padding:20px 24px;border-bottom:1px solid #edf0f5;flex-shrink:0;background:#fff}
.checkout-symbol{width:48px;height:48px;border-radius:15px;background:#edf3ff;color:#3977ff;display:grid;place-items:center;flex-shrink:0}.checkout-symbol svg{width:28px;height:28px}
.checkout-header h2{font-size:22px;line-height:1.35;font-weight:700;letter-spacing:-.5px;margin:0;color:#202838}.checkout-header p{font-size:13px;color:#8490a5;margin:5px 0 0;line-height:1.5}
.checkout-close{margin-left:auto;width:38px;height:38px;border:0;border-radius:50%;background:#f4f6f9;color:#8190a7;font:28px/1 Arial;cursor:pointer;flex-shrink:0}.checkout-close:hover{background:#eaf0fa;color:#26344c}.checkout-close:focus-visible{outline:2px solid #3977ff;outline-offset:3px}
.checkout-frame{border:0;width:100%;flex:1;min-height:0;background:#f7f8fb}.checkout-loading{position:absolute;top:115px;left:24px;color:#8590a3;font-size:13px;pointer-events:none}.checkout-loading[hidden]{display:none}
.checkout-resume{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);z-index:9999;padding:13px 24px;border:1px solid #dfe6f6;background:#fff;color:#2864de;border-radius:40px;box-shadow:0 8px 32px #263e6f26;font:600 14px inherit;cursor:pointer}
@keyframes checkout-in{from{transform:translateY(10px);opacity:.5}to{transform:translateY(0);opacity:1}}
@media(max-width:700px){.checkout-overlay{padding:10px}.checkout-dialog{height:calc(100dvh - 20px);border-radius:20px}.checkout-header{padding:15px;gap:10px}.checkout-symbol{width:40px;height:40px;border-radius:12px}.checkout-header h2{font-size:19px}.checkout-header p{font-size:11px}.checkout-close{width:32px;height:32px}}
@media(prefers-reduced-motion:reduce){.checkout-dialog{animation:none}}

/* Compact mobile dialog: keep the storefront visible around the window. */
@media(max-width:680px){
 .checkout-overlay{padding:16px}
 .checkout-dialog{width:100%;max-width:440px;height:min(720px,88dvh);border-radius:20px}
 .checkout-header{padding:12px 14px;gap:10px}
 .checkout-symbol{width:34px;height:34px;border-radius:10px}.checkout-symbol svg{width:22px;height:22px}
 .checkout-header h2{font-size:17px}.checkout-header p{font-size:11px;margin-top:2px}
 .checkout-close{width:40px;height:40px;font-size:26px}
 .checkout-loading{top:90px;left:18px}
}
