/* Prescription fulfillment flow (rx-flow.jsx) — wheel-green adaptation of the
   "Prescription Flow" Figma. All selectors prefixed .rx2- to avoid clashing
   with the existing .rx- prescription-list styles. */

.rx2-back { display:inline-flex; align-items:center; gap:5px; background:none; border:none; padding:0; font-family:inherit; font-size: var(--t-sm); font-weight: var(--w-semi); color:var(--t-link-color); cursor:pointer; margin-bottom:14px; }
.rx2-headline .h1 { margin-bottom:2px; }
.rx2-actions { display:flex; gap:12px; margin-top:16px; }
.rx2-actions .btn { font-size: var(--t-sm); padding:10px 18px; }
.rx2-hr { height:1px; background:var(--c-border); margin:20px 0; }

.rx2-lead { font-size: var(--t-md); font-weight: var(--w-semi); color:var(--n-ink); margin:0 0 16px; }

/* Radio option cards */
.rx2-options { display:flex; flex-direction:column; gap:12px; }
.rx2-option { display:flex; align-items:center; gap:14px; width:100%; text-align:left; background:#fff; border:1px solid var(--c-border); border-radius: var(--r-lg); padding:16px; font-family:inherit; cursor:pointer; transition:border-color .15s, box-shadow .15s; }
.rx2-option:hover { border-color:#B9C2B2; }
.rx2-option.is-selected { border-color:var(--c-primary); box-shadow:0 0 0 1px var(--c-primary); background:#FAFCF8; }
.rx2-radio { flex:0 0 20px; width:20px; height:20px; border-radius:50%; border:1.5px solid #9AA294; display:inline-flex; align-items:center; justify-content:center; background:#fff; }
.rx2-radio.is-on { border-color:var(--c-primary); }
.rx2-radio-dot { width:11px; height:11px; border-radius:50%; background:var(--c-primary); }
.rx2-option-icon { flex:0 0 44px; width:44px; height:44px; border-radius: var(--r-lg); background:var(--c-soft); color:var(--c-primary); display:inline-flex; align-items:center; justify-content:center; }
.rx2-option-body { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.rx2-option-title { font-weight: var(--w-semi); font-size: var(--t-md); color:var(--n-ink); }
.rx2-option-sub { font-size: var(--t-sm); color:var(--n-ink-3); line-height:1.45; }
.rx2-option-meta { flex:0 0 auto; font-size: var(--t-sm); font-weight: var(--w-semi); color:var(--n-ink-3); }
.rx2-option-meta-col { display:flex; flex-direction:column; align-items:flex-end; gap:2px; flex:0 0 auto; }
.rx2-option-price { font-size: var(--t-lg); font-weight: var(--w-bold); color: var(--c-text); }

/* Pickup search */
.rx2-zip-row { display:flex; gap:12px; align-items:center; margin-bottom:16px; }
.rx2-zip-field { flex:0 1 220px; margin:0; }
.rx2-zip-btn { flex:0 0 auto; }
.rx2-pharm-list { margin-top:4px; }

/* Message bars */
.rx2-bar { display:flex; gap:12px; border-radius: var(--r-md); padding:14px 16px; align-items:flex-start; }
.rx2-bar-icon { flex:0 0 auto; margin-top:1px; }
.rx2-bar-title { font-weight: var(--w-bold); font-size: var(--t-sm); margin-bottom:4px; }
.rx2-bar-text { font-size: var(--t-sm); line-height:1.55; }
.rx2-bar-info { background:#EEF4FB; color:#2A4365; }
.rx2-bar-info .rx2-bar-icon { color:#4F83D1; }
.rx2-bar-success { background:#EAF3ED; color:#244B36; }
.rx2-bar-success .rx2-bar-icon { color:#2E7D4F; }
.rx2-bar-error { background:#FBEFEC; color:#A33B2E; }
.rx2-bar-error .rx2-bar-icon { color:#C24A3B; }

/* Sending */
.rx2-sending { display:flex; flex-direction:column; align-items:center; gap:12px; padding:56px 0 64px; text-align:center; }
.rx2-spinner { width:42px; height:42px; border-radius:50%; border:3.5px solid var(--c-soft); border-top-color:var(--c-primary); animation:rx2spin .9s linear infinite; }
@keyframes rx2spin { to { transform:rotate(360deg); } }
.rx2-sending-title { font-weight: var(--w-semi); font-size: var(--t-md); color:var(--n-ink); }

/* Progress card (post-send) */
.rx2-progress-card { border:1px solid var(--c-border); border-radius: var(--r-lg); overflow:hidden; }

/* ---- Prior authorization card (Prior Auth (Patient App).fig, Oct 2026) ----
   Tag colors are transcribed from the file. They are STATUS semantics, not brand,
   so they stay literal rather than running through --c-primary — the one exception
   is .is-approved, which is Wheel Green and gets re-pointed under .rebrand-scope. */
.rx2-pa-card {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(34,34,34,0.1), 0 1px 2px rgba(34,34,34,0.08);
  overflow: hidden;
}
.rx2-pa-head {
  padding: 20px 24px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
  color: #222222;
  border-bottom: 1px solid var(--c-border);
}
.rx2-pa-body { display:flex; flex-direction:column; align-items:flex-start; gap:20px; padding: 20px 24px; }
.rx2-pa-tag {
  display:inline-flex; align-items:center; gap:10px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 16px; line-height: 1.4; letter-spacing: 0.234px;
}
.rx2-pa-tag svg { flex:0 0 auto; }
.rx2-pa-tag.is-preparing { background:#E3E3E3; color:#222222; }
.rx2-pa-tag.is-preparing svg { color:#545454; }
.rx2-pa-tag.is-submitted { background:#D9E8FF; color:#125BC9; }
.rx2-pa-tag.is-approved  { background:#E1E8DF; color:#2E4F25; }
.rx2-pa-tag.is-denied    { background:#F2DCDC; color:#4F0000; }
.rx2-pa-tag.is-denied svg { color:#E10247; }
.rx2-pa-copy {
  margin: 0; max-width: 60ch;
  font-size: 15px; line-height: 20px; font-weight: 500; color: #222222;
  white-space: pre-line; text-wrap: pretty;
}
.rx2-pa-actions { display:flex; flex-wrap:wrap; align-items:center; gap:16px; }
.rx2-pa-dest { font-size: var(--t-sm); color: var(--n-ink-3); }
.rx2-progress-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 20px; }
.rx2-progress-title { font-weight: var(--w-bold); font-size: var(--t-md); color:var(--n-ink); }
.rx2-progress-meta { font-size: var(--t-sm); color:var(--n-ink-3); margin-top:2px; }
.rx2-phone-btn { flex:0 0 44px; width:44px; height:44px; border-radius:50%; border:1px solid var(--c-border); background:#fff; color:var(--c-primary); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
.rx2-phone-btn:hover { background:var(--c-soft); }
.rx2-progress-body { display:flex; flex-direction:column; gap:14px; padding:0 20px 20px; }

/* Notifications + help */
.rx2-section { display:flex; flex-direction:column; gap:10px; }
.rx2-section .h3 { margin:0; }
.rx2-notif-row { display:flex; align-items:center; justify-content:space-between; gap:16px; font-size: var(--t-sm); color:var(--n-ink); }
.rx2-switch { width:44px; height:26px; border-radius: var(--r-pill); border:none; background:#C9CFC3; position:relative; cursor:pointer; transition:background .15s; padding:0; }
.rx2-switch.is-on { background:var(--c-primary); }
.rx2-switch-knob { position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; transition:left .15s; box-shadow:0 1px 2px rgba(0,0,0,.2); }
.rx2-switch.is-on .rx2-switch-knob { left:21px; }
.rx2-help { font-size: var(--t-sm); line-height:1.6; color:#4A5046; margin:0; }
.rx2-help-link { font-size:inherit; }

/* Drawer */
.rx2-scrim { position:fixed; inset:0; background:rgba(26,34,28,.45); z-index:60; display:flex; justify-content:flex-end; animation:rx2fade .2s ease; }
@keyframes rx2fade { from { opacity:0; } }
.rx2-drawer { width:min(520px, 92vw); height:100%; background:#fff; box-shadow:-8px 0 32px rgba(26,34,28,.18); display:flex; flex-direction:column; animation:rx2slide .25s ease; }
@keyframes rx2slide { from { transform:translateX(40px); opacity:0; } }
.rx2-drawer-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:22px 24px 18px; border-bottom:1px solid var(--c-border); }
.rx2-drawer-title { font-weight: var(--w-bold); font-size: var(--t-lg); color:var(--n-ink); }
.rx2-drawer-sub { font-size: var(--t-sm); color:var(--n-ink-3); margin-top:4px; line-height:1.5; }
.rx2-drawer-x { flex:0 0 auto; background:none; border:none; font-size: var(--t-md); color:var(--n-ink-3); cursor:pointer; padding:4px; line-height:1; }
.rx2-drawer-body { flex:1; overflow-y:auto; padding:20px 24px; display:flex; flex-direction:column; gap:18px; }
.rx2-partner { display:flex; gap:14px; align-items:center; }
.rx2-partner-icon { flex:0 0 44px; width:44px; height:44px; border-radius: var(--r-lg); background:var(--c-soft); color:var(--c-primary); display:inline-flex; align-items:center; justify-content:center; }
.rx2-partner-name { font-weight: var(--w-bold); font-size: var(--t-md); color:var(--n-ink); }
.rx2-partner-meta { font-size: var(--t-sm); color:var(--n-ink-3); margin-top:2px; }
.rx2-next-title { font-weight: var(--w-bold); font-size: var(--t-md); color:var(--n-ink); margin-bottom:10px; }
.rx2-next-list { margin:0; padding-left:20px; display:flex; flex-direction:column; gap:12px; font-size: var(--t-sm); line-height:1.55; color:#4A5046; }
.rx2-next-list strong { color:var(--n-ink); }
.rx2-drawer-foot { padding:16px 24px 20px; border-top:1px solid var(--c-border); box-shadow:0 -4px 16px rgba(26,34,28,.06); }

/* CTA */
.rx2-card .cta:disabled { opacity:.5; cursor:default; }