/* =========================================
   ELANORA — LUXURY CUSTOMER ACCOUNT
   Ivory • Champagne • Gold • Silk
========================================= */

.account-page {
    min-height: 75vh;
    padding: clamp(3.5rem, 6vw, 5.5rem) 0 6rem;
    background:
        radial-gradient(ellipse at top left, rgba(239, 232, 220, .45), transparent 42%),
        var(--color-ivory);
    color: var(--color-espresso);
}

.account-page [hidden] {
    display: none !important;
}

.account-page .container {
    max-width: 1240px;
}

/* =========================================
   PAGE HEADING
========================================= */

.account-page-header {
    margin: 0 auto clamp(2.8rem, 5vw, 4rem);
    text-align: center;
}

.account-page-header .section-eyebrow {
    display: block;
    margin-bottom: 1rem;
    color: var(--color-gold);
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .2em;
}

.account-page-header h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.7rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.account-page-header h1 em {
    color: var(--color-gold);
    font-weight: 400;
}

.account-page-header>p {
    margin: 1rem 0 0;
    color: var(--color-muted);
    font-size: .86rem;
    line-height: 1.8;
}

/* =========================================
   STATUS MESSAGES
========================================= */

.account-notice {
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;
    border: 0;
    border-radius: 3px;
    background: #F0E8DA;
    color: var(--color-espresso);
    font-size: .84rem;
    line-height: 1.7;
    text-align: center;
    overflow-wrap: anywhere;
    box-shadow: 0 5px 18px rgba(43, 37, 32, .035);
}

.account-notice:empty,
.account-form-message:empty {
    display: none;
}

/* =========================================
   MAIN LAYOUT
========================================= */

.account-layout {
    display: grid;
    grid-template-columns: minmax(240px, .78fr) minmax(0, 1.8fr);
    align-items: start;
    gap: clamp(2rem, 4vw, 3.5rem);
    max-width: 1120px;
    margin: 0 auto;
}

/* =========================================
   SIDEBAR — ONE CONTINUOUS SILK SECTION
========================================= */

.account-sidebar {
    position: relative;
    isolation: isolate;
    min-width: 0;
    align-self: start;
    height: fit-content;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 1.4rem;

    border: none;
    border-radius: 3px;

    background-color: var(--color-champagne);
    background-image:
        linear-gradient(135deg,
            rgba(248, 245, 239, .72),
            rgba(248, 245, 239, .48) 55%,
            rgba(239, 232, 220, .72)),
        url("/static/images/contact-silk.png");

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    box-shadow: 0 12px 35px rgba(43, 37, 32, .07);
}

/* Welcome area blends into the sidebar background */

.account-welcome {
    position: relative;
    min-height: 215px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem .65rem 1.7rem;

    border: none;
    border-radius: 0;
    background: transparent;
    background-image: none;
    box-shadow: none;
}

.account-welcome-label,
.account-nav-label,
.account-overline {
    display: block;
    color: #9B8050;
    font-size: .63rem;
    font-weight: 600;
    letter-spacing: .17em;
    line-height: 1.8;
}

.account-welcome h2 {
    margin: .8rem 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 2.3vw, 1.9rem);
    font-weight: 400;
    line-height: 1.35;
    color: var(--color-espresso);
    overflow-wrap: anywhere;
}

.account-welcome p {
    max-width: 260px;
    margin: .75rem 0 0;
    color: #62584E;
    font-size: .78rem;
    line-height: 1.9;
}

/* Navigation shares the same background */

.account-nav {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-top: .3rem;
    padding: 1.25rem .1rem 0;
    border: 0;
}

.account-nav-label {
    margin: 0 0 .65rem;
    padding: 0 .8rem;
    color: var(--color-muted);
    font-size: .61rem;
}

.account-nav-link {
    display: flex;
    width: 100%;
    min-height: 49px;
    align-items: center;
    gap: .8rem;
    padding: .85rem .9rem;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
    font-family: inherit;
    font-size: .79rem;
    text-align: left;
    transition:
        background .25s ease,
        color .25s ease,
        box-shadow .25s ease;
}

.account-nav-link>i:first-child {
    width: 18px;
    color: #A58A58;
    font-size: 1rem;
    text-align: center;
}

.account-nav-link span {
    flex: 1;
}

.account-nav-arrow {
    color: var(--color-gold);
    font-size: .8rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .2s ease, transform .2s ease;
}

.account-nav-link:hover,
.account-nav-link.is-active {
    background: rgba(255, 255, 255, .76);
    color: var(--color-espresso);
    box-shadow: 0 5px 18px rgba(43, 37, 32, .055);
}

.account-nav-link:hover .account-nav-arrow,
.account-nav-link.is-active .account-nav-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Sidebar footer stays within the silk section */

.account-sidebar-footer {
    margin-top: 1rem;
    padding: .8rem .65rem .3rem;
    border: none;
}

.account-signout {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    padding: .75rem 1rem;

    border: none;
    border-radius: 3px;

    background: rgba(255, 255, 255, .72);
    color: var(--color-espresso);

    cursor: pointer;
    font-family: inherit;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .045em;

    box-shadow: 0 5px 16px rgba(43, 37, 32, .07);

    transition:
        background .25s ease,
        color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.account-signout:hover {
    background: var(--color-espresso);
    color: var(--color-white);
    box-shadow: 0 7px 18px rgba(43, 37, 32, .14);
    transform: translateY(-1px);
}

.account-signout i {
    font-size: .9rem;
}

/* Mobile layout */

@media (max-width: 767.98px) {
    .account-sidebar {
        align-self: auto;
        height: auto;
    }

    .account-welcome {
        min-height: 180px;
    }
}

@media (max-width: 480px) {
    .account-welcome {
        min-height: 170px;
    }

    .account-signout {
        min-height: 42px;
    }
}

/* =========================================
   RIGHT CONTENT — WHITE PANEL + SOFT SHADOW
========================================= */

.account-main {
    min-width: 0;
    min-height: 420px;
    padding: clamp(1.5rem, 3.5vw, 2.6rem);
    border: 0;
    border-radius: 3px;
    background: #fff;
    box-shadow:
        0 12px 38px rgba(43, 37, 32, .045),
        0 2px 8px rgba(43, 37, 32, .025);
}

.account-view {
    animation: accountFadeIn .22s ease-out;
}

.account-view-header {
    padding: 0 0 1.5rem;
    border: 0;
}

.account-view-header h2 {
    margin: .65rem 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.account-view-header>p {
    margin: .65rem 0 0;
    color: var(--color-muted);
    font-size: .82rem;
    line-height: 1.8;
}

.account-content {
    padding-top: 1rem;
}

/* =========================================
   PERSONAL INFORMATION
========================================= */

.account-detail-list {
    width: 100%;
}

.account-detail-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.2rem 0;
    border: 0;
}

.account-detail-row+.account-detail-row {
    box-shadow: inset 0 1px rgba(43, 37, 32, .055);
}

.account-detail-row>span {
    flex: 0 0 38%;
    color: var(--color-muted);
    font-size: .77rem;
    line-height: 1.7;
}

.account-detail-row>strong {
    min-width: 0;
    color: var(--color-espresso);
    font-size: .84rem;
    font-weight: 400;
    line-height: 1.7;
    text-align: right;
    overflow-wrap: anywhere;
}

.account-inline-action {
    margin-top: 1.6rem;
}

/* =========================================
   BUTTONS
========================================= */

.account-primary-button {
    display: inline-flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    padding: .8rem 1.35rem;
    border: 0;
    border-radius: 3px;
    background: var(--color-espresso);
    color: var(--color-white);
    cursor: pointer;
    font-family: inherit;
    font-size: .69rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(43, 37, 32, .10);
    transition:
        background .2s ease,
        color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.account-primary-button:hover {
    background: var(--color-gold);
    color: var(--color-white);
    box-shadow: 0 7px 18px rgba(184, 155, 94, .2);
    transform: translateY(-1px);
}

.account-text-button {
    min-height: 42px;
    padding: .6rem .25rem;
    border: 0;
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
    font-family: inherit;
    font-size: .79rem;
    text-decoration: underline;
    text-decoration-color: rgba(117, 107, 97, .4);
    text-underline-offset: 4px;
}

.account-text-button:hover {
    color: var(--color-espresso);
}

.account-form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.1rem;
    margin-top: 1.6rem;
}

/* =========================================
   FORMS
========================================= */

.account-form {
    padding-top: .25rem;
}

.account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
}

.account-full-width {
    grid-column: 1 / -1;
}

.account-input-group {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: .55rem;
}

.account-input-group label {
    color: var(--color-espresso);
    font-size: .76rem;
    font-weight: 500;
}

.account-input-group input {
    width: 100%;
    min-height: 46px;
    padding: .75rem .85rem;
    border: 1px solid rgba(43, 37, 32, .12);
    border-radius: 3px;
    outline: none;
    background: #FBF9F5;
    color: var(--color-espresso);
    font-family: inherit;
    font-size: .84rem;
    transition:
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.account-input-group input:hover {
    border-color: rgba(184, 155, 94, .55);
}

.account-input-group input:focus {
    border-color: var(--color-gold);
    background: #fff;
    box-shadow: 0 4px 16px rgba(184, 155, 94, .10);
}

.account-input-group input:read-only {
    border-color: transparent;
    background: var(--color-champagne);
    color: var(--color-muted);
    cursor: not-allowed;
}

.account-input-group small {
    color: var(--color-muted);
    font-size: .71rem;
    line-height: 1.6;
}

.account-form-message {
    margin-top: 1rem;
    color: var(--color-muted);
    font-size: .8rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

/* =========================================
   SECURITY
========================================= */

.security-intro {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.8rem;
    padding: 1.2rem;
    border: 0;
    border-radius: 3px;
    background: #F8F5EF;
    box-shadow: 0 5px 18px rgba(43, 37, 32, .035);
}

.security-symbol {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-champagne);
    color: #927746;
    font-size: 1rem;
}

.security-intro h3 {
    margin: .1rem 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-weight: 400;
}

.security-intro p {
    margin: .45rem 0 0;
    color: var(--color-muted);
    font-size: .79rem;
    line-height: 1.8;
}

.account-password-fields {
    display: grid;
    gap: 1.3rem;
    max-width: 440px;
}

/* =========================================
   ORDER HISTORY — ELANORA LUXURY
========================================= */

.account-orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.account-order {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.35rem;
    padding: 1.4rem;
    border: 1px solid rgba(184, 155, 94, .14);
    border-radius: 4px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FBF9F5 100%);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(43, 37, 32, .035);
    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.account-order:hover {
    transform: translateY(-2px);
    border-color: rgba(184, 155, 94, .4);
    box-shadow: 0 12px 28px rgba(43, 37, 32, .075);
    color: inherit;
}

.account-order:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

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

.account-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.account-order-number {
    margin: 0;
    color: var(--color-espresso);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.12rem;
    font-weight: 400;
    letter-spacing: -.015em;
    overflow-wrap: anywhere;
}

.account-order-arrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
    color: #9B8050;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    transition: gap .2s ease;
}

.account-order:hover .account-order-arrow {
    gap: .65rem;
}

.account-order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.1rem;
    margin-top: .65rem;
    color: var(--color-muted);
    font-size: .73rem;
    line-height: 1.7;
}

.account-order-meta>span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.account-order-meta i {
    flex-shrink: 0;
    color: #A58A58;
}

/* Product previews */

.account-order-products {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(43, 37, 32, .07);
}

.account-order-product {
    display: flex;
    min-width: 0;
    max-width: 100%;
    align-items: center;
    gap: .75rem;
}

.account-order-product-image {
    display: flex;
    width: 58px;
    height: 64px;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(184, 155, 94, .18);
    border-radius: 3px;
    background: #F3EEE5;
    color: #A58A58;
}

.account-order-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-order-product-image.has-no-image {
    font-size: 1.25rem;
}

.account-order-product-details {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
}

.account-order-product-name {
    max-width: 220px;
    color: var(--color-espresso);
    font-family: Georgia, "Times New Roman", serif;
    font-size: .88rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.account-order-product-variant {
    color: var(--color-muted);
    font-size: .7rem;
    line-height: 1.5;
}

.account-order-product-quantity {
    color: #8A7B68;
    font-size: .69rem;
}

.account-order-products-more {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: .4rem .65rem;
    border: 1px solid rgba(184, 155, 94, .22);
    border-radius: 3px;
    background: #F8F5EF;
    color: #8C7449;
    font-size: .68rem;
    white-space: nowrap;
}

/* Total */

.account-order-total {
    margin-top: 1rem;
    color: var(--color-muted);
    font-size: .77rem;
}

.account-order-total strong {
    color: var(--color-espresso);
    font-size: .94rem;
    font-weight: 600;
}

/* Order status */

.account-order-status-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.account-order-status {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .75rem;
    border: 1px solid rgba(184, 155, 94, .18);
    border-radius: 30px;
    background: #F4EEE2;
    color: #665331;
    font-size: .66rem;
    line-height: 1.4;
    letter-spacing: .025em;
    white-space: nowrap;
}

.account-order-status::before {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--color-gold);
    content: "";
}

.account-order-status.status-delivered {
    background: #EEF4EB;
    border-color: #DCE8D7;
    color: #3F6540;
}

.account-order-status.status-delivered::before {
    background: #548452;
}

.account-order-status.status-cancelled {
    background: #F9EEEE;
    border-color: #EFDADA;
    color: #914B4B;
}

.account-order-status.status-cancelled::before {
    background: #C66B6B;
}

.account-order-status.status-pending {
    background: #FBF2E3;
    border-color: #F0E0C3;
    color: #8A6328;
}

.account-order-status.status-pending::before {
    background: #D99A3D;
}

/* =========================================
   ORDER PAGINATION
========================================= */

.account-orders-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .85rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(43, 37, 32, .06);
}

.account-pagination-info {
    color: var(--color-muted);
    font-size: .76rem;
}

.account-pagination-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem;
}

.account-page-btn {
    display: inline-flex;
    min-width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 .5rem;
    border: 1px solid rgba(184, 155, 94, .16);
    border-radius: 3px;
    background: #F8F5EF;
    color: var(--color-espresso);
    cursor: pointer;
    font-family: inherit;
    font-size: .78rem;
    font-weight: 500;
    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.account-page-btn:hover:not(:disabled) {
    border-color: var(--color-gold);
    background: #EFE5D4;
}

.account-page-btn.is-active {
    border-color: var(--color-espresso);
    background: var(--color-espresso);
    color: var(--color-white);
}

.account-page-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.account-page-nav-btn {
    gap: .35rem;
    padding: 0 .85rem;
    font-size: .7rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* =========================================
   EMPTY ORDER HISTORY
========================================= */

.account-orders-empty {
    padding: 3rem 1rem;
    text-align: center;
}

.account-orders-empty-icon {
    display: flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    border: 1px solid rgba(184, 155, 94, .25);
    border-radius: 50%;
    background: #F8F5EF;
    color: #A58A58;
    font-size: 1.5rem;
}

.account-orders-empty h3 {
    margin: 0;
    color: var(--color-espresso);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-weight: 400;
}

.account-orders-empty p {
    max-width: 390px;
    margin: .8rem auto 1.4rem;
    color: var(--color-muted);
    font-size: .82rem;
    line-height: 1.85;
}

.account-shop-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: .8rem 1.25rem;
    border: 1px solid var(--color-espresso);
    border-radius: 3px;
    background: var(--color-espresso);
    color: #FFFFFF;
    font-size: .7rem;
    letter-spacing: .07em;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.account-shop-link:hover {
    transform: translateY(-1px);
    border-color: var(--color-gold);
    background: var(--color-gold);
    color: #FFFFFF;
}


/* =========================================
   ACCESSIBILITY & ANIMATION
========================================= */

.account-page button:focus-visible,
.account-page a:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

@keyframes accountFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    .account-view,
    .account-page button,
    .account-page a,
    .account-input-group input {
        animation: none;
        transition: none;
    }
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 767.98px) {
    .account-page {
        padding: 3.5rem 0 4rem;
    }

    .account-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .account-sidebar {
        align-self: auto;
        padding: 1rem;
    }

    .account-welcome {
        min-height: 180px;
        padding: 1.3rem .7rem;
    }

    .account-welcome h2 {
        font-size: 1.6rem;
    }

    .account-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .4rem;
        padding-top: 1rem;
    }

    .account-nav-label {
        grid-column: 1 / -1;
    }

    .account-nav-link {
        min-height: 65px;
        flex-direction: column;
        justify-content: center;
        gap: .4rem;
        padding: .6rem .3rem;
        font-size: .69rem;
        text-align: center;
    }

    .account-nav-arrow {
        display: none;
    }

    .account-sidebar-footer {
        margin-top: .6rem;
        padding: .5rem .5rem .2rem;
    }

    .account-main {
        min-height: 320px;
    }

    .account-form-grid {
        gap: 1.2rem;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 480px) {
    .account-page {
        padding: 2.8rem 0 3.5rem;
    }

    .account-page-header {
        margin-bottom: 2.5rem;
    }

    .account-page-header h1 {
        font-size: 2.65rem;
    }

    .account-page-header>p {
        max-width: 290px;
        margin-right: auto;
        margin-left: auto;
        font-size: .82rem;
    }

    .account-layout {
        gap: 1.6rem;
    }

    .account-sidebar {
        padding: .85rem;
    }

    .account-welcome {
        min-height: 170px;
        padding: 1.1rem .55rem;
    }

    .account-nav-link {
        font-size: .64rem;
    }

    .account-main {
        padding: 1.3rem;
    }

    .account-view-header {
        padding-bottom: 1.2rem;
    }

    .account-view-header h2 {
        font-size: 1.85rem;
    }

    .account-content {
        padding-top: 1rem;
    }

    .account-detail-row {
        gap: .7rem;
    }

    .account-detail-row>span {
        flex-basis: 40%;
        font-size: .71rem;
    }

    .account-detail-row>strong {
        font-size: .78rem;
    }

    .account-form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.2rem;
    }

    .account-full-width {
        grid-column: auto;
    }

    .account-order {
        grid-template-columns: minmax(0, 1fr);
        gap: .85rem;
        padding: 1.1rem;
    }

    .account-order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: .4rem;
    }

    .account-order-status-wrap {
        justify-content: flex-start;
    }

    .account-page-btn {
        min-width: 32px;
        height: 32px;
        font-size: .72rem;
    }

    .account-page-nav-btn {
        padding: 0 .65rem;
        font-size: .67rem;
    }
}


/* ========================================
   PERSONAL DETAILS & PASSWORD INPUTS
======================================== */

.account-main input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.account-main select,
.account-main textarea {
    width: 100%;
    border: none !important;
    outline: none;
    border-radius: 3px;
    background-color: #FFFFFF;
    color: #2B2520;
    padding: 0.85rem 1rem;
    box-shadow: 0 3px 12px rgba(43, 37, 32, 0.09);
    transition: box-shadow 0.25s ease,
        background-color 0.25s ease;
}

/* Elegant focus effect */
.account-main input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):focus,
.account-main select:focus,
.account-main textarea:focus {
    border: none !important;
    outline: none;
    background-color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(184, 155, 94, 0.22);
}

/* Keep disabled fields readable */
.account-main input:disabled {
    background-color: #F8F5EF;
    color: #756B61;
    cursor: not-allowed;
}

/* Password field + eye button */
.password-field-wrapper {
    position: relative;
    width: 100%;
}

.password-field-wrapper input {
    width: 100%;
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    border: none;
    background: transparent;
    color: #756B61;
    cursor: pointer;
    box-shadow: none;
    transition: color 0.2s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: #B89B5E;
    outline: none;
}

.password-toggle i {
    font-size: 1rem;
}

/* Prevent eye button from receiving input-field styling */
.account-main .password-toggle {
    width: auto;
    border: none !important;
    background: transparent;
    box-shadow: none;
}


/* Personal details and password fields */
.account-main .account-luxury-input {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0.85rem 1rem;
    border: none !important;
    border-radius: 3px;
    outline: none;
    background: #FFFFFF;
    color: #2B2520;
    box-shadow: 0 3px 12px rgba(43, 37, 32, 0.09);
    transition: box-shadow 0.25s ease;
}

.account-main .account-luxury-input:focus {
    border: none !important;
    outline: none;
    box-shadow: 0 4px 16px rgba(184, 155, 94, 0.22);
}

.account-main .account-luxury-input[readonly] {
    background: #F8F5EF;
    color: #756B61;
}

/* Password input wrapper */
.account-main .password-field-wrapper {
    position: relative;
    width: 100%;
}

.account-main .password-field-wrapper .account-luxury-input {
    padding-right: 3.2rem;
}

/* Eye icon button */
.account-main .password-toggle {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    border: none !important;
    background: transparent;
    color: #756B61;
    box-shadow: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.account-main .password-toggle:hover,
.account-main .password-toggle:focus-visible {
    color: #B89B5E;
}

.account-main .password-toggle:focus-visible {
    outline: 2px solid rgba(184, 155, 94, 0.5);
    outline-offset: 2px;
}

.account-main .password-toggle i {
    font-size: 1.05rem;
    line-height: 1;
}


/* =========================================
   ORDER HISTORY — RESPONSIVE REFINEMENTS
========================================= */

@media (max-width: 767.98px) {
    .account-order {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .account-order-status-wrap {
        justify-content: flex-start;
    }

    .account-order-products {
        gap: .7rem;
    }

    .account-order-product-image {
        width: 52px;
        height: 58px;
        flex-basis: 52px;
    }
}

@media (max-width: 480px) {
    .account-order {
        padding: 1rem;
    }

    .account-order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: .45rem;
    }

    .account-order-products {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-order-product {
        width: 100%;
    }

    .account-order-product-name {
        max-width: 100%;
    }

    .account-order-products-more {
        margin-left: 0;
    }

    .account-orders-empty {
        padding: 2.25rem .25rem;
    }

    .account-page-btn {
        min-width: 32px;
        height: 32px;
        font-size: .72rem;
    }

    .account-page-nav-btn {
        padding: 0 .65rem;
        font-size: .67rem;
    }
}