/* Ratin Special — checkout popup (dark + yellow, bKash/Nagad card colours kept) */
.checkout-modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,0.8);backdrop-filter:blur(8px);z-index:99999;align-items:center;justify-content:center;padding:16px}
.checkout-modal-overlay.open{display:flex}
/* Dedicated checkout route: reuse the existing payment flow as a full page. */
html.payment-page,html.payment-page body{min-height:100%;background:#101012;color:#f3f2ec}
html.payment-page body{margin:0;overflow:auto}
html.payment-page body>:not(#checkoutModal){display:none!important}
html.payment-page #checkoutModal{display:flex!important;position:relative;inset:auto;min-height:100vh;width:100%;padding:32px 16px;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;align-items:flex-start;justify-content:center;z-index:1}
html.payment-page #checkoutModal:not(.open){display:flex!important}
html.payment-page .checkout-box{width:min(680px,100%);max-height:none;overflow:visible;margin:auto;padding:28px 30px 26px;border-radius:22px}
html[data-theme="light"].payment-page,html[data-theme="light"].payment-page body{background:#f4f4f6;color:#1d1d1f}
@media(max-width:640px){html.payment-page #checkoutModal{padding:12px 10px;align-items:flex-start}html.payment-page .checkout-box{padding:24px 16px 20px;border-radius:18px}}
.checkout-box{position:relative;background:#151517;border:1px solid rgba(255,255,255,0.14);border-radius:22px;width:min(440px,100%);padding:22px 18px 20px;box-shadow:0 24px 80px rgba(0,0,0,0.6);max-height:calc(100vh - 32px);overflow-y:auto;overflow-x:hidden;color:#f3f2ec;font-family:var(--font-main,Inter,system-ui,sans-serif)}
.checkout-box *{box-sizing:border-box}
.co-close{position:absolute;right:12px;top:12px;width:32px;height:32px;border-radius:50%;border:0;background:#1b1e1d;color:#cfd1ca;font-size:20px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.co-close:hover{background:#262a28}
.co-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;padding-right:38px;gap:10px}
.co-sub{font-size:13px;color:#9a9f98}
.co-total{font-size:30px;font-weight:700;margin-top:2px;color:#fff}
.co-saved{background:#262a28;color:#d8c84a;font-size:12px;padding:5px 10px;border-radius:20px;white-space:nowrap;display:none}
.co-user{font-size:12px;color:#8a8f88;margin:-6px 0 14px}
.co-card{position:relative;overflow:hidden;border-radius:20px;padding:20px;color:#fff;min-height:160px;border:2px solid rgba(255,255,255,.2);background:#e2136e;transition:background .2s}
.co-card .c1{position:absolute;right:-40px;top:-40px;width:150px;height:150px;border-radius:50%;background:rgba(255,255,255,.12)}
.co-card .c2{position:absolute;right:30px;bottom:-60px;width:130px;height:130px;border-radius:50%;background:rgba(255,255,255,.08)}
.co-chip{display:flex;flex-direction:column;align-items:flex-start;gap:6px;border-radius:14px;padding:12px 14px;color:#fff;cursor:pointer;border:2px solid transparent;font-size:14px;font-weight:600;min-width:0;font-family:inherit}
.co-chip{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.co-chip small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:11.5px;font-weight:400;opacity:.88}
.co-panel{background:#1a1a1c;border:1px solid #262a28;border-radius:16px;padding:16px;margin-top:14px}
.co-step{display:flex;gap:12px;align-items:flex-start;font-size:14px;color:#d8d9d2;margin-bottom:14px;line-height:1.45}
.co-n{width:22px;height:22px;border-radius:50%;background:#262a28;color:#d8c84a;font-size:12px;font-weight:600;display:flex;align-items:center;justify-content:center;flex:none;margin-top:1px}
.co-field{display:flex;align-items:center;gap:12px;background:#1b1e1d;border-radius:14px;padding:10px 14px 10px 10px;margin-bottom:10px;cursor:text;border:1.5px solid transparent;transition:border-color .15s,background .15s}
.co-field:focus-within{border-color:#d8c84a;background:#202423}
.co-field.bad{border-color:#ff5d73}
.co-ico{width:40px;height:40px;border-radius:11px;background:#2d3230;color:#cfd1ca;display:flex;align-items:center;justify-content:center;flex:none}
.co-ft{flex:1;min-width:0;display:block}
.co-ft>span{display:block;font-size:11.5px;color:#9a9f98;line-height:1.2}
.co-ft input{width:100%;background:transparent;border:0;outline:0;color:#fff;font-size:17px;font-weight:500;font-family:inherit;padding:2px 0 0;height:26px;letter-spacing:.3px}
.co-ft input::placeholder{color:#6a6f69;font-weight:400}
.co-ok{color:#4ade80;opacity:0;transition:opacity .15s;display:flex}
.co-field.good .co-ok{opacity:1}
.co-btn{width:100%;height:50px;border:0;border-radius:12px;background:#d8c84a;color:#15140a;font-size:16px;font-weight:600;cursor:pointer;font-family:inherit;margin-top:16px}
.co-btn:hover{background:#efe36a}
.co-link{background:none;border:0;color:#d8c84a;font-size:13px;cursor:pointer;font-family:inherit;padding:0}
.co-link:hover{text-decoration:underline}
.co-err{color:#ff7b8a;font-size:13px;margin-top:8px;min-height:18px}
.co-alert{display:none;border-radius:12px;padding:10px 14px;font-size:13px;margin-bottom:12px;line-height:1.45}
.co-alert.show{display:block}
.co-alert.err{background:rgba(255,93,115,.12);color:#ff9aa8;border:1px solid rgba(255,93,115,.3)}
.co-alert.ok{background:rgba(74,222,128,.12);color:#86efac;border:1px solid rgba(74,222,128,.3)}
.co-coupon{display:none;gap:8px;margin-bottom:12px}
.co-coupon input{flex:1;min-width:0;height:42px;background:#1b1e1d;border:1.5px solid transparent;border-radius:12px;color:#fff;padding:0 12px;font-size:14px;font-family:inherit;outline:0;text-transform:uppercase}
.co-coupon input:focus{border-color:#d8c84a}
.co-coupon button{height:42px;border:0;border-radius:12px;background:#262a28;color:#f3f2ec;padding:0 16px;font-weight:600;cursor:pointer;font-family:inherit}
@keyframes cospin{to{transform:rotate(360deg)}}
@keyframes copop{0%{transform:scale(.6);opacity:0}100%{transform:scale(1);opacity:1}}

@media (max-width:640px){.checkout-modal-overlay{align-items:flex-start;overflow-y:auto;overflow-x:hidden}.checkout-box{max-height:none}.co-chip{padding:10px 8px;font-size:13px}.co-chip small{font-size:10.5px}}

/* ---- stability fix: stop the checkout popup from drifting on mobile ---- */
html.co-open, body.co-open { overflow: hidden; overscroll-behavior: none; }
.checkout-modal-overlay { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(0,0,0,.88); }
.checkout-modal-overlay .checkout-box { backdrop-filter: none; -webkit-backdrop-filter: none; background: #151517; transform: none; transition: none; }
body.co-open .aurora i, body.co-open .aurora::before, body.co-open .aurora::after { animation: none; }
body.co-open .cursor-glow, body.co-open .cursor-ring { display: none; }

/* quantity (multi-licence) selector */
.co-qty{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#1b1e1d;border-radius:12px;padding:8px 8px 8px 14px;margin-bottom:12px}
.co-qty-l{display:flex;flex-direction:column;min-width:0}
.co-qty-l span{font-size:13.5px;color:#f3f2ec;font-weight:600}
.co-qty-l small{font-size:11.5px;color:#d8c84a;min-height:14px}
.co-qty-c{display:flex;align-items:center;gap:4px}
.co-qty-c button{width:34px;height:34px;border:0;border-radius:10px;background:#262a28;color:#f3f2ec;font-size:18px;line-height:1;cursor:pointer;font-family:inherit}
.co-qty-c button:disabled{opacity:.35;cursor:not-allowed}
.co-qty-c b{min-width:30px;text-align:center;font-size:16px;color:#fff}

/* Match the payment instructions to the site's charcoal-and-gold panel UI. */
.co-card {
  background:#151517 !important;
  border:1px solid #3a3a40;
  border-radius:14px;
  padding:18px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03),0 8px 24px rgba(0,0,0,.18);
}
.co-card .c1,.co-card .c2 { background:rgba(255,202,10,.07); }
.co-card #coCardName { color:#f3f2ec; font-size:20px !important; font-style:normal !important; font-weight:700; }
.co-card > div:first-of-type > span {
  background:rgba(216,200,74,.14) !important;
  border:1px solid rgba(216,200,74,.28);
  color:#e7d96b;
}
.co-card #displayPayNumber { color:#fff; font-size:22px !important; letter-spacing:1px !important; }
.co-card #btnCopyNumber {
  background:#262a28 !important;
  color:#e7d96b !important;
  border:1px solid #3a3a40 !important;
  border-radius:9px !important;
  padding:6px 12px !important;
}
.co-chip {
  background:#1b1e1d !important;
  border:1px solid #3a3a40 !important;
  border-radius:10px;
  color:#f3f2ec;
}
.co-chip.on {
  border-color:#d8c84a !important;
  background:#25251d !important;
}

/* White theme: let checkout follow the page's current appearance. */
html[data-theme="light"] .checkout-modal-overlay .checkout-box {
  background:#fff !important;
  border-color:rgba(0,0,0,.12);
  color:#1d1d1f;
  box-shadow:0 24px 70px rgba(0,0,0,.24);
}
html[data-theme="light"] .co-close { background:#f0f0f3; color:#424245; }
html[data-theme="light"] .co-close:hover { background:#e5e5ea; }
html[data-theme="light"] .co-sub,
html[data-theme="light"] .co-user { color:#6e6e73; }
html[data-theme="light"] .co-total { color:#1d1d1f; }
html[data-theme="light"] .co-saved { background:#f5f5f7; color:#765d00; }
html[data-theme="light"] .co-qty,
html[data-theme="light"] .co-panel { background:#f5f5f7; border-color:#dedee3; }
html[data-theme="light"] .co-qty-l span,
html[data-theme="light"] .co-qty-c b,
html[data-theme="light"] .co-step,
html[data-theme="light"] #coAmountStep { color:#1d1d1f !important; }
html[data-theme="light"] .co-qty-l small { color:#806500; }
html[data-theme="light"] .co-qty-c button { background:#e5e5ea; color:#1d1d1f; }
html[data-theme="light"] .co-card {
  background:#f5f5f7 !important;
  border-color:#dedee3;
  color:#1d1d1f;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
}
html[data-theme="light"] .co-card .c1,
html[data-theme="light"] .co-card .c2 { background:rgba(216,200,74,.12); }
html[data-theme="light"] .co-card #coCardName,
html[data-theme="light"] .co-card #displayPayNumber { color:#1d1d1f; }
html[data-theme="light"] .co-card #coSendLbl,
html[data-theme="light"] .co-card #displayPayNote { color:#6e6e73; opacity:1 !important; }
html[data-theme="light"] .co-card > div:first-of-type > span {
  background:rgba(216,200,74,.16) !important;
  color:#765d00;
}
html[data-theme="light"] .checkout-box .co-card #btnCopyNumber {
  background:#e5e5ea !important;
  color:#1d1d1f !important;
  border-color:#d2d2d7 !important;
}
html[data-theme="light"] .co-chip {
  background:#fff !important;
  border-color:#dedee3 !important;
  color:#1d1d1f;
}
html[data-theme="light"] .co-chip.on {
  background:#fffbea !important;
  border-color:#c5a500 !important;
}
html[data-theme="light"] .co-chip small { color:#6e6e73; }
html[data-theme="light"] .co-n { background:#e5e5ea; color:#765d00; }
html[data-theme="light"] .co-field,
html[data-theme="light"] .co-coupon input { background:#fff; border-color:#dedee3; }
html[data-theme="light"] .co-field:focus-within { background:#fff; border-color:#c5a500; }
html[data-theme="light"] .co-ico { background:#f0f0f3; color:#6e6e73; }
html[data-theme="light"] .co-ft>span,
html[data-theme="light"] .co-ft input,
html[data-theme="light"] .co-coupon input { color:#1d1d1f; }
html[data-theme="light"] .co-ft input::placeholder { color:#86868b; }
html[data-theme="light"] .co-coupon input:focus { border-color:#c5a500; }
html[data-theme="light"] .co-coupon button { background:#e5e5ea; color:#1d1d1f; }
html[data-theme="light"] .co-link { color:#806500; }
