/* Sandbox-parity account screens (account-screens.jsx) — all selectors .ac- */

/* Toast banner (top-center, sandbox style) */
.ac-toast { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 90000; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--c-border, var(--n-line)); border-radius: var(--r-lg); padding: 11px 14px; box-shadow: 0 8px 28px rgba(26,34,28,.16); font-size: var(--t-sm); color: var(--c-text, var(--n-ink)); animation: acToastIn .22s ease; max-width: min(480px, 90vw); }
@keyframes acToastIn { from { opacity: 0; transform: translate(-50%, -8px); } }
.ac-toast-icon { display: inline-flex; flex: 0 0 auto; }
.ac-toast-success .ac-toast-icon { color: #2E7D4F; }
.ac-toast-info .ac-toast-icon { color: #4F83D1; }
.ac-toast-text { font-weight: var(--w-semi); }
.ac-toast-x { flex: 0 0 auto; background: none; border: none; color: #8A8F85; font-size: var(--t-xs); cursor: pointer; padding: 2px 4px; }
.ac-toast-x:hover { color: var(--n-ink); }

/* Modals */
.ac-modal-bg { position: fixed; inset: 0; background: rgba(26,34,28,.45); z-index: 70; display: flex; align-items: center; justify-content: center; padding: 24px; animation: acFade .18s ease; }
@keyframes acFade { from { opacity: 0; } }
.ac-modal { width: min(440px, 94vw); max-height: 86vh; overflow-y: auto; background: #fff; border-radius: var(--r-xl); padding: 22px 24px 24px; box-shadow: 0 24px 64px rgba(26,34,28,.28); animation: acPop .2s ease; }
.ac-modal-wide { width: min(540px, 94vw); }
@keyframes acPop { from { opacity: 0; transform: translateY(10px); } }
.ac-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.ac-modal-title { margin: 0; font-size: var(--t-lg); font-weight: var(--w-bold); color: var(--c-text, var(--n-ink)); }
.ac-modal-x { flex: 0 0 auto; background: none; border: none; color: #8A8F85; font-size: var(--t-sm); cursor: pointer; padding: 4px; }
.ac-modal-x:hover { color: var(--n-ink); }
.ac-modal-body { font-size: var(--t-sm); line-height: 1.6; color: #4A5046; margin: 0 0 16px; }
.ac-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.ac-modal-actions .btn { font-size: var(--t-sm); padding: 11px 20px; }
.ac-modal-actions-col { flex-direction: column; align-items: stretch; text-align: center; }
.ac-btn-danger { background: #B5443A; }
.ac-btn-danger:hover { background: #9C382F; }

/* Forms inside modals */
.ac-form { display: flex; flex-direction: column; gap: 12px; }
.ac-form .field { margin: 0; }
.ac-form-row3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.ac-note { font-size: var(--t-sm); color: #2D6A4F; margin-top: 10px; }

/* Info banner (address modal) */
.ac-infobar { display: flex; gap: 10px; background: #EEF4FB; color: #2A4365; border-radius: var(--r-md); padding: 12px 14px; font-size: var(--t-sm); line-height: 1.55; margin-bottom: 16px; }
.ac-infobar-icon { flex: 0 0 auto; color: #4F83D1; margin-top: 2px; }
.ac-infobar-title { font-weight: var(--w-bold); margin-bottom: 3px; }

/* Profile page */
.ac-identity { margin-top: 6px; }
.ac-identity-name { font-size: var(--t-md); font-weight: var(--w-bold); color: var(--c-text, var(--n-ink)); margin-bottom: 8px; }
.ac-identity-note { font-size: var(--t-sm); color: var(--n-ink-3); margin: 10px 0 0; }
.ac-inline-link { font-size: inherit; }
.ac-hr { height: 1px; background: var(--c-border, var(--n-line)); margin: 20px 0; }
.ac-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ac-sec-head .h3 { margin: 0; }
.ac-kv { display: flex; gap: 10px; font-size: var(--t-sm); padding: 4px 0; color: var(--c-text, var(--n-ink)); }
.ac-kv-k { color: var(--n-ink-3); min-width: 150px; }
.ac-addr { font-size: var(--t-sm); line-height: 1.6; color: var(--c-text, var(--n-ink)); }

/* Notifications */
.ac-notif-row { display: flex; align-items: center; gap: 12px; padding: 14px 0 4px; font-size: var(--t-md); }
.ac-notif-label { flex: 1; font-weight: var(--w-semi); color: var(--c-text, var(--n-ink)); }
.ac-notif-state { color: var(--n-ink-3); font-size: var(--t-sm); }

/* Payment methods */
.ac-card-row { display: flex; align-items: center; gap: 14px; border: 1px solid var(--c-border, var(--n-line)); border-radius: var(--r-lg); padding: 16px; }
.ac-card-icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--c-soft, var(--n-canvas)); color: var(--c-primary); display: inline-flex; align-items: center; justify-content: center; }
.ac-card-body { flex: 1; }
.ac-card-num { font-weight: var(--w-bold); font-size: var(--t-md); letter-spacing: .04em; }
.ac-card-exp { font-size: var(--t-sm); color: var(--n-ink-3); margin-top: 2px; }

/* Empty states (Prescriptions / Visit history / Payments) */
.ac-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 44px 20px 36px; }
.ac-empty-title { font-size: var(--t-md); font-weight: var(--w-bold); color: var(--c-text, var(--n-ink)); }
.ac-empty-sub { font-size: var(--t-sm); color: var(--n-ink-3); margin: 0 0 10px; max-width: 360px; line-height: 1.55; }

/* Embedded Help Center */
.ac-help-wrap { display: flex; flex-direction: column; height: 100vh; background: var(--c-bg); }
.ac-help-bar { flex: 0 0 auto; display: flex; align-items: center; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--c-border, var(--n-line)); }
.ac-help-back { background: none; border: none; font-family: inherit; font-size: var(--t-sm); font-weight: var(--w-semi); color: var(--c-primary); cursor: pointer; padding: 6px 8px; border-radius: var(--r-md); }
.ac-help-back:hover { background: var(--c-soft, var(--n-canvas)); }
.ac-help-frame { flex: 1; width: 100%; border: none; }

/* Sidebar "Your care" heading as a link */
/* The 8px left is the alignment: this button IS the "Your care" heading, and it has to start on the
   same x as the row labels under it. account.css loads after styles-patient.css, so a shorthand
   here overrides the shared rule's indent — which is exactly how the heading ended up flush at 0. */
.sidenav-heading-link { background: none; border: none; padding: 6px 12px 10px var(--s-2); font-family: inherit; cursor: pointer; }

/* "Almost there" progressive onboarding (wheel-only) */
.ac-step { margin-top: 18px; animation: acStepIn .25s ease; }
@keyframes acStepIn { from { opacity: 0; transform: translateY(6px); } }
.ac-step-head { display: flex; align-items: center; gap: 8px; }
.ac-step-head .h3 { margin: 0; }
.ac-step-check { color: #2E7D4F; display: inline-flex; }
.ac-step-sub { font-size: var(--t-sm); color: var(--n-ink-3); margin: 4px 0 10px; }