/* Checkout sheet — overlay, order summary, payment options, bank details.
   Ported unchanged from the old store-luxe.css (only the animations were softened);
   the checkout markup and behaviour live in views/store.html + js/store/store.js. */
body.store-luxe{
  --luxe-ink:#f6edf1;
  --luxe-mute:#a38593;
  --luxe-logo:#d62f7f;
  --luxe-deep:#d62f7f;
  --luxe-line:color-mix(in srgb, #d62f7f 34%, #0d0709);
  --luxe-panel:#1e0f16;
  --luxe-black:#0d0709;
  --luxe-opt:#a38593;
  --luxe-opt-hot:#f6edf1;
}
/* ---- Checkout sheet (payment RIGHT + summary LEFT like reference) ---- */
body.store-luxe .checkout-overlay{
  position:fixed!important;inset:0!important;
  z-index:12100!important;
  padding:40px 32px!important;
  background:rgba(23,12,17,.97)!important;
  backdrop-filter:none!important;
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .45s ease,visibility 0s linear .5s;
  overflow:auto;
}
body.store-luxe .checkout-overlay.hidden{display:none!important}
body.store-luxe .checkout-overlay.is-open,
body.store-luxe .checkout-overlay.is-closing{
  display:block!important;pointer-events:auto;visibility:visible;
}
body.store-luxe .checkout-overlay.is-open{opacity:1;transition:opacity .55s ease,visibility 0s}
body.store-luxe .checkout-overlay.is-closing{opacity:0;transition:opacity .4s ease}
body.store-luxe .checkout-blur{display:none}

body.store-luxe .checkout-sheet,
body.store-luxe .store-luxe-checkout{
  width:min(1180px,100%)!important;
  margin:0 auto!important;
  direction:ltr!important; /* physical: summary left, payment right */
  opacity:0;
  transition:opacity .3s ease;
}
body.store-luxe .checkout-overlay.is-open .checkout-sheet,
body.store-luxe .checkout-overlay.is-open .store-luxe-checkout{
  opacity:1;
  transition:opacity .5s ease;
}
body.store-luxe .checkout-overlay.is-closing .checkout-sheet{opacity:0}
/* the two cards rise one after the other (only when the sheet opens; nodes are not re-created) */
body.store-luxe .checkout-overlay.is-open .checkout-sheet-head{animation:sxRise .6s cubic-bezier(.22,1,.36,1) .05s both}
body.store-luxe .checkout-overlay.is-open .checkout-summary-card{animation:sxRise .65s cubic-bezier(.22,1,.36,1) .12s both}
body.store-luxe .checkout-overlay.is-open .checkout-pay-card{animation:sxRise .65s cubic-bezier(.22,1,.36,1) .2s both}

body.store-luxe .checkout-sheet-head{
  direction:rtl;
  display:flex;align-items:flex-start;justify-content:space-between;gap:20px;
  margin-bottom:28px;padding-inline:6px;
}
body.store-luxe .checkout-sheet-titles{text-align:right}
body.store-luxe .checkout-sheet-head h2{
  margin:0 0 8px;font-family:'Tajawal','Cairo',sans-serif;
  font-size:clamp(1.85rem,3.2vw,2.35rem);color:#f6edf1;font-weight:700;line-height:1.2;
}
body.store-luxe .checkout-sheet-head p{margin:0;color:var(--luxe-mute);font-size:1rem}
body.store-luxe .checkout-sheet-close{
  width:44px;height:44px;border-radius:14px;border:1px solid rgba(172,19,86,.22);
  background:#28141d;color:#ffffff;font-size:1.45rem;cursor:pointer;
  flex:0 0 auto;
}

body.store-luxe .checkout-sheet-grid{
  display:grid!important;
  /* left = summary, right = payment */
  grid-template-columns:minmax(360px,.92fr) minmax(460px,1.28fr)!important;
  gap:28px!important;
  align-items:stretch!important;
}

body.store-luxe .checkout-summary-card,
body.store-luxe .checkout-pay-card{
  direction:rtl;
  background:linear-gradient(180deg,#2f1823,#27141d)!important;
  border:1px solid rgba(172,19,86,.2)!important;
  border-radius:26px!important;
  box-shadow:0 28px 80px rgba(0,0,0,.42)!important;
  padding:28px 26px!important;
  min-height:560px;
}

body.store-luxe .checkout-summary-card h3,
body.store-luxe .checkout-pay-title h3{
  margin:0;font-family:'Tajawal','Cairo',sans-serif;color:#cdb6c1;font-size:1.22rem;font-weight:700;
}
body.store-luxe .checkout-summary-items{
  display:flex;flex-direction:column;gap:12px;margin:20px 0 18px;
  max-height:260px;overflow:auto;
}
body.store-luxe .checkout-coupon{margin-bottom:16px}
body.store-luxe .checkout-coupon-label{
  display:block;margin-bottom:10px;color:var(--luxe-mute);font-size:.8rem;font-weight:600;
}
body.store-luxe .checkout-coupon-row{display:flex;gap:10px}
body.store-luxe .checkout-coupon-row input,
body.store-luxe .checkout-server-field input,
body.store-luxe .checkout-bank-panel input:not([type="file"]){
  flex:1;height:48px;border-radius:14px;padding:0 14px;
  border:1px solid rgba(172,19,86,.2)!important;
  background:#160b10!important;color:var(--luxe-ink)!important;font-weight:500;
}
body.store-luxe .checkout-coupon-btn{
  height:48px;padding:0 18px;border-radius:14px;border:1px solid rgba(172,19,86,.25);
  background:rgba(172,19,86,.1);color:#ffffff;font-weight:700;cursor:pointer;white-space:nowrap;
}
body.store-luxe .checkout-server-field{
  display:grid;gap:8px;margin-bottom:12px;color:var(--luxe-mute);font-size:.8rem;font-weight:600;
}

body.store-luxe .checkout-totals{
  margin-top:18px;padding-top:16px;border-top:1px solid rgba(172,19,86,.12);
  display:grid;gap:12px;
}
body.store-luxe .checkout-totals > div{
  display:flex;align-items:center;justify-content:space-between;color:var(--luxe-mute);font-weight:600;
}
body.store-luxe .checkout-totals .fee-free{color:#7fd3ac;font-weight:700}
body.store-luxe .checkout-grand{
  margin-top:6px;padding-top:12px;border-top:1px dashed rgba(172,19,86,.16);
  color:#cdb6c1!important;font-size:1.2rem!important;
}
body.store-luxe .checkout-grand strong{color:var(--luxe-logo)!important;font-size:1.35rem}

body.store-luxe .checkout-confirm-btn{
  width:100%;min-height:56px;margin-top:20px;border:1px solid rgba(172,19,86,.35);border-radius:16px;cursor:pointer;
  background:linear-gradient(180deg,#1e0f16,#160b10);
  color:#ffffff;font-weight:700;font-size:1.05rem;font-family:inherit;
  box-shadow:0 14px 34px rgba(172,19,86,.16);
  transition:filter .2s ease,border-color .2s ease;
}
body.store-luxe .checkout-confirm-btn:hover{filter:brightness(1.06)}
body.store-luxe .checkout-secure-note{
  margin:14px 0 0;text-align:center;color:var(--luxe-mute);font-size:.8rem;font-weight:500;
}

body.store-luxe .checkout-pay-title{
  display:flex;align-items:center;gap:12px;margin-bottom:22px;
}
body.store-luxe .checkout-pay-title b{
  width:30px;height:30px;border-radius:999px;display:grid;place-items:center;
  background:#160b10;border:1px solid rgba(172,19,86,.4);color:var(--luxe-logo);font-size:.88rem;
}
body.store-luxe .checkout-pay-list{display:grid;gap:14px}
body.store-luxe .checkout-pay-option{
  width:100%;display:grid;grid-template-columns:22px 1fr auto;gap:14px;align-items:center;
  text-align:start;padding:20px 18px;border-radius:18px;cursor:pointer;
  border:1px solid rgba(211,40,120,.22);
  background:rgba(255,255,255,.015);color:var(--luxe-opt);font-family:inherit;
  min-height:84px;
  transition:border-color .2s ease,background .2s ease,color .2s ease,box-shadow .2s ease;
}
body.store-luxe .checkout-pay-option:hover{
  border-color:rgba(172,19,86,.4);color:#a38593;
}
body.store-luxe .checkout-pay-option.active{
  border-color:rgba(172,19,86,.55);
  background:rgba(211,40,120,.08);
  color:var(--luxe-opt-hot);
  box-shadow:inset 0 -2px 0 var(--luxe-logo);
}
body.store-luxe .pay-radio{
  width:18px;height:18px;border-radius:50%;
  border:2px solid rgba(211,40,120,.55);position:relative;
}
body.store-luxe .checkout-pay-option.active .pay-radio{border-color:var(--luxe-logo)}
body.store-luxe .checkout-pay-option.active .pay-radio::after{
  content:"";position:absolute;inset:4px;border-radius:50%;background:var(--luxe-logo);
}
body.store-luxe .pay-copy{display:grid;gap:5px}
body.store-luxe .checkout-pay-option .pay-copy strong{color:inherit;font-size:1.02rem;transition:color .2s ease}
body.store-luxe .checkout-pay-option.active .pay-copy strong{color:var(--luxe-opt-hot)}
body.store-luxe .pay-copy small{color:var(--luxe-mute);font-size:.8rem}
body.store-luxe .pay-brands{display:flex;gap:8px;align-items:center}
body.store-luxe .pay-brands .pb{
  min-width:38px;height:24px;padding:0 7px;border-radius:7px;
  display:grid;place-items:center;font-size:.6rem;font-weight:700;font-style:normal;
  background:#160b10;border:1px solid rgba(172,19,86,.25);color:#ffffff;
}
body.store-luxe .pay-brands .pb.visa{color:#d62f7f}
body.store-luxe .pay-bank-ico{
  width:38px;height:38px;border-radius:11px;
  background:rgba(172,19,86,.1);border:1px solid rgba(172,19,86,.2);
  position:relative;
}
body.store-luxe .pay-bank-ico::before{
  content:"";position:absolute;inset:11px 9px 9px;
  border:2px solid var(--luxe-logo);border-radius:3px;opacity:.75;
}

body.store-luxe .checkout-bank-panel{
  margin-top:18px;padding:16px;border-radius:18px;
  border:1px solid rgba(172,19,86,.16);background:rgba(255,255,255,.02);
  display:grid;gap:12px;
}
body.store-luxe .checkout-bank-panel.hidden{display:none!important}
body.store-luxe .checkout-bank-panel .bank-info-box{
  padding:0;border-radius:16px;line-height:1.6;color:var(--luxe-mute);
  border:1px solid rgba(172,19,86,.2);background:#160b10;overflow:hidden;
}
body.store-luxe .checkout-bank-panel input[type="file"]{color:var(--luxe-mute);font-size:.8rem}
body.store-luxe .bank-transfer-total{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:16px 18px;background:rgba(172,19,86,.08);border-bottom:1px solid rgba(172,19,86,.18);
}
body.store-luxe .bank-transfer-total span{font-size:.82rem;font-weight:600;color:var(--luxe-mute)}
body.store-luxe .bank-transfer-total strong{color:var(--luxe-logo);font-size:1rem;direction:ltr}
body.store-luxe .bank-accounts-list{display:grid}
body.store-luxe .bank-account-holder-notice{
  margin:12px 14px 0;padding:13px 15px;border:1px solid rgba(172,19,86,.34);
  border-radius:12px;background:rgba(172,19,86,.1);display:flex;align-items:center;
  justify-content:space-between;gap:12px;color:#f6edf1;
}
body.store-luxe .bank-account-holder-notice span{color:var(--luxe-logo);font-size:.74rem;font-weight:700}
body.store-luxe .bank-account-holder-notice strong{font-size:.86rem;font-weight:700;text-align:end}
body.store-luxe .bank-account-card{padding:17px 18px;border-bottom:1px solid rgba(172,19,86,.14)}
body.store-luxe .bank-account-card:last-child{border-bottom:0}
body.store-luxe .bank-account-card h4{
  margin:0 0 11px;color:var(--luxe-logo);font-size:.88rem;font-weight:700;letter-spacing:.02em;
}
body.store-luxe .bank-account-row{
  min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:14px;
}
body.store-luxe .bank-account-row>span{color:var(--luxe-mute);font-size:.76rem;font-weight:500}
body.store-luxe .bank-account-row>div{display:flex;align-items:center;justify-content:flex-end;gap:9px;min-width:0}
body.store-luxe .bank-account-row b{
  color:#f6edf1;font-size:.84rem;font-weight:600;overflow-wrap:anywhere;text-align:left;
}
body.store-luxe .bank-copy-btn{
  min-width:48px;height:30px;padding:0 9px;border-radius:8px;cursor:pointer;font-family:inherit;
  border:1px solid rgba(172,19,86,.38);background:rgba(172,19,86,.12);color:#cdb6c1;font-size:.72rem;font-weight:700;
  transition:background .18s ease,border-color .18s ease,color .18s ease;
}
body.store-luxe .bank-copy-btn:hover,body.store-luxe .bank-copy-btn.copied{
  background:rgba(172,19,86,.24);border-color:var(--luxe-logo);color:#fff;
}
@media (max-width:560px){
  body.store-luxe .bank-account-holder-notice{align-items:flex-start;flex-direction:column}
  body.store-luxe .bank-account-row{align-items:flex-start;flex-direction:column;gap:5px;padding:5px 0}
  body.store-luxe .bank-account-row>div{width:100%;justify-content:space-between}
  body.store-luxe .bank-account-row b{font-size:.75rem}
}

@media (max-width:980px){
  body.store-luxe .checkout-sheet-grid{grid-template-columns:1fr!important;gap:18px!important}
  body.store-luxe .checkout-overlay{padding:18px 14px!important}
  body.store-luxe .checkout-summary-card,
  body.store-luxe .checkout-pay-card{min-height:0;padding:22px 18px!important}
}
