/*
 * page-account.css
 * Styles for the customer account + auth views (auth/*, account/*).
 * Loaded via <link> in each of those views, matching the established
 * page-support.css / queuemanager.css pattern.
 *
 * Deliberately restrained: the storefront is themed per photographer via
 * theme-*.css, and these pages sit inside template_login, so anything that
 * hardcodes a brand colour would fight the theme. What is here is layout,
 * spacing and the few components Bootstrap does not provide (the recovery-code
 * grid, the QR panel, the session list).
 *
 * TWO SHELLS LIVE HERE. The auth/* pages (sign in, sign up, reset, MFA) render
 * inside the SUPPORT shell — .sup-shell, the persistent rail, .sup-dash-card —
 * so their rules below are written against that vocabulary and reuse
 * page-support.css for the chrome. The account/* and memories/* pages still use
 * the older standalone .acctx-card. Don't merge the two without converting both.
 */

/* ===================================================================
   auth/* inside the support shell (2026-09-15)
   -------------------------------------------------------------------
   /auth/login is a 75 / 25 split at lg+: create-an-account leads, sign-in
   sits beside it complete rather than as a link to a second page. The
   other auth pages are a single narrow panel in the same vocabulary.
   Colour comes from the theme (--accent-orange, --font-light-color); the
   muted greys match page-support.css because the cards are light
   surfaces in both modes, exactly as the support cards are.
   =================================================================== */

.acctx-panel { margin-bottom: 22px; }
/* A lone form panel on a 900px column still shouldn't run edge to edge. */
.acctx-panel--narrow { max-width: 560px; margin-left: auto; margin-right: auto; }

.acctx-h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--font-light-color);
    margin-bottom: 6px;
}
.acctx-h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--font-light-color);
    margin-bottom: 6px;
}
.acctx-lede { color: #6c757d; margin-bottom: 18px; }
.acctx-optional { color: #6c757d; font-weight: 400; }

/* Mobile-only jump to the sign-in panel. The columns stack create-first, so
   without this a returning customer scrolls past a form they don't want. */
.acctx-jump { margin-bottom: 14px; text-align: center; }
.acctx-jump a {
    color: var(--accent-orange);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
}
.acctx-jump a:hover, .acctx-jump a:focus-visible { text-decoration: underline; }

/* --- Why create an account -------------------------------------------- */

.acctx-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}
.acctx-perk {
    display: grid;
    grid-template-columns: 38px 1fr;
    grid-template-areas: "icon title" "icon desc";
    column-gap: 12px;
    row-gap: 2px;
    align-items: start;
}
.acctx-perk-icon {
    grid-area: icon;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    color: var(--accent-orange);
    background: var(--bg-light-secondary);
    background: color-mix(in srgb, var(--accent-orange) 14%, transparent);
}
.acctx-perk-icon i { color: inherit; }
.acctx-perk-title { grid-area: title; font-weight: 700; color: var(--font-light-color); line-height: 1.25; }
.acctx-perk-desc  { grid-area: desc;  font-size: 0.85rem; color: #6c757d; line-height: 1.35; }

/* --- Forms ------------------------------------------------------------- */

/* Mirrors .sup-form's field treatment without its 520px cap, because the
   create-account form is a two-across grid on the wide column. */
.acctx-form .form-label { font-weight: 600; color: var(--font-light-color); margin-bottom: 4px; }
.acctx-form .form-control {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    padding: 10px 14px;
}
.acctx-form .form-control:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.06);
    outline: none;
}
.acctx-form .form-check-input:checked {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
}
.acctx-form .form-check-label { color: var(--font-light-color); font-size: 0.9rem; }
.acctx-form-actions { margin-top: 20px; }

/* A form-submit styled as a link (the MFA "use a recovery code" flip, which has
   to POST to carry its flag). Replaces Bootstrap's .btn-link, whose fixed blue
   ignored the theme. */
.acctx-linkbutton {
    background: none;
    border: 0;
    padding: 0;
    color: var(--accent-orange);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.acctx-linkbutton:hover, .acctx-linkbutton:focus-visible { text-decoration: underline; }

/* --- Sign-in column ---------------------------------------------------- */

.acctx-signin .sup-btn { margin-top: 2px; }
.acctx-forgot { margin: 14px 0 0; font-size: 0.9rem; }
.acctx-forgot a { color: var(--accent-orange); text-decoration: none; font-weight: 600; }
.acctx-forgot a:hover, .acctx-forgot a:focus-visible { text-decoration: underline; }

/* The visual gap between "Sign In" and "Other options" is the point of the
   column: two separate offers, not one list. */
.acctx-other-label {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.acctx-otherlinks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.acctx-otherlinks a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin: 0 -10px;
    border-radius: 10px;
    color: var(--font-light-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
}
.acctx-otherlinks a i { width: 18px; text-align: center; flex: 0 0 auto; color: var(--accent-orange); }
.acctx-otherlinks a:hover,
.acctx-otherlinks a:focus-visible { background: var(--bg-light-secondary); color: var(--accent-orange); }

/* The split turns on at lg, but between lg and xl the rail (248px) has already
   taken its bite and a 25% column is only ~180px wide. The card's own 26px
   padding would leave about 128px for a text input, so it comes off here rather
   than changing the ratio the layout was asked for. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .acctx-signin.sup-dash-card { padding: 20px 16px; }
    .acctx-signin .sup-btn { padding-left: 12px; padding-right: 12px; }
    .acctx-otherlinks a { font-size: 0.85rem; padding: 7px 8px; margin: 0 -8px; }
}

/* --- "Check your email" confirmations ---------------------------------- */

.acctx-sent { text-align: center; }
.acctx-sent-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px; height: 68px;
    border-radius: 50%;
    font-size: 1.7rem;
    margin-bottom: 14px;
    color: var(--accent-orange);
    background: var(--bg-light-secondary);
    background: color-mix(in srgb, var(--accent-orange) 14%, transparent);
}
.acctx-sent-icon i { color: inherit; }

/* --- Footlinks inside a support card ----------------------------------- */

/* .acctx-footlinks also styles the old .acctx-card pages; these only add the
   separation the support card needs and the themed link colour. */
.sup-dash-card .acctx-footlinks {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.9rem;
    color: #6c757d;
}
.sup-dash-card .acctx-footlinks a { color: var(--accent-orange); font-weight: 600; }

/* --- Shared card shell (account/*, memories/*) ------------------------- */

.acctx-wrap {
    padding-bottom: 3rem;
}

.acctx-card {
    border: none;
    border-radius: 12px;
}

.acctx-card .card-body {
    padding: 2rem;
}

@media (max-width: 575.98px) {
    .acctx-card .card-body {
        padding: 1.25rem;
    }
}

.acctx-title {
    font-weight: 800;
    margin-bottom: .35rem;
}

.acctx-intro {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.acctx-footlinks {
    margin-top: 1.5rem;
    font-size: .925rem;
}

.acctx-footlinks a {
    text-decoration: none;
}

.acctx-footlinks a:hover,
.acctx-footlinks a:focus {
    text-decoration: underline;
}

/* --- Account sub-navigation -------------------------------------------- */

.acctx-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1.5rem;
}

.acctx-nav a {
    padding: .4rem .85rem;
    border-radius: 999px;
    border: 1px solid #dee2e6;
    color: #495057;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
}

.acctx-nav a:hover,
.acctx-nav a:focus {
    background: #f1f3f5;
}

/* aria-current="page" is the accessible signal; this is only its visual echo,
   so the two can never disagree. */
.acctx-nav a[aria-current="page"] {
    background: #212529;
    border-color: #212529;
    color: #fff;
}

/* --- Status / evidence blocks ------------------------------------------ */

.acctx-tile {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem 1.15rem;
    height: 100%;
}

.acctx-tile-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
    font-weight: 700;
    margin-bottom: .3rem;
}

.acctx-tile-value {
    font-size: 1.05rem;
    font-weight: 700;
    word-break: break-word;
}

.acctx-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.acctx-list li {
    padding: .75rem 0;
    border-bottom: 1px solid #f1f3f5;
}

.acctx-list li:last-child {
    border-bottom: none;
}

.acctx-meta {
    font-size: .85rem;
    color: #6c757d;
}

/* --- Two-step verification --------------------------------------------- */

.acctx-qr {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    display: inline-block;
}

.acctx-qr img {
    display: block;
    width: 200px;
    height: 200px;
    max-width: 100%;
}

/* The typed fallback for anyone who cannot scan a code — a screen-reader user,
   a desktop authenticator, a camera that will not focus. Never hide this. */
.acctx-secret {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.05rem;
    letter-spacing: .08em;
    word-break: break-all;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: .65rem .85rem;
    display: inline-block;
}

.acctx-codes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1rem;
    margin: 1rem 0;
}

@media (max-width: 575.98px) {
    .acctx-codes {
        grid-template-columns: 1fr;
    }
}

.acctx-codes span {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: .5rem .65rem;
    text-align: center;
    letter-spacing: .05em;
}

/* --- Messages sent to you ----------------------------------------------- */

/* One tappable row per message rather than a table: a table needs columns that
   only we care about (lane, message id) and collapses badly on the phone most
   of these are opened on. */
.acctx-msglist {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #e9ecef;
}

.acctx-msg + .acctx-msg {
    border-top: 1px solid #f1f3f5;
}

.acctx-msg-link {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem .25rem;
    color: inherit;
    text-decoration: none;
}

.acctx-msg-link:hover,
.acctx-msg-link:focus-visible {
    background: #f8f9fa;
    color: inherit;
    text-decoration: none;
}

.acctx-msg-icon {
    flex: 0 0 auto;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    background: #f1f3f5;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
}

.acctx-msg-main {
    flex: 1 1 auto;
    min-width: 0;
}

/* Two lines, then an ellipsis. A long subject or the opening of a text should
   give enough to recognise the message without pushing the next one off the
   screen. */
.acctx-msg-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

.acctx-msg-meta {
    display: block;
    font-size: .82rem;
    color: #6c757d;
    margin-top: .15rem;
}

.acctx-msg-chev {
    flex: 0 0 auto;
    color: #adb5bd;
    font-size: .8rem;
}

.acctx-pager {
    display: flex;
    align-items: center;
    font-size: .9rem;
}

.acctx-backlink {
    font-size: .9rem;
    margin-bottom: .75rem;
}

/* --- One message -------------------------------------------------------- */

.acctx-msg-heading {
    word-break: break-word;
    margin-bottom: 1rem;
}

.acctx-msg-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .75rem 1.25rem;
    margin: 0 0 1.25rem;
}

.acctx-msg-facts dt {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
    font-weight: 600;
}

.acctx-msg-facts dd {
    margin: 0;
    word-break: break-word;
}

/* The frame is white on purpose. An email was composed against an inbox
   background, and showing it over a themed storefront colour would misrepresent
   how it actually looked. */
.acctx-msg-frame {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.acctx-msg-frame iframe {
    display: block;
    width: 100%;
    height: 70vh;
    min-height: 320px;
    border: 0;
}

@media (max-width: 575.98px) {
    .acctx-msg-frame iframe {
        height: 60vh;
    }
}

/* --- Memory subscriptions (F22) ---------------------------------------- *
 *
 * Two surfaces share this block, because they share the card:
 *   memories/manage       — reached from the confirmation email, no login
 *   account/subscriptions — the same plans for someone who does have a login
 *
 * ⚠ NEUTRALS, NOT THEME TOKENS, FOR THE SAME REASON AS THE REST OF THIS FILE.
 *   These pages render inside template_login on Bootstrap's white .card. A
 *   var(--font-color) here resolves against the storefront's ACTIVE theme, so on
 *   a dark theme it would paint near-white text onto a white card — legible in
 *   whichever theme it was written against and invisible in the other. The
 *   themed half of this feature is .memory-offer-* in style.css, which does sit
 *   on the storefront's own canvas and is tokenised accordingly.
 */

.memory-manage-status {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 1rem;
    padding: .2rem .7rem;
    border-radius: 999px;
    border: 1px solid #e9ecef;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.memory-manage-status-ok      { background: #e8f6ec; border-color: #b7e0c2; color: #1c6b34; }
.memory-manage-status-warn    { background: #fdf3e2; border-color: #f0d6a4; color: #8a5a08; }
.memory-manage-status-ending  { background: #f4f4f6; border-color: #dcdce2; color: #4b4b57; }

.memory-manage-codes {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .02em;
}

.memory-manage-actions {
    margin: 0 0 1.75rem;
}

/* A promised price change, sitting under the price it replaces.
 *
 * ⚠ AMBER, NOT RED. This is notice of an ordinary change to a subscription the
 *   customer chose, given ahead of time — the same tone as "payment needed", not
 *   the tone of something being taken away. It is also never colour ALONE: the
 *   sentence says what changes and when, so the tint is emphasis and nothing
 *   more (WCAG 1.4.1). */
.memory-pending-price {
    padding: .5rem .7rem;
    border-radius: 6px;
    border: 1px solid #f0d6a4;
    background: #fdf3e2;
    color: #8a5a08;
    font-size: .8125rem;
    line-height: 1.45;
}

.memory-pending-price .fa {
    margin-right: .35rem;
}

/* --- Cancelling -------------------------------------------------------- *
 *
 * ⚠ THE DISCLOSURE IS THE WHOLE DELIBERATENESS GATE, AND IT IS NATIVE ON
 *   PURPOSE. A customer trying to STOP PAYING must never be blocked by
 *   JavaScript that failed to load, so there is no modal and no confirm() —
 *   <details> plus a required checkbox, both enforced by the browser alone. Do
 *   not "upgrade" this to a scripted dialog.
 */

.memory-manage-cancel {
    border-top: 1px solid #e9ecef;
    padding-top: 1.25rem;
}

.memory-manage-cancel > summary {
    cursor: pointer;
    font-size: .925rem;
    font-weight: 600;
    color: #6c757d;
}

.memory-manage-cancel > summary:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 3px;
    border-radius: 4px;
}

.memory-manage-note {
    margin: .85rem 0 1rem;
    font-size: .875rem;
    color: #6c757d;
}

.memory-manage-check {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin: 0 0 1rem;
    font-size: .9rem;
}

.memory-manage-check input {
    margin-top: .2rem;
    flex: 0 0 auto;
}

/* Outlined, not filled. The destructive action on this page should be findable
   and unmistakable without competing with "View my photos" for the eye. */
.memory-manage-danger {
    background: transparent;
    border: 1px solid #d23737;
    border-radius: 8px;
    padding: .45rem 1.1rem;
    font-weight: 600;
    color: #b62b2b;
}

.memory-manage-danger:hover,
.memory-manage-danger:focus {
    background: #d23737;
    color: #fff;
}

.memory-manage-danger:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 3px;
}

/* --- The /account list ------------------------------------------------- */

.memory-plan {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1rem;
}

.memory-plan-codes {
    margin: 0 0 .25rem;
    font-size: .95rem;
}

.memory-plan-codes strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .02em;
}

.memory-plan-terms {
    margin: 0 0 .75rem;
    font-size: .875rem;
    color: #6c757d;
}

.memory-plan-actions {
    margin: 0;
    font-size: .925rem;
}

@media (max-width: 575.98px) {
    .memory-plan {
        padding: .9rem 1rem;
    }
}

/* --- The why-step and the save offer (F22 Phase 7b) --------------------- *
 *
 * ⚠ SAME RULE AS THE DISCLOSURE ABOVE: nothing here needs JavaScript. The
 *   reason list is a native radio group with `required`, and the save offer is
 *   two ordinary forms. A customer trying to stop paying is never held up by a
 *   script that did not load.
 */

.memory-cancel-reasons {
    border: 0;
    margin: 0 0 1rem;
    padding: 0;
}

.memory-cancel-reasons > legend {
    float: none;
    width: auto;
    margin-bottom: .6rem;
}

/* --- The save offer screen --------------------------------------------- */

.memory-save-price {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    margin: 0 0 1.5rem;
    text-align: center;
}

.memory-save-was {
    margin: 0;
    font-size: .95rem;
    color: #6c757d;
}

.memory-save-now {
    margin: .15rem 0 .4rem;
    font-size: 1.5rem;
    line-height: 1.2;
}

.memory-save-terms {
    margin: 0;
    font-size: .85rem;
    color: #6c757d;
}

/* ⚠ THE TWO BUTTONS STACK, AND CANCEL IS NOT SMALLER OR GREYER THAN THE
 *   OFFER. It is the outlined destructive style the manage page already uses,
 *   at the same size — a customer who came here to leave must not have to hunt
 *   for the way out. */
.memory-save-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
    margin: 0 0 1.5rem;
}

.memory-save-actions .btn,
.memory-save-actions .memory-manage-danger {
    width: 100%;
}
