/* ── Scrim / Overlay ────────────────────────────────────────────────── */
.scrim {
  position: fixed; inset: 0;
  background: rgba(10,38,21,.42);
  backdrop-filter: blur(6px);
  z-index: 80;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.scrim.open { opacity: 1; pointer-events: auto; }

/* ── Drawer ─────────────────────────────────────────────────────────── */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(560px, 100%);
  background: var(--canvas);
  z-index: 90;
  transform: translateX(100%);
  transition: transform .5s cubic-bezier(.7,.05,.2,1);
  overflow-x: hidden; overflow-y: auto;
  display: flex; flex-direction: column;
  box-shadow: -30px 0 60px -30px rgba(10,38,21,.4);
}
.drawer.open { transform: none; } /* none = no stacking context; fixes position:fixed children */

.drawer-head {
  position: sticky; top: 0;
  background: rgba(250,250,248,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 2;
}
.drawer-head .crumb { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.drawer-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s;
  color: var(--ink);
}
.drawer-close:hover { background: var(--canvas-sage); }

.drawer-body { padding: 36px 32px 40px; }
.drawer-body h2 { font-size: 36px; }
.drawer-body .lede { margin-top: 14px; color: var(--ink-2); font-size: 15.5px; }

/* Oncology drawer theme */
.drawer.oncology-mode { background: #FAF8F2; }
.drawer.oncology-mode .drawer-head { background: rgba(250,248,242,.92); }

/* Price card */
.price-card {
  margin-top: 28px;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  display: flex; align-items: center; gap: 18px; justify-content: space-between;
  position: relative; overflow: hidden;
}
.price-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--emerald); }
.price-card .big { font-family: 'Playfair Display', Georgia, serif; font-size: 38px; color: var(--ink); line-height: 1; }
.price-card .lbl { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
.price-card .pill { background: var(--emerald-soft); color: var(--emerald-deep); padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }

/* What's included */
.what-included { margin-top: 32px; }
.what-included h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; font-weight: 500; }
.what-included.highlight {
  background: linear-gradient(180deg, #F4F7F1 0%, #EBF1E7 100%);
  border: 1px solid #D8E2D2;
  border-radius: var(--radius-lg);
  padding: 22px 26px 4px;
  margin-top: 22px;
}
.what-included.highlight h4 { color: var(--emerald-deep); letter-spacing: .14em; }
.what-included.highlight .include-row { border-color: rgba(216,226,210,.7); }
.what-included.highlight .ic { background: #fff; border: 1px solid #D8E2D2; }

.include-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.include-row:last-child { border-bottom: 0; }
.include-row .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--emerald-soft); color: var(--emerald-deep); display: grid; place-items: center; flex-shrink: 0; }
.include-row b { display: block; color: var(--ink); font-size: 15.5px; font-weight: 600; margin-bottom: 4px; font-family: 'Plus Jakarta Sans', sans-serif; }
.include-row span { color: var(--ink-3); font-size: 14px; line-height: 1.55; }

/* Checkout */
.checkout { margin-top: 36px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.checkout-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  background: #F6F8F4;
  border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
}
.checkout-head .razor { display: inline-flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; letter-spacing: .08em; font-size: 11.5px; color: var(--ink); }
.razor .rzr-mark { width: 22px; height: 22px; border-radius: 5px; background: #0F2F5C; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; }
.checkout-head .secure { display: inline-flex; align-items: center; gap: 6px; color: var(--emerald-deep); font-size: 11.5px; font-weight: 600; }

.checkout-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 11.5px; color: var(--ink-3); letter-spacing: .04em; font-weight: 500; }
.field input {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.field input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(19,122,72,.12); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; box-sizing: border-box; }
.row-2 > * { min-width: 0; }
.row-2 .phone-row { width: 100%; }
.row-2 .phone-row input { min-width: 0; width: 0; flex: 1; }
.checkout-body .field { width: 100%; box-sizing: border-box; }

/* Payment methods */
.pay-methods { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 0 6px; }
.pay-methods .pm {
  flex: 1; min-width: 80px;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line-2); background: #fff;
  font-size: 12.5px; color: var(--ink-2);
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.pay-methods .pm.active { border-color: var(--emerald); background: var(--emerald-soft); color: var(--emerald-deep); font-weight: 600; }
.pay-methods .pm .dot-r { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line-2); flex-shrink: 0; position: relative; }
.pay-methods .pm.active .dot-r { border-color: var(--emerald); }
.pay-methods .pm.active .dot-r::after { content: ""; position: absolute; inset: 2.5px; background: var(--emerald); border-radius: 50%; }

/* Pay button */
.pay-btn {
  margin-top: 4px; width: 100%;
  padding: 16px 20px; border-radius: 14px;
  background: var(--emerald); color: #fff;
  border: 0; font: inherit; font-weight: 700; font-size: 15.5px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .25s, transform .2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.pay-btn:hover { background: var(--emerald-deep); }
.pay-btn .sm { font-weight: 500; opacity: .8; font-size: 12px; letter-spacing: .06em; }
.pay-btn .gateway { display: block; font-size: 11px; opacity: .75; font-weight: 500; letter-spacing: .04em; margin-top: 2px; }

/* Sub-plan section title */
.sub-plan-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}

/* Sub-plan cards (oncology) */
.sub-plan-cards { display: flex; flex-direction: column; gap: 10px; }

.sub-plan-card {
  border: 1.5px solid var(--line-2);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
  outline: none;
}
.sub-plan-card:hover { border-color: var(--emerald); background: var(--canvas-sage); }
.sub-plan-card.active {
  border-color: var(--emerald);
  background: var(--emerald-soft);
  box-shadow: 0 0 0 3px rgba(19,122,72,.1);
}
.sub-plan-card:focus-visible { box-shadow: 0 0 0 3px rgba(19,122,72,.25); }

.spc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.spc-label { font-weight: 600; font-size: 14.5px; color: var(--ink); font-family: 'Plus Jakarta Sans', sans-serif; }
.sub-plan-card.active .spc-label { color: var(--emerald-deep); }
.spc-price { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 19px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.sub-plan-card.active .spc-price { color: var(--emerald-deep); }
.spc-duration { display: block; font-size: 10.5px; color: var(--ink-3); font-family: 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase; margin-top: 5px; }
.spc-desc { font-size: 13px; color: var(--ink-3); margin-top: 8px; line-height: 1.55; margin-bottom: 0; }
.sub-plan-card.active .spc-desc { color: var(--emerald-deep); opacity: .75; }

/* PayPal status overlays (waiting + failed) */
.paypal-status-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.paypal-status-card {
  background: #fff; border-radius: 24px;
  padding: 48px 40px; max-width: 440px; width: 100%;
  text-align: center;
  box-shadow: 0 32px 80px -16px rgba(0,0,0,.35);
  animation: fadeSlideUp .35s ease;
}
.paypal-status-card h3 { font-size: 22px; color: var(--ink); margin-bottom: 14px; }
.paypal-status-card p  { color: var(--ink-2); font-size: 15px; line-height: 1.65; margin-bottom: 28px; }
.paypal-status-card.failed h3 { color: #c53030; }

.paypal-spinner {
  width: 56px; height: 56px;
  border: 3px solid var(--line-2);
  border-top-color: var(--emerald);
  border-radius: 50%;
  animation: ppSpin 1s linear infinite;
  margin: 0 auto 28px;
}
@keyframes ppSpin { to { transform: rotate(360deg); } }

.paypal-status-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
}
.paypal-fail-icon { width: 72px; height: 72px; margin: 0 auto 24px; }
.paypal-fail-icon svg { width: 100%; height: 100%; }
.paypal-fail-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Coming soon button (international) */
.pay-btn.coming-soon-btn {
  background: var(--canvas-sage);
  color: var(--ink-3);
  cursor: not-allowed;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  border: 1.5px dashed var(--line-2);
  opacity: .85;
}
.pay-btn.coming-soon-btn:hover { background: var(--canvas-sage); transform: none; }

/* Floating pay button */
.drawer-float {
  position: sticky;
  bottom: 0;
  padding: 12px 32px 24px;
  background: linear-gradient(to top, var(--canvas) 60%, transparent);
  pointer-events: auto;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 5;
}
.drawer-float.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
.drawer-float .float-pay-btn { margin-top: 0; box-shadow: 0 8px 24px -8px rgba(19,122,72,.45); }

/* Misc drawer notes */
.legal { text-align: center; font-size: 11.5px; color: var(--ink-3); margin-top: 14px; line-height: 1.6; }
.legal .ic { vertical-align: -2px; margin-right: 3px; }
.gst-note { margin-top: 10px; text-align: center; font-size: 11.5px; color: var(--ink-3); font-family: 'Plus Jakarta Sans', sans-serif; }
.gst-note svg { vertical-align: -2px; margin-right: 3px; color: var(--emerald); }
.trust-note { margin-top: 16px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #EFF4ED; border: 1px solid #D8E2D2; border-radius: 12px; color: var(--emerald-deep); font-size: 12.5px; line-height: 1.5; }
.trust-note svg { flex-shrink: 0; color: var(--emerald); }

/* Phone row + country dropdown */
.phone-row { display: flex; align-items: stretch; gap: 0; }
.phone-row input { flex: 1; border-radius: 0 12px 12px 0 !important; }
.phone-err { font-size: 12px; color: var(--crimson, #c53030); margin-top: 5px; line-height: 1.4; }

.cc-dropdown { position: static; }
.cc-dropdown .cc-trigger {
  border: 1px solid var(--line-2); border-right: 0;
  border-radius: 12px 0 0 12px;
  padding: 0 10px;
  display: flex; align-items: center; gap: 6px;
  background: #F6F8F4;
  font-size: 13.5px; color: var(--ink-2);
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 500;
  cursor: pointer; white-space: nowrap; height: 100%; min-height: 44px;
  transition: background .2s;
}
.cc-dropdown .cc-trigger:hover { background: #EEF2EB; }
.cc-dropdown .cc-trigger.locked { cursor: not-allowed; opacity: .85; }
.cc-dropdown .cc-trigger .emoji { font-size: 15px; line-height: 1; }
.cc-dropdown .cc-trigger .chev { margin-left: 2px; transition: transform .25s ease; color: var(--ink-3); }
.cc-dropdown.open .cc-trigger .chev { transform: rotate(180deg); }

.cc-panel {
  position: absolute; /* anchored inside .drawer which is the positioning context */
  width: 280px; background: #fff;
  border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: var(--shadow-lift); z-index: 9999;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
  overflow: hidden;
}
.cc-panel.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }

.cc-search { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.cc-search svg { color: var(--ink-3); flex-shrink: 0; }
.cc-search input { border: 0; background: transparent; flex: 1; font: inherit; font-size: 13.5px; color: var(--ink); outline: 0; font-family: 'Plus Jakarta Sans', sans-serif; }

.cc-list { max-height: 260px; overflow-y: auto; padding: 6px 0; }
.cc-list::-webkit-scrollbar { width: 6px; }
.cc-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }

.cc-item { padding: 9px 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--ink-2); transition: background .15s; }
.cc-item:hover, .cc-item.focused { background: var(--canvas-sage); }
.cc-item .emoji { font-size: 16px; line-height: 1; flex-shrink: 0; }
.cc-item .name { flex: 1; }
.cc-item .dial { color: var(--ink-3); font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.cc-item.active { background: var(--emerald-soft); color: var(--emerald-deep); }
.cc-empty { padding: 24px 14px; text-align: center; color: var(--ink-3); font-size: 13px; }
