/* =========================================
   My Account — PoolRx
   ========================================= */

body.woocommerce-account .account-page-layout {
    padding: 0;
    min-height: 0;
    background: var(--color-background);
}

body.woocommerce-account .page-header-minimal { display: none; }

body.woocommerce-account .woocommerce {
    display: block;
    max-width: none;
    margin: 0;
    width: 100%;
}

body.woocommerce-account .woocommerce::before,
body.woocommerce-account .woocommerce::after { display: none; }

body.woocommerce-account .woocommerce > .woocommerce-notices-wrapper,
body.woocommerce-account .woocommerce > .woocommerce-message,
body.woocommerce-account .woocommerce > .woocommerce-info,
body.woocommerce-account .woocommerce > .woocommerce-error {
    max-width: none;
    margin: 1.5rem 0 0;
    padding-left: var(--gutter-left);
    padding-right: var(--gutter-right);
}

body.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-notices-wrapper,
body.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-message,
body.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-info,
body.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-error {
    position: relative;
    z-index: 3;
    max-width: 560px;
    margin: 1.25rem auto 0;
}

/* =========================================
   Auth split (login / register / lost password)
   ========================================= */
.account-auth {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: calc(100dvh - 120px);
    width: 100%;
}

.account-auth-brand {
    position: relative;
    background: var(--color-primary);
    color: #ffffff;
    border-right: 0;
    display: flex;
    align-items: center;
    padding: 4.5rem var(--gutter-right) 4.5rem var(--gutter-left);
    overflow: hidden;
}

.account-auth-glow { display: none; }

.account-auth-brand-inner { position: relative; z-index: 1; max-width: 520px; }

.account-kicker-light { color: rgba(255, 255, 255, 0.75); }

.account-auth-headline {
    font-size: clamp(2.4rem, 4.2vw, 4.4rem);
    font-weight: var(--font-weight-display);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.account-auth-sub {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
    max-width: 420px;
    margin-bottom: 2.5rem;
}

.account-auth-perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.account-auth-perks li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
}

.account-auth-perks i,
.account-auth-perks svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
    flex-shrink: 0;
}

.account-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
    background: #fff;
}

.account-auth-card { width: 100%; max-width: 440px; }

.account-auth-form-title {
    font-size: 2rem;
    font-weight: var(--font-weight-display);
    letter-spacing: -0.03em;
    margin-bottom: 1.75rem;
}

.account-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    background: transparent;
    border: 1px solid #e6e6e6;
    border-radius: 15px;
    padding: 0.3rem;
    margin-bottom: 2rem;
}

.account-tab {
    appearance: none;
    border: 0;
    background: transparent;
    border-radius: 15px;
    padding: 0.75rem 1rem;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.25s ease;
}

.account-tab.is-active {
    background: transparent;
    color: #111111;
    box-shadow: none;
    border: 1px solid #111111;
}

.account-auth .form-row { width: 100% !important; float: none !important; margin-bottom: 1.1rem; }
.account-auth .form-row-first,
.account-auth .form-row-last { width: 100% !important; float: none !important; }

.account-auth label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.45rem;
    color: var(--color-text);
}

.account-auth .input-text,
.account-form-card .input-text {
    width: 100%;
    border: 1px solid #e8e8ee;
    border-radius: 15px;
    padding: 0.95rem 1.1rem;
    font-family: var(--font-main);
    font-size: 1rem;
    background: #ffffff;
    min-height: 52px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.account-auth .input-text:focus,
.account-form-card .input-text:focus {
    outline: none;
    background: #fff;
    border-color: var(--color-primary);
    box-shadow: none;
}

.account-form-row-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.account-lost-link,
.account-back-login a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.account-lost-link:hover,
.account-back-login a:hover { text-decoration: underline; }

.account-auth .account-submit,
.account-auth .btn-blue {
    width: 100%;
    max-width: none;
    min-height: 52px;
    height: auto;
    margin-top: 0.75rem;
    padding: 0 1.65rem;
    font-size: 1rem;
    font-weight: 600;
    justify-content: center;
    gap: 0;
}

.account-form-hint {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 400;
    margin-top: 0.4rem;
}

.woocommerce-form-login__rememberme {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
}

.account-back-login { margin-top: 1.25rem; text-align: center; }

/* =========================================
   Logged-in shell
   ========================================= */
.account-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: calc(100dvh - 140px);
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 2.5rem var(--gutter-right) 5rem var(--gutter-left);
    gap: 2.5rem;
    align-items: start;
}

.account-sidebar {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    position: sticky;
    top: 7rem;
}

.account-profile {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 2rem;
    padding: 0;
}

.account-avatar {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: transparent;
    color: #111111;
    border: 1px solid #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.account-profile-name {
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--color-text);
    margin: 0;
    line-height: 1.3;
}

.account-profile-email {
    font-size: 0.78rem;
    color: #6b7280;
    margin: 0.15rem 0 0;
    word-break: break-all;
}

.account-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.account-nav-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.95rem;
    border-radius: 15px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.account-nav-icon { width: 18px; height: 18px; stroke-width: 1.8; flex-shrink: 0; }

.account-nav-list a:hover { background: transparent; color: var(--color-primary); }
.account-nav-list .is-active a,
.account-nav-list .is-active a:hover {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: none;
}

.woocommerce-MyAccount-navigation-link--customer-logout a { color: #6b7280; }
.woocommerce-MyAccount-navigation-link--customer-logout a:hover { color: #dc2626; background: transparent; }

.account-shop-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding: 0.85rem 0.95rem;
    border-radius: 15px;
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
    background: transparent;
    border: 1px solid #e6e6e6;
}

.account-shop-link:hover { background: transparent; border-color: #f6d311; color: #111111; }

.account-main {
    padding: 0;
    min-width: 0;
}

.account-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.account-hero { margin-bottom: 2rem; }

.account-hero-title {
    font-size: var(--commerce-title);
    font-weight: var(--font-weight-display);
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: 0.5rem;
}

.account-hero-copy {
    font-size: var(--commerce-copy);
    color: var(--color-text-muted);
    max-width: 520px;
}

.account-section-head { margin-bottom: 1.75rem; }
.account-section-head h2 {
    font-size: var(--commerce-title);
    font-weight: var(--font-weight-display);
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: 0.5rem;
}
.account-section-head p { color: var(--color-text-muted); margin: 0; }

.account-stats,
.account-quick-actions {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}
.account-stats { margin-bottom: 1rem; }
.account-stat-card { grid-column: span 4; }
.account-action { grid-column: span 3; }

.account-stat-card,
.account-card,
.account-order-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 15px;
    box-shadow: none;
    transition: border-color 0.2s ease;
}

.account-card:hover,
.account-order-card:hover {
    border-color: #f6d311;
}

.account-stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.35rem 1.4rem;
    text-decoration: none;
    border-color: var(--color-primary);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.account-stat-card:hover {
    transform: none;
    box-shadow: none;
    border-color: #f6d311;
}

.account-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.account-stat-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--color-text);
    line-height: 1;
}

.account-quick-actions { margin-bottom: 2rem; }

.account-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 1.1rem 1.15rem;
    border-radius: 15px;
    background: #ffffff;
    border: 1px solid #e6e6e6;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.88rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.account-action:hover { background: #ffffff; border-color: #f6d311; transform: none; }
.account-action-icon { width: 20px; height: 20px; color: var(--color-primary); }

.account-card {
    padding: 1.5rem 1.6rem;
}

.account-card + .account-card { margin-top: 1.25rem; }

.account-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.account-card-head h3 { font-size: 1.15rem; font-weight: 700; }
.account-card-head a {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.account-order-list { list-style: none; margin: 0; padding: 0; }
.account-order-list li + li { border-top: 1px solid #f3f4f6; }

.account-order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    text-decoration: none;
    color: inherit;
}

.account-order-id { font-weight: 700; margin: 0 0 0.2rem; }
.account-order-meta { font-size: 0.85rem; color: #6b7280; margin: 0; }
.account-order-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; }
.account-order-amount { font-weight: 800; letter-spacing: -0.02em; }

.account-status {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    border-radius: 15px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #ffffff;
    color: #111111;
    border: 1px solid #e6e6e6;
}

.account-status.is-completed,
.account-status.is-processing {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}
.account-status.is-hold,
.account-status.is-pending {
    background: #f6d311;
    color: var(--color-primary);
    border-color: #f6d311;
}
.account-status.is-cancelled {
    background: #ffffff;
    color: #6b7280;
    border-color: #e6e6e6;
}

/* Orders page */
.account-orders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.account-orders-empty { padding: 0.35rem 0 0.15rem; }
.account-orders-empty p { margin: 0 0 1rem; color: #6b7280; }

.account-order-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 0.35rem 1.15rem;
    align-items: center;
    padding: 1.1rem 1.2rem;
}
.account-order-thumb {
    grid-row: span 1;
    width: 76px;
    height: 76px;
    border-radius: 15px;
    border: 1px solid #e6e6e6;
    background: #f7f8fb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--color-primary);
}
.account-order-thumb img,
.account-order-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.account-order-copy { min-width: 0; }
.account-order-summary {
    margin: 0.15rem 0 0.2rem;
    font-size: 0.92rem;
    color: #111111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.account-order-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}
.account-order-side .account-order-amount {
    color: var(--color-primary);
    font-size: 1.05rem;
}
.account-order-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 0.95rem;
    border-radius: 15px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}
.account-order-view:hover {
    background: #f6d311;
    color: var(--color-primary);
}
.account-order-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
}
.account-order-link:hover { color: var(--color-primary); }

.account-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 0;
    padding: 1.5rem 1.35rem;
    border: 1px solid #e6e6e6;
    border-radius: 15px;
    background: #ffffff;
}
.account-empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 0 0.45rem;
    border: 1px solid #e6e6e6;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}
.account-empty h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.03em;
}
.account-empty p {
    margin: 0 0 0.85rem;
    max-width: 34rem;
    color: #6b7280;
    line-height: 1.55;
}
.account-empty .btn-blue,
.account-empty .exhibition-btn { margin-top: 0.15rem; }
.account-empty-icon svg { width: 22px; height: 22px; }

.account-main .woocommerce-info,
.account-main .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-message {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin: 0 0 1.25rem;
    padding: 1rem 1.15rem;
    background: #ffffff;
    border: 2px solid #f6d311;
    border-radius: 15px;
    color: #111111;
    line-height: 1.5;
}
.account-main .woocommerce-info > :not(a.button),
.account-main .woocommerce-message > :not(a.button),
.woocommerce-MyAccount-content .woocommerce-info > :not(a.button),
.woocommerce-MyAccount-content .woocommerce-message > :not(a.button) {
    flex: 1 1 auto;
    min-width: 0;
}
.account-main .woocommerce-info::before,
.account-main .woocommerce-message::before,
.woocommerce-MyAccount-content .woocommerce-info::before,
.woocommerce-MyAccount-content .woocommerce-message::before {
    display: none;
}
.account-main .woocommerce-info a.button,
.account-main .woocommerce-message a.button,
.woocommerce-MyAccount-content .woocommerce-info a.button,
.woocommerce-MyAccount-content .woocommerce-message a.button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    order: 2; /* WC often puts the button first in the DOM */
    width: auto;
    min-height: 44px;
    margin: 0 0 0 auto;
    padding: 0 1.15rem;
    border: 0;
    border-radius: 15px;
    background: var(--color-primary);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.account-main .woocommerce-info a.button:hover,
.account-main .woocommerce-message a.button:hover,
.woocommerce-MyAccount-content .woocommerce-info a.button:hover,
.woocommerce-MyAccount-content .woocommerce-message a.button:hover {
    background: #0f3d8c;
    color: #ffffff;
}

.account-address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

.account-address-card {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    min-height: 220px;
    padding: 1.35rem 1.4rem 1.45rem;
    transition: border-color 0.2s ease;
}

.account-address-card:hover {
    border-color: #f6d311;
}

.account-address-card-top {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.account-address-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    background: #f6f8ff;
    color: var(--color-primary);
    border: 1px solid #e6e6e6;
}

.account-address-icon svg {
    width: 20px;
    height: 20px;
}

.account-address-card-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.account-address-kicker {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.account-address-card-copy h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

.account-address-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 0.95rem;
    border-radius: 15px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.account-address-edit:hover {
    background: #f6d311;
    color: var(--color-primary);
}

.account-address-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1 1 auto;
}

.account-address-card address {
    margin: 0;
    font-style: normal;
    font-size: 0.98rem;
    line-height: 1.7;
    color: #374151;
}

.account-address-card address br + br {
    display: none;
}

.account-address-empty {
    margin: 0;
    color: #6b7280;
    line-height: 1.55;
}

.account-address-card.is-empty {
    background: #fafafa;
    border-style: dashed;
}

.account-address-card.is-empty:hover {
    border-color: var(--color-primary);
    background: #ffffff;
}

.account-address-add {
    align-self: flex-start;
    margin-top: auto;
}

.account-address-add .exhibition-btn,
.account-address-add.exhibition-btn {
    min-height: 44px;
}

.account-back-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.account-back-link:hover {
    color: #111111;
}

.account-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f0f0f0;
}

.account-form-actions .exhibition-btn {
    margin-top: 0;
}

.account-form-cancel {
    color: #6b7280;
    font-weight: 600;
    text-decoration: none;
}

.account-form-cancel:hover {
    color: var(--color-primary);
}

/* Kill leftover Woo column chrome on Addresses */
.account-main .woocommerce-Addresses,
.account-main .u-columns.woocommerce-Addresses {
    display: contents;
}
.account-main .woocommerce-Address {
    float: none;
    width: auto;
    margin: 0;
}
.account-main .woocommerce-Address title,
.account-main .woocommerce-Address .title {
    display: none;
}

.account-form-card { padding: 2rem; }
.edit-account.account-form-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.25rem;
    align-items: start;
}
.account-form-card .clear { display: none; }
.account-form-card .form-row {
    float: none;
    width: auto;
    margin-bottom: 1rem;
}
.edit-account .form-row-first,
.edit-account .form-row-last {
    grid-column: auto;
    width: 100%;
    max-width: none;
    float: none;
}
.edit-account .form-row-wide,
.edit-account .account-password-fieldset,
.edit-account > p:not(.form-row) {
    grid-column: 1 / -1;
}
.account-form-card .woocommerce-address-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.25rem;
    align-items: start;
}
.account-form-card .woocommerce-address-fields__field-wrapper .form-row-wide,
.account-form-card .woocommerce-address-fields > p {
    grid-column: 1 / -1;
}
.account-form-card .exhibition-btn { margin-top: 0.35rem; }

.account-password-fieldset {
    border: 0;
    margin: 1.5rem 0 1rem;
    padding: 1.25rem 0 0;
    border-top: 1px solid #f0f0f0;
}

.account-password-fieldset legend {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0 0 1rem;
    color: var(--color-text);
}

.account-pagination { display: flex; gap: 0.75rem; margin-top: 1.75rem; }
.account-pagination .button {
    width: auto;
    min-height: 40px;
    padding: 0 1rem;
    border-radius: 15px;
    background: #ffffff;
    color: var(--color-primary);
    border: 1px solid #e6e6e6;
}

/* View order / WC leftovers inside account */
.account-main .woocommerce-order-details,
.account-main .woocommerce-customer-details {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 15px;
    padding: 1.5rem 1.6rem;
    margin-top: 1.25rem;
    box-shadow: none;
}

.account-main .woocommerce-order-details__title,
.account-main .woocommerce-column__title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.account-main .woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
}

.account-main .woocommerce-table--order-details th,
.account-main .woocommerce-table--order-details td {
    border: 0;
    border-bottom: 1px solid #f3f4f6;
    padding: 0.9rem 0;
    text-align: left;
}

.account-main .woocommerce-customer-details address {
    font-style: normal;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.account-dashboard .woocommerce,
.account-dashboard .wsc-supercoins,
.account-main .wsc-supercoins {
    margin-top: 1.5rem;
}

/* Password reveal button WC */
.woocommerce form .password-input { display: block; position: relative; }
.woocommerce form .show-password-input {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
    html,
    body.woocommerce-account {
        overflow-x: clip;
        max-width: 100%;
    }

    body.woocommerce-account .account-page-layout,
    body.woocommerce-account .page-content-wrapper {
        max-width: 100%;
        overflow-x: clip;
        padding-bottom: 5.75rem;
    }

    .account-page-layout,
    .account-shell,
    .account-shell > *,
    .account-sidebar,
    .account-main,
    .account-dashboard,
    .account-card,
    .account-form-card,
    .woocommerce-MyAccount-content {
        min-width: 0;
        max-width: 100%;
    }

    .account-auth {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .account-auth-brand {
        padding: 2rem var(--gutter-right) 1.75rem var(--gutter-left);
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    }

    .account-auth-headline,
    .account-hero-title,
    .account-section-head h2 {
        font-size: clamp(1.65rem, 7vw, 2.05rem);
        overflow-wrap: anywhere;
    }
    .account-hero-copy,
    .account-section-head p { font-size: 0.95rem; max-width: none; }
    .account-auth-perks { display: none; }
    .account-auth-panel { padding: 1.5rem var(--gutter-right) 2.5rem var(--gutter-left); align-items: stretch; }
    .account-auth-card { max-width: none; }

    .account-shell {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 1.15rem;
        padding: 1.15rem var(--gutter-right) 1.5rem var(--gutter-left);
    }
    .account-sidebar {
        position: static;
        padding: 0;
    }
    .account-profile { margin-bottom: 1rem; }
    .account-profile-email { overflow-wrap: anywhere; }

    .account-nav-list {
        flex-direction: row;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        gap: 0.4rem;
        margin: 0;
        padding: 0 0 0.35rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .account-nav-list::-webkit-scrollbar { display: none; }
    .account-nav-list a {
        white-space: nowrap;
        padding: 0.65rem 0.8rem;
        font-size: 0.84rem;
    }
    .account-shop-link { display: none; }
    .account-main { padding: 0; min-width: 0; }
    .account-hero { margin-bottom: 1.25rem; }

    .account-stats,
    .account-quick-actions {
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }
    .account-stat-card,
    .account-action { grid-column: auto; min-width: 0; }
    .account-stat-card,
    .account-card,
    .account-order-card,
    .account-form-card { padding: 1rem; }
    .account-stat-value { font-size: 1.45rem; }
    .account-stat-label { letter-spacing: 0.04em; }
    .account-action { font-size: 0.82rem; padding: 0.9rem; }
    .account-action span { min-width: 0; }
    .account-card-head { flex-wrap: wrap; align-items: flex-start; }

    .edit-account.account-form-card,
    .account-form-card .woocommerce-address-fields__field-wrapper { grid-template-columns: 1fr; }
    .account-address-grid { grid-template-columns: 1fr; }

    .account-address-card-top {
        flex-wrap: wrap;
    }

    .account-address-edit {
        margin-left: auto;
    }

    .account-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .account-form-actions .exhibition-btn {
        width: 100%;
    }

    .account-form-cancel {
        text-align: center;
    }
    .account-form-card .form-row,
    .account-form-card .form-row-first,
    .account-form-card .form-row-last { width: 100%; float: none; }

    .account-order-card {
        grid-template-columns: 64px minmax(0, 1fr);
    }
    .account-order-thumb { width: 64px; height: 64px; }
    .account-order-side {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }
    .account-order-view { margin-left: auto; }
    .account-order-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .account-order-aside { align-items: flex-start; }

    .account-main .col2-set,
    .account-main .u-columns {
        width: 100%;
    }
    .account-main .col-1,
    .account-main .col-2,
    .account-main .u-column1,
    .account-main .u-column2 {
        float: none;
        width: 100%;
        margin: 0 0 1rem;
    }
    .account-main input,
    .account-main select,
    .account-main textarea,
    .account-auth input,
    .account-auth select,
    .account-auth textarea {
        max-width: 100%;
        box-sizing: border-box;
    }
    .account-main table,
    .account-main .woocommerce-table--order-details {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }

    .account-auth .account-submit,
    .account-auth .btn-blue,
    .account-form-card .exhibition-btn,
    .account-orders-empty .exhibition-btn,
    .account-empty .exhibition-btn {
        width: 100%;
    }

    .account-main .woocommerce-info,
    .account-main .woocommerce-message,
    .woocommerce-MyAccount-content .woocommerce-info,
    .woocommerce-MyAccount-content .woocommerce-message {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .account-main .woocommerce-info a.button,
    .account-main .woocommerce-message a.button,
    .woocommerce-MyAccount-content .woocommerce-info a.button,
    .woocommerce-MyAccount-content .woocommerce-message a.button {
        width: 100%;
        margin-left: 0;
        order: 2;
        display: inline-flex !important;
    }
}

@media (max-width: 425px) {
    .account-auth-headline,
    .account-hero-title,
    .account-section-head h2 {
        font-size: clamp(1.45rem, 7.2vw, 1.75rem);
    }

    .account-stats,
    .account-quick-actions { grid-template-columns: 1fr; }
}
