/* ============================================================================
   ACCOUNT + AUTH REDESIGN (2026-06)
   Self-contained stylesheet for the login, register, my-account, my-profile,
   my-orders and my-address pages. Loaded per-page via @section('css') AFTER
   style.css, so it wins the cascade. Two namespaces:

     .auth-*     -> login / register (brand-new markup, zero leak risk)
     .acct-page  -> account area  (added next to the SHARED `.my-account`
                    class so every restyle is scoped and cannot leak to the
                    checkout / quote / cart pages that also use `.my-account`)

   Matches the homepage "calm card" system: amber #E89A0E + charcoal #16181d,
   18px radius, hairline #f0f1f3, soft shadows, Poppins.
   Design tokens are declared on the wrappers (NOT :root) to avoid leaking.
============================================================================ */

.auth-wrap,
.acct-page,
#lost-password {
    --ink: #16181d;
    --ink-2: #2c3e50;
    --muted: #6b7280;
    --muted-2: #9aa1ab;
    --amber: #e89a0e;
    --amber-2: #f4b743;
    --amber-dk: #9a6408;
    --line: #f0f1f3;
    --line-2: #e6e8ec;
    --bg-soft: #f6f7f9;
    --plinth: linear-gradient(160deg, #fafbfc, #f4f6f8);
    --danger: #dc2626;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px rgba(22, 24, 29, 0.06), 0 2px 8px rgba(22, 24, 29, 0.04);
    --shadow-lg: 0 20px 48px rgba(22, 24, 29, 0.12);
    font-family: "Poppins", sans-serif;
}

/* ===========================================================================
   AUTH (LOGIN / REGISTER)
=========================================================================== */
.auth-wrap {
    background: var(--bg-soft);
    padding: 56px 16px 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 980px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    overflow: hidden;
}

/* ---- Left: form panel ---- */
.auth-form {
    padding: 48px 46px;
}

.auth-eyebrow {
    display: inline-block;
    background: rgba(232, 154, 14, 0.12);
    color: var(--amber-dk);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 6px 13px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.auth-title {
    font-size: clamp(24px, 2.4vw, 30px);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 0 0 6px;
}

.auth-sub {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 26px;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 7px;
}

.auth-field label .req {
    color: var(--danger);
}

.auth-input {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid var(--line-2);
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-family: inherit;
    color: var(--ink);
    background: #fcfcfd;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    -moz-appearance: textfield;
}

.auth-input::placeholder {
    color: var(--muted);
    opacity: 1;
}

.auth-input:focus {
    border-color: var(--amber);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(232, 154, 14, 0.14);
}

.auth-input::-webkit-outer-spin-button,
.auth-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* keep autofill on-brand instead of pale blue/yellow */
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--ink);
    box-shadow: 0 0 0 1000px #fff inset, 0 0 0 4px rgba(232, 154, 14, 0.14);
}

/* password field + show/hide eye */
.auth-pass {
    position: relative;
}

.auth-pass .auth-input {
    padding-right: 46px;
}

.auth-eye {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--muted-2);
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.auth-eye:hover {
    color: var(--ink);
    background: var(--line);
}

.auth-eye .eye-off {
    display: none;
}

.auth-eye.is-on .eye-on {
    display: none;
}

.auth-eye.is-on .eye-off {
    display: block;
}

.auth-err {
    display: block;
    color: var(--danger);
    font-size: 12.5px;
    margin-top: 5px;
}

.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* primary submit — amber gradient, dark text (WCAG AA) */
.auth-btn {
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    border: 0;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--amber), var(--amber-2));
    color: var(--ink);
    font-size: 14.5px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(232, 154, 14, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 12px 26px rgba(232, 154, 14, 0.36);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.auth-link {
    color: var(--amber-dk);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #7a4f06;
}

.auth-link--muted {
    color: var(--muted);
    font-weight: 500;
}

.auth-foot {
    margin-top: 18px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

.auth-foot a {
    color: var(--amber-dk);
    font-weight: 600;
    text-decoration: none;
}

.auth-foot a:hover {
    color: #7a4f06;
}

/* ---- Right: dark brand / benefits panel ---- */
.auth-aside {
    position: relative;
    overflow: hidden;
    background: #16181d;
    color: #fff;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 120% at 85% 0%, rgba(232, 154, 14, 0.20), transparent 55%);
    pointer-events: none;
}

.auth-aside .ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(232, 154, 14, 0.18);
    pointer-events: none;
}

.auth-aside .ring-1 {
    width: 230px;
    height: 230px;
    bottom: -70px;
    right: -70px;
}

.auth-aside .ring-2 {
    width: 150px;
    height: 150px;
    bottom: -28px;
    right: -28px;
    border-color: rgba(232, 154, 14, 0.12);
}

.auth-aside__inner {
    position: relative;
    z-index: 1;
}

.auth-aside__bar {
    width: 38px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--amber), var(--amber-2));
    margin-bottom: 20px;
}

.auth-aside__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.28;
    margin: 0 0 10px;
    color: #fff;
}

.auth-aside__sub {
    color: rgba(255, 255, 255, 0.62);
    font-size: 13.5px;
    line-height: 1.65;
    margin: 0 0 24px;
}

.auth-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13.5px;
}

.auth-benefits .tick {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 154, 14, 0.18);
    border: 1px solid rgba(232, 154, 14, 0.45);
    color: var(--amber-2);
}

.auth-aside__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 12px 22px;
    border: 1.5px solid rgba(232, 154, 14, 0.55);
    border-radius: var(--radius-sm);
    color: var(--amber-2);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.auth-aside__cta:hover {
    background: rgba(232, 154, 14, 0.14);
    border-color: var(--amber);
    color: #fff;
}

/* ---- Forgot-password modal ---- */
#lost-password .modal-content {
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(22, 24, 29, 0.28);
}

.auth-modal__head {
    background: #16181d;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--amber);
}

.auth-modal__head h2 {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}

.auth-modal__body {
    padding: 22px;
    background: #fff;
}

.auth-modal__body p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0 0 14px;
}

.auth-modal__foot {
    padding: 0 22px 20px;
    background: #fff;
}

.forgot-alert {
    display: none;
    background: #fff8ed;
    border-left: 3px solid var(--amber);
    border-radius: 8px;
    padding: 11px 14px;
    margin-bottom: 14px;
    position: relative;
}

.forgot-alert .alert-text {
    color: var(--amber-dk);
    font-size: 13px;
}

.forgot-alert .close-forgot-alert {
    position: absolute;
    right: 10px;
    top: 7px;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

/* responsive – auth */
@media (max-width: 860px) {
    .auth-card {
        grid-template-columns: 1fr;
        max-width: 520px;
        border-radius: 18px;
    }

    .auth-aside {
        order: 2;
        padding: 38px 30px;
    }

    .auth-form {
        padding: 38px 30px;
    }

    .auth-aside .ring-1,
    .auth-aside .ring-2 {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-wrap {
        padding: 30px 12px 40px;
    }

    .auth-form,
    .auth-aside {
        padding: 30px 20px;
    }

    .auth-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ===========================================================================
   ACCOUNT AREA  (scoped under .acct-page so it never leaks to checkout/quote)
=========================================================================== */
.acct-page {
    background: var(--bg-soft);
    padding-top: 16px;
    padding-bottom: 56px;
}

.acct-page .container {
    max-width: 1100px;
}

/* ---- Account header (avatar + greeting + logout) ---- */
.acct-page .user-logout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 26px;
    margin-bottom: 26px;
}

.acct-page .user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
}

.acct-page .user-info img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0;
    background: var(--plinth);
    padding: 3px;
    border: 2px solid rgba(232, 154, 14, 0.4);
}

.acct-page .user-info > div > div {
    font-size: 13px;
    color: var(--muted);
}

.acct-page .user-info h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin: 2px 0 0;
    line-height: 1.1;
}

.acct-page .user-logout > div:last-child a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border: 1.5px solid var(--line-2);
    border-radius: 999px;
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.acct-page .user-logout > div:last-child a:hover {
    border-color: var(--amber);
    color: var(--amber-dk);
    background: rgba(232, 154, 14, 0.07);
}

/* ---- Section sub-heading ---- */
.acct-page .my-account-subhead {
    margin-bottom: 8px;
}

.acct-page .my-account-subhead .title {
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin: 0 0 6px;
}

.acct-page .my-account-subhead p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 680px;
    margin: 0;
}

/* ---- Account tabs (Profile / Addresses / Orders) ---- */
.acct-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 4px;
    border-bottom: 1px solid var(--line-2);
    padding-bottom: 0;
}

.acct-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    border-radius: 10px 10px 0 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.acct-tab svg {
    width: 17px;
    height: 17px;
}

.acct-tab:hover {
    color: var(--ink);
    background: rgba(232, 154, 14, 0.06);
}

.acct-tab.is-active {
    color: var(--ink);
    border-bottom-color: var(--amber);
}

/* ---- Dashboard nav cards (account-grid) ---- */
.acct-page .account-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 28px 0 8px;
}

.acct-page .account-grid > a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    grid-template-columns: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 24px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.acct-page .account-grid > a:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--line-2);
}

.acct-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 154, 14, 0.12);
    color: var(--amber-dk);
    margin-bottom: 18px;
    transition: background 0.22s ease, color 0.22s ease;
}

.acct-icon svg {
    width: 26px;
    height: 26px;
}

.acct-page .account-grid > a:hover .acct-icon {
    background: linear-gradient(135deg, var(--amber), var(--amber-2));
    color: var(--ink);
}

.acct-page .account-grid .title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 8px;
}

.acct-page .account-grid > a p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0 0 16px;
}

.acct-arrow {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--amber-dk);
}

.acct-arrow svg {
    width: 16px;
    height: 16px;
    transition: transform 0.22s ease;
}

.acct-page .account-grid > a:hover .acct-arrow svg {
    transform: translateX(4px);
}

/* ---- Profile / settings card ---- */
.acct-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px 30px 32px;
    margin-top: 22px;
    max-width: 820px;
}

.acct-card__head {
    margin-bottom: 22px;
}

.acct-card__head h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 5px;
}

.acct-card__head p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0;
}

.acct-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 22px;
}

.acct-field {
    display: flex;
    flex-direction: column;
}

.acct-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 7px;
    opacity: 1;
}

.acct-field input,
.acct-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line-2);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--ink);
    background: #fcfcfd;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.acct-field input::placeholder {
    color: var(--muted);
    opacity: 1;
}

.acct-field input:focus,
.acct-field select:focus {
    border-color: var(--amber);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(232, 154, 14, 0.14);
}

.acct-field .text-danger,
.acct-field small {
    color: var(--danger);
    font-size: 12.5px;
    margin-top: 5px;
}

.acct-divider {
    height: 1px;
    background: var(--line-2);
    border: 0;
    margin: 24px 0;
}

.acct-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 26px;
}

.acct-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.acct-btn--primary {
    background: linear-gradient(135deg, var(--amber), var(--amber-2));
    color: var(--ink);
    box-shadow: 0 8px 20px rgba(232, 154, 14, 0.26);
}

.acct-btn--primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 12px 26px rgba(232, 154, 14, 0.34);
    color: var(--ink);
}

.acct-btn--ghost {
    background: #fff;
    border-color: var(--line-2);
    color: var(--ink-2);
}

.acct-btn--ghost:hover {
    border-color: var(--amber);
    color: var(--amber-dk);
    background: rgba(232, 154, 14, 0.06);
}

/* success / info alert */
.acct-page .alert-success {
    background: #ecfdf3;
    border: 1px solid #abefc6;
    color: #067647;
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 14px;
    margin-bottom: 22px;
}

/* ---- Orders ---- */
.acct-page .order-info {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    margin-top: 20px;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.acct-page .my-orders-list:hover .order-info {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--line-2);
}

.acct-page .order-info-head {
    font-size: 13.5px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(160deg, #fafbfc, #f6f7f9);
}

.acct-page .order-info-head span {
    color: var(--ink);
    font-weight: 600;
}

.acct-page .order-info-status {
    padding: 14px 20px 0;
}

.acct-page .order-info-badge {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 12px;
    border-radius: 999px;
    background: var(--line);
}

.acct-page .order-info-badge span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--muted-2);
    margin-top: 0;
    flex: 0 0 auto;
}

.acct-page .order-info-badge .delivered {
    background: #16a34a;
}

.acct-page .order-info-badge .pending,
.acct-page .order-info-badge .processing {
    background: var(--amber);
}

.acct-page .order-info-badge .cancelled {
    background: var(--danger);
}

.acct-page .order-info-body {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 20px;
    padding: 18px 20px;
    align-items: center;
}

.acct-page .order-info-body > div:first-child img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    background: var(--plinth);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 6px;
}

.acct-page .order-info-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.acct-page .order-info-body p {
    font-size: 13.5px;
    color: var(--muted);
}

.acct-page .order-info-total {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

.acct-page .order-info-amount {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin-top: 4px;
}

.acct-page .order-info-footer {
    border-top: 1px solid var(--line) !important;
    background: #fafbfc;
}

.order-invoice-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--amber-dk);
    text-decoration: none;
    border: 1.5px solid rgba(232, 154, 14, 0.5);
    border-radius: 999px;
    transition: all 0.2s ease;
}

.order-invoice-link:hover {
    background: rgba(232, 154, 14, 0.1);
    border-color: var(--amber);
    color: var(--amber-dk);
    text-decoration: none;
}

/* ---- Addresses ---- */
.acct-page .address-book {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    margin-top: 24px;
}

.acct-page .address-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.acct-page .address-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.acct-page .address-card-title {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    min-height: 54px;
    background: linear-gradient(160deg, #fafbfc, #f6f7f9);
}

.acct-page .selected-address {
    font-weight: 600;
    color: var(--ink);
    font-size: 14px;
}

.acct-page .address-card-title span.icon-check {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--amber), var(--amber-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.acct-page .address-card-title span.icon-check:before {
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.acct-page .address-card-body {
    padding: 20px 22px 14px;
}

.acct-page .address-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}

.acct-page .address-card-body p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.55;
}

.acct-page .address-card-footer {
    padding: 0 22px 18px;
    display: flex;
    gap: 18px;
    align-items: center;
}

.acct-page .address-card-footer a,
.acct-page .address-card-footer button {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--amber-dk) !important;
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 4px 0 !important;
    transition: color 0.2s ease;
}

.acct-page .address-card-footer a:hover,
.acct-page .address-card-footer button:hover {
    color: var(--ink) !important;
}

/* address add/edit form — light restyle of the shared partial, scoped */
.acct-page .address-form.box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 26px 28px;
}

.acct-page .address-form input,
.acct-page .address-form select {
    border: 1.5px solid var(--line-2);
    border-radius: 10px;
    background: #fcfcfd;
    padding: 11px 13px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.acct-page .address-form input:focus,
.acct-page .address-form select:focus {
    border-color: var(--amber);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(232, 154, 14, 0.12);
    outline: none;
}

.acct-page .no-address-message,
.acct-page .box {
    border-radius: var(--radius);
}

/* responsive – account */
@media (max-width: 880px) {
    .acct-page .account-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .acct-page .order-info-body {
        grid-template-columns: 72px 1fr;
        gap: 14px;
    }

    .acct-page .order-info-body > div:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .acct-page .account-grid {
        grid-template-columns: 1fr;
    }

    .acct-card,
    .acct-page .address-form.box {
        padding: 24px 20px;
    }

    .acct-field-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .acct-page .user-logout {
        padding: 20px;
    }
}

/* ===========================================================================
   ACCESSIBILITY — visible keyboard focus
   The site-wide `*:focus { outline: none !important; }` (variables.css) wipes
   focus rings, so every interactive control needs an !important :focus-visible
   ring to remain keyboard-accessible (WCAG 2.4.7). Inputs already keep their
   amber box-shadow ring (it survives the outline-only reset).
=========================================================================== */
.auth-btn:focus-visible,
.auth-eye:focus-visible,
.auth-link:focus-visible,
.auth-foot a:focus-visible,
.auth-aside__cta:focus-visible,
#lost-password .btn-close:focus-visible,
.acct-tab:focus-visible,
.acct-btn:focus-visible,
.acct-page .user-logout > div:last-child a:focus-visible,
.acct-page .account-grid > a:focus-visible,
.order-invoice-link:focus-visible,
.acct-page .address-card-footer a:focus-visible,
.acct-page .address-card-footer button:focus-visible,
.acct-page .address-form .btn:focus-visible {
    outline: 2px solid var(--amber-dk) !important;
    outline-offset: 2px;
    border-radius: inherit;
}

/* ===========================================================================
   ADDRESS FORM — bring the shared partial's legacy buttons + default-toggle
   onto the calm-card system (scoped to .acct-page so checkout/quote/cart,
   which use other partials, are untouched).
=========================================================================== */
.acct-page .address-form .btn.btn-secondary {
    background: linear-gradient(135deg, var(--amber), var(--amber-2));
    color: var(--ink);
    border: 0;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 20px rgba(232, 154, 14, 0.26);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.acct-page .address-form .btn.btn-secondary:hover {
    background: linear-gradient(135deg, var(--amber), var(--amber-2));
    color: var(--ink);
    border: 0;
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 12px 26px rgba(232, 154, 14, 0.34);
}

.acct-page #add-new-address.btn,
.acct-page .address-form #cancel-address-form.btn {
    background: #fff;
    border: 1.5px solid var(--line-2);
    color: var(--ink-2);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.acct-page #add-new-address.btn:hover,
.acct-page .address-form #cancel-address-form.btn:hover {
    border-color: var(--amber);
    color: var(--amber-dk);
    background: rgba(232, 154, 14, 0.06);
}

/* "Set as Default" toggle — recolour the checked state amber (was green) */
.acct-page .address-card .switch input:checked + .switch-slider {
    background: var(--amber);
}
