/* Checkout payment methods: reference redesign. Loaded last; scoped to the checkout modal. */
body:not(.admin-view) .checkout-modal .pm-head{display:flex;align-items:center;gap:16px;margin:0 0 6px}
body:not(.admin-view) .checkout-modal .pm-head h3{margin:0;font-size:clamp(26px,3vw,34px);line-height:1.1;font-weight:800;color:#14182B}
body:not(.admin-view) .checkout-modal .pm-head p{margin:4px 0 0;color:#5B6478;font-size:16px}
body:not(.admin-view) .checkout-modal .pm-head-icon{flex:none;display:grid;place-items:center;width:56px;height:56px;border-radius:16px;background:#EEF0FB;color:#2E3A8C}
body:not(.admin-view) .checkout-modal .pm-head-icon svg{width:28px;height:28px}

body:not(.admin-view) .checkout-modal .checkout-methods{border:0;padding:0;margin:18px 0 8px;min-width:0}
body:not(.admin-view) .checkout-modal .checkout-methods legend{margin:0 0 12px;padding:0;font-size:19px;font-weight:800;color:#14182B}
body:not(.admin-view) .checkout-modal .payment-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body:not(.admin-view) .checkout-modal .payment-choices>label.pm{position:relative;display:flex;align-items:center;gap:16px;box-sizing:border-box;min-width:0;min-height:104px;margin:0;padding:18px 20px;border:1.5px solid #E4E7F2;border-radius:22px;background:#fff;color:#14182B;box-shadow:0 1px 2px #1d1d1f08;cursor:pointer;overflow:visible;transform:none;transition:border-color .18s,background .18s,box-shadow .18s}
body:not(.admin-view) .checkout-modal .payment-choices>label.pm:not(.payment-choice-disabled):hover{border-color:#B9C0E6;box-shadow:0 8px 22px #2e3a8c14;transform:none}
body:not(.admin-view) .checkout-modal .payment-choices>label.pm:has(input:checked){border-color:#2E3A8C;background:linear-gradient(180deg,#F4F5FD,#ECEFFB);box-shadow:0 0 0 1px #2E3A8C,0 10px 26px #2e3a8c1a}
body:not(.admin-view) .checkout-modal .payment-choices>label.pm:has(input:focus-visible){outline:3px solid #2E3A8C44;outline-offset:2px}
body:not(.admin-view) .checkout-modal .payment-choices>label.pm input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;margin:0}
body:not(.admin-view) .checkout-modal .payment-choices>label.pm.payment-choice-disabled{opacity:.6;cursor:not-allowed;background:#FAFAFD}
body:not(.admin-view) .checkout-modal .payment-choices>label.pm[hidden]{display:none}
body:not(.admin-view) .checkout-modal #paymobCardChoice,body:not(.admin-view) .checkout-modal #applePayChoice{grid-column:1/-1}

body:not(.admin-view) .checkout-modal .pm-tile{flex:none;display:grid;place-items:center;width:60px;height:60px;border-radius:17px;background:#EEF0FB;color:#2E3A8C;font:800 24px/1 var(--latin,inherit);font-style:normal;letter-spacing:-.5px}
body:not(.admin-view) .checkout-modal .pm-tile svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body:not(.admin-view) .checkout-modal .pm-tile--apple{background:#fff;color:#000;border:1px solid #E4E7F2}
body:not(.admin-view) .checkout-modal .pm-tile--apple svg{fill:currentColor;stroke:none;width:30px;height:30px}

/* text block: neutralise every legacy rule that styled the old inner span as the card */
body:not(.admin-view) .checkout-modal .payment-choices>label.pm>span:not(.pm-logos){display:block;flex:1 1 auto;min-width:0;width:auto;height:auto;min-height:0;margin:0;padding:0;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;color:inherit}
body:not(.admin-view) .checkout-modal .payment-choices>label.pm b{display:block;font-size:19px;line-height:1.25;font-weight:800;color:#14182B}
body:not(.admin-view) .checkout-modal .payment-choices>label.pm small{display:block;margin-top:5px;font-size:14px;line-height:1.45;color:#5B6478}
body:not(.admin-view) .checkout-modal #applePayChoice>span:not(.pm-logos){align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding-inline-start:18px;border-inline-start:1px solid #C9D0EE!important}

body:not(.admin-view) .checkout-modal .pm-logos{display:flex;flex:none;align-items:center;gap:8px;margin-inline-start:auto;direction:ltr}
body:not(.admin-view) .checkout-modal .pm-logos .pay-mark{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:62px;height:38px;padding:0 10px;border:1px solid #E4E7F2;border-radius:11px;background:#fff;font-size:15px;font-weight:900;font-style:italic;letter-spacing:-.3px;color:#1A1F71}
body:not(.admin-view) .checkout-modal .pm-logos .pay-mastercard{gap:0}
body:not(.admin-view) .checkout-modal .pm-logos .pay-mastercard i{width:18px;height:18px}
body:not(.admin-view) .checkout-modal .pm-logos .pay-mastercard i+i{margin-inline-start:-7px}
body:not(.admin-view) .checkout-modal .pm-logos .pay-mastercard b{margin-inline-start:5px;font:800 13px var(--latin,inherit);font-style:normal;color:#14182B}
body:not(.admin-view) .checkout-modal .pm-logos .pay-meeza{color:#00A651}

body:not(.admin-view) .checkout-modal .pm-check{flex:none;display:none;place-items:center;width:34px;height:34px;border-radius:50%;background:#2E3A8C;color:#fff;margin-inline-start:auto}
body:not(.admin-view) .checkout-modal .pm-check svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
body:not(.admin-view) .checkout-modal .payment-choices>label.pm:has(input:checked) .pm-check{display:grid}
body:not(.admin-view) .checkout-modal #paymobCardChoice:has(input:checked) .pm-logos{margin-inline-start:0}

@media(max-width:640px){
  body:not(.admin-view) .checkout-modal .payment-choices{grid-template-columns:1fr;gap:12px}
  body:not(.admin-view) .checkout-modal .payment-choices>label.pm{padding:16px;gap:14px;min-height:92px;border-radius:20px}
  body:not(.admin-view) .checkout-modal .pm-tile{width:52px;height:52px;border-radius:15px;font-size:21px}
  body:not(.admin-view) .checkout-modal .pm-tile svg{width:26px;height:26px}
  body:not(.admin-view) .checkout-modal .payment-choices>label.pm b{font-size:17px}
  body:not(.admin-view) .checkout-modal .payment-choices>label.pm small{font-size:13.5px}
  body:not(.admin-view) .checkout-modal #paymobCardChoice{flex-wrap:wrap}
  body:not(.admin-view) .checkout-modal #paymobCardChoice .pm-logos{flex:1 0 100%;margin-inline-start:0;padding-inline-start:66px;gap:6px}
  body:not(.admin-view) .checkout-modal .pm-logos .pay-mark{min-width:52px;height:34px;padding:0 8px;font-size:13px}
  body:not(.admin-view) .checkout-modal .pm-check{width:30px;height:30px}
  body:not(.admin-view) .checkout-modal .pm-head{gap:12px}
  body:not(.admin-view) .checkout-modal .pm-head-icon{width:48px;height:48px;border-radius:14px}
  body:not(.admin-view) .checkout-modal .pm-head p{font-size:14.5px}
}
@media(max-width:360px){
  body:not(.admin-view) .checkout-modal .payment-choices>label.pm{padding:14px 12px;gap:12px}
  body:not(.admin-view) .checkout-modal #paymobCardChoice .pm-logos{padding-inline-start:0}
  body:not(.admin-view) .checkout-modal .pm-tile{width:46px;height:46px}
}

/* logos span must not inherit the legacy "inner span is the card" rules */
body:not(.admin-view) .checkout-modal .payment-choices>label.pm>span.pm-logos{display:flex;flex-direction:row;flex:0 0 auto;align-items:center;justify-content:flex-end;width:auto;min-width:0;height:auto;min-height:0;margin:0;margin-inline-start:auto;padding:0;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;gap:8px}
body:not(.admin-view) .checkout-modal #paymobCardChoice>span:not(.pm-logos){flex:1 1 140px}
@media(max-width:640px){
  body:not(.admin-view) .checkout-modal .payment-choices>label.pm>span.pm-logos{flex:1 0 100%;justify-content:flex-start;margin-inline-start:0;padding-inline-start:66px;gap:6px}
}
@media(max-width:360px){
  body:not(.admin-view) .checkout-modal .payment-choices>label.pm>span.pm-logos{padding-inline-start:0}
}
