:root{
    --ink:#333;
    --muted:#858585;
    --line:#e5e5e5;
    --accent:#E5A484;
    --paper:#fff;
    --soft:#f7f7f7;
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    background:var(--paper);
    color:var(--ink);
    font-family:Larke, Arial, sans-serif;
}

.account-page-header{
    position:sticky;
    top:0;
    z-index:10;
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    min-height:84px;
    padding:0 7%;
    border-bottom:1px solid var(--line);
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(16px);
}

.account-back,
.account-logo{
    color:var(--ink);
    text-decoration:none;
}

.account-back{
    width:42px;
    height:42px;
    background-image:url("../images/Icon Folder/Back Icon_Black.PNG");
    background-position:left center;
    background-repeat:no-repeat;
    background-size:24px 24px;
}

.account-back:active{
    background-image:url("../images/Icon Folder/Back Icon_Gray.PNG");
}

.account-logo{
    color:var(--accent);
    font-size:31px;
    font-weight:800;
    letter-spacing:2px;
}

.account-signout{
    justify-self:end;
    padding:9px 16px;
    border:1px solid var(--line);
    border-radius:999px;
    background:#fff;
    color:var(--ink);
    cursor:pointer;
}

.account-page{
    width:min(1160px, 86%);
    margin:0 auto;
    padding:36px 0 48px;
}

.account-intro{
    margin-bottom:38px;
}

.account-kicker{
    margin:0 0 8px;
    color:var(--accent);
    font-size:12px;
    font-weight:700;
    letter-spacing:1.5px;
    text-transform:uppercase;
}

.account-intro h1{
    margin:0;
    font-size:clamp(36px, 5vw, 62px);
    letter-spacing:-1.5px;
}

.account-customer{
    margin:12px 0 0;
    color:var(--muted);
}

.account-profile-overview{
    display:grid;
    gap:0;
    margin-bottom:24px;
}

.account-profile-picture{
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:flex-start;
    padding:10px 0 4px;
    margin-bottom:28px;
    text-align:left;
}

.account-settings-list{
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:18px;
    background:#fff;
}

.account-settings-list-secondary{
    margin-top:16px;
}

.account-profile-picture img{
    width:96px;
    height:96px;
    border:3px solid #fff;
    border-radius:50%;
    background:var(--soft);
    box-shadow:0 14px 38px rgba(0,0,0,.14);
    object-fit:cover;
}

.account-profile-details{
    display:grid;
    gap:4px;
    min-width:0;
    margin-left:10px;
}

.account-profile-picture h2{
    margin:0;
    font-size:20px;
}

.account-profile-details p{
    margin:0;
    color:var(--muted);
    font-size:14px;
    overflow-wrap:anywhere;
}

.account-personal-info,
.account-status-overview{
    padding:26px;
    border:1px solid var(--line);
    border-radius:20px;
    background:#fff;
    box-shadow:0 12px 34px rgba(0,0,0,.04);
}

.account-section-title{
    margin-bottom:20px;
}

.account-section-title h2{
    margin:0;
    font-size:28px;
}

.account-info-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:14px;
}

.account-info-grid > div{
    min-width:0;
    padding:17px;
    border-radius:14px;
    background:var(--soft);
}

.account-info-grid span,
.account-status-grid span{
    display:block;
    margin-bottom:7px;
    color:var(--muted);
    font-size:12px;
}

.account-info-grid strong{
    display:block;
    overflow:hidden;
    font-size:16px;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.account-status-grid{
    display:grid;
    grid-template-columns:repeat(5, minmax(0, 1fr));
    gap:12px;
}

.account-status-grid > div{
    padding:17px 14px;
    border:1px solid var(--line);
    border-radius:14px;
    background:#fff;
}

.account-status-grid strong{
    font-size:25px;
}

.account-status-grid [data-order-status="pending"] strong{color:#b76e00}
.account-status-grid [data-order-status="processing"] strong{color:#2563c7}
.account-status-grid [data-order-status="shipped"] strong{color:#7047c7}
.account-status-grid [data-order-status="delivered"] strong{color:#07845d}
.account-status-grid [data-order-status="cancelled"] strong{color:#c43d3d}

.account-purchases-title{
    margin-bottom:24px;
}

.account-purchases-kicker-content{
    display:inline-flex;
    align-items:center;
    flex-wrap:nowrap;
    gap:6px;
    white-space:nowrap;
    vertical-align:middle;
}

.account-purchases-kicker-content img{
    display:block;
    flex:0 0 14px;
    width:14px;
    height:14px;
    object-fit:contain;
    transform:translateY(-3px);
}

.account-profile-link,
.account-order-status-link{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:62px;
    padding:0 20px;
    border:0;
    border-bottom:1px solid var(--line);
    border-radius:0;
    background:#fff;
    color:var(--ink);
    box-shadow:none;
    font-size:16px;
    font-weight:600;
    text-decoration:none;
}

.account-settings-list > :last-child{
    border-bottom:0;
}

.account-settings-list > a:hover{
    background:var(--soft);
}

.account-settings-label{
    display:flex;
    align-items:center;
    min-width:0;
    gap:12px;
}

.account-settings-label img{
    width:20px;
    height:20px;
    flex:0 0 auto;
    object-fit:contain;
}

.account-settings-label > span{
    display:block;
    line-height:1.2;
}

.account-profile-link > span:last-child,
.account-order-status-link > span:last-child{
    color:var(--accent);
    font-size:28px;
    font-weight:400;
    line-height:1;
}

.account-profile-overview > .account-signout{
    justify-self:stretch;
    width:100%;
    min-height:54px;
    margin-top:48px;
    padding:14px 18px;
    border:1px solid #d98d69;
    border-radius:12px;
    background:#E5A484;
    color:#fff;
    box-shadow:0 3px 8px rgba(201,133,98,.14);
    font:600 16px Larke,Arial,sans-serif;
}

.account-profile-overview > .account-signout:hover{
    transform:translateY(-2px);
}

.personal-information-page{
    width:min(760px, calc(100% - 40px));
    margin:0 auto;
    padding:60px 0 100px;
}

.personal-information-heading{
    margin-bottom:22px;
}

.personal-information-kicker{
    display:flex;
    align-items:center;
    gap:6px;
}

.personal-information-kicker img{
    display:block;
    flex:0 0 14px;
    width:14px;
    height:14px;
    object-fit:contain;
    transform:translateY(-.5px);
}

.personal-information-heading h1{
    margin:0;
    display:flex;
    align-items:center;
    gap:10px;
    font-size:clamp(34px, 6vw, 52px);
    letter-spacing:-1px;
}

.personal-information-heading h1 img{
    display:block;
    flex:0 0 clamp(26px, 4vw, 36px);
    width:clamp(26px, 4vw, 36px);
    height:clamp(26px, 4vw, 36px);
    object-fit:contain;
    transform:translateY(-1px);
}

.personal-information-heading > p:not(.account-kicker){
    margin:10px 0 0;
    color:var(--muted);
}

.personal-information-card{
    padding:0;
    border:0;
    border-radius:0;
    background:#fff;
    box-shadow:none;
}

.personal-photo-editor{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:22px;
    margin-bottom:28px;
}

.personal-photo-editor img{
    display:block;
    width:112px;
    height:112px;
    flex:0 0 112px;
    border:4px solid #fff;
    border-radius:50%;
    background:var(--soft);
    box-shadow:0 10px 28px rgba(0,0,0,.14);
    object-fit:cover;
}

.personal-photo-control{
    position:relative;
    display:block;
    flex:0 0 112px;
    width:112px;
    height:112px;
    overflow:hidden;
    border-radius:50%;
    line-height:0;
    cursor:pointer;
}

.personal-photo-control span{
    position:absolute;
    right:0;
    bottom:0;
    left:0;
    height:25%;
    border-radius:0;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,.5);
    color:#fff;
    box-shadow:none;
    font-size:11px;
    font-weight:700;
    line-height:1;
}

.personal-photo-control img{
    width:100%;
    height:100%;
    flex:0 0 auto;
}

.personal-photo-editor small{
    display:block;
    margin:0;
    color:var(--muted);
    font-size:11px;
}

.personal-fields-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:16px;
}

.personal-information-card > label,
.personal-fields-grid label{
    display:grid;
    gap:8px;
    margin-top:16px;
    color:#555;
    font-size:13px;
    font-weight:700;
}

.personal-fields-grid label{
    margin-top:0;
}

.personal-information-card input{
    width:100%;
    min-height:50px;
    padding:12px 14px;
    border:1px solid #ddd;
    border-radius:12px;
    background:#fff;
    color:var(--ink);
    outline:none;
    font:inherit;
}

.personal-information-card input:focus{
    border-color:var(--accent);
    box-shadow:0 0 0 3px rgba(229,164,132,.15);
}

.personal-information-card > button{
    width:100%;
    min-height:50px;
    margin-top:20px;
    border:0;
    border-radius:10px;
    background:var(--accent);
    color:#fff;
    cursor:pointer;
    font:inherit;
    font-weight:700;
}

.personal-information-card > button:disabled{
    cursor:wait;
    opacity:.65;
}

.personal-information-card > .personal-account-delete{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin-top:12px;
    border:1px solid #ddd;
    border-radius:10px;
    background:rgba(243,243,243,.932);
    color:#666;
    transition:.25s ease;
}

.personal-account-delete img{
    display:block;
    flex:0 0 18px;
    width:18px;
    height:18px;
    object-fit:contain;
}

.personal-information-card > .personal-account-delete:hover,
.personal-information-card > .personal-account-delete.is-confirming{
    border-color:#d9534f;
    color:#d9534f;
}

.personal-delete-confirm-overlay{
    position:fixed;
    inset:0;
    z-index:100;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:rgba(0,0,0,.55);
    opacity:0;
    visibility:hidden;
    transition:.3s ease;
}

.personal-delete-confirm-overlay.active{
    opacity:1;
    visibility:visible;
}

.personal-delete-confirm-box{
    width:min(100%,380px);
    padding:28px;
    border-radius:18px;
    background:#fff;
    text-align:center;
    transform:scale(.9);
    transition:.3s ease;
}

.personal-delete-confirm-overlay.active .personal-delete-confirm-box{
    transform:scale(1);
}

.personal-delete-confirm-box > img{
    width:48px;
    margin-bottom:18px;
}

.personal-delete-confirm-box h2{
    margin:0 0 12px;
    font-size:26px;
}

.personal-delete-confirm-box p{
    margin:0 0 24px;
    color:#666;
    line-height:1.5;
}

.personal-delete-confirm-box > div{
    display:flex;
    gap:12px;
}

.personal-delete-confirm-box button{
    flex:1;
    padding:12px;
    border-radius:10px;
    font:inherit;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
}

.personal-delete-cancel{
    border:1px solid #ddd;
    background:#fff;
    color:#555;
}

.personal-delete-confirm{
    border:0;
    background:var(--accent);
    color:#fff;
}

body.personal-delete-confirm-open{
    overflow:hidden;
}

.personal-information-message{
    min-height:18px;
    margin:12px 0 0;
    color:#27835f;
    font-size:13px;
}

.personal-information-message[data-type="error"]{
    color:#b23a3a;
}

#personal-information-loading{
    width:min(760px, calc(100% - 40px));
    margin:60px auto;
}

.account-tabs{
    display:grid;
    grid-template-columns:repeat(5, minmax(0, 1fr));
    margin-bottom:34px;
    border-bottom:1px solid var(--line);
}

.account-tab{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    padding:17px 10px;
    border:0;
    background:transparent;
    color:var(--muted);
    font:inherit;
    cursor:pointer;
}

.account-tab-label{
    display:inline-flex;
    align-items:center;
    gap:6px;
}

.account-tab-icon{
    display:block;
    width:19px;
    height:19px;
    object-fit:contain;
}

.account-tab > [data-count]{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:24px;
    height:24px;
    margin-left:5px;
    padding:0 7px;
    border-radius:999px;
    background:var(--soft);
    font-size:12px;
}

.account-tab.active{
    color:var(--ink);
    font-weight:700;
}

.account-tab.active::after{
    content:"";
    position:absolute;
    right:10px;
    bottom:-1px;
    left:10px;
    height:3px;
    border-radius:3px 3px 0 0;
    background:var(--accent);
}

.account-order-section{
    display:none;
}

.account-order-section.active{
    display:block;
}

.section-heading{
    margin-bottom:20px;
}

.section-heading h2{
    margin:0 0 5px;
    font-size:26px;
}

.section-heading p{
    margin:0;
    color:var(--muted);
}

.account-items{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:16px;
}

.account-item-card{
    display:grid;
    grid-template-columns:128px 1fr;
    gap:20px;
    min-width:0;
    padding:16px;
    border:1px solid var(--line);
    border-radius:18px;
    background:#fff;
    box-shadow:0 10px 30px rgba(0,0,0,.035);
}

.account-item-image{
    display:block;
    width:128px;
    height:128px;
    overflow:hidden;
    border-radius:14px;
    background:var(--soft);
}

.account-item-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.account-item-details{
    min-width:0;
}

.account-item-meta,
.account-item-options{
    margin:0;
    color:var(--muted);
    font-size:13px;
}

.account-item-title{
    display:block;
    margin:8px 0;
    overflow:hidden;
    color:var(--ink);
    font-size:20px;
    font-weight:700;
    text-decoration:none;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.account-item-action{
    display:inline-block;
    margin-top:15px;
    padding:0;
    border:0;
    background:transparent;
    color:var(--accent);
    font:inherit;
    font-weight:700;
    text-decoration:none;
    cursor:pointer;
}

.account-empty{
    grid-column:1 / -1;
    padding:54px 20px;
    border:1px dashed #d7d7d7;
    border-radius:18px;
    color:var(--muted);
    text-align:center;
}

.account-loading{
    color:var(--muted);
}

body.review-modal-open{
    overflow:hidden;
}

.account-review-overlay{
    position:fixed;
    inset:0;
    z-index:100;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:rgba(0,0,0,.42);
    opacity:0;
    visibility:hidden;
    transition:opacity .25s ease, visibility .25s ease;
}

.account-review-overlay.active{
    opacity:1;
    visibility:visible;
}

.account-review-modal{
    position:relative;
    width:min(560px, 100%);
    max-height:min(760px, 90vh);
    overflow:auto;
    padding:32px;
    border-radius:24px;
    background:#fff;
    box-shadow:0 28px 80px rgba(0,0,0,.2);
    transform:translateY(18px) scale(.98);
    transition:transform .25s ease;
}

.account-review-overlay.active .account-review-modal{
    transform:none;
}

.account-review-close{
    position:absolute;
    top:18px;
    right:20px;
    padding:0;
    border:0;
    background:transparent;
    color:var(--ink);
    font-size:34px;
    line-height:1;
    cursor:pointer;
}

.account-review-modal h2{
    margin:0;
    font-size:32px;
}

.account-review-product{
    margin:8px 0 24px;
    color:var(--muted);
}

#account-review-form fieldset{
    margin:0 0 18px;
    padding:0;
    border:0;
}

#account-review-form legend,
#account-review-form > label{
    display:block;
    margin:16px 0 8px;
    font-weight:700;
}

#account-review-form label span{
    color:var(--muted);
    font-size:12px;
    font-weight:400;
}

.account-review-stars{
    display:flex;
    gap:5px;
}

.account-review-stars button{
    padding:0;
    border:0;
    background:transparent;
    color:#ddd;
    font-size:34px;
    cursor:pointer;
}

.account-review-stars button.selected{
    color:#d4af37;
}

#account-review-comment{
    width:100%;
    min-height:130px;
    padding:14px;
    resize:vertical;
    border:1px solid var(--line);
    border-radius:12px;
    font:inherit;
}

#account-review-file{
    width:100%;
    padding:12px;
    border:1px dashed #ccc;
    border-radius:12px;
    background:var(--soft);
}

.account-review-file-name,
.account-review-error{
    min-height:18px;
    margin:7px 0 0;
    color:var(--muted);
    font-size:12px;
}

.account-review-error{
    color:#b23a3a;
}

.account-review-submit{
    width:100%;
    margin-top:20px;
    padding:14px;
    border:0;
    border-radius:999px;
    background:var(--ink);
    color:#fff;
    font:inherit;
    font-weight:700;
    cursor:pointer;
}

.account-review-submit:disabled{
    cursor:wait;
    opacity:.6;
}

[hidden]{
    display:none !important;
}

@media (min-width:601px){
    .account-profile-overview{
        grid-template-columns:repeat(2, minmax(0, 1fr));
        column-gap:20px;
    }

    .account-profile-picture,
    .account-profile-overview > .account-signout{
        grid-column:1 / -1;
    }

    .account-profile-overview > .account-signout{
        justify-self:center;
        width:min(420px, 100%);
    }

    .account-settings-list-secondary{
        margin-top:0;
    }
}

@media (max-width:760px){
    .account-page-header{
        min-height:72px;
        padding:0 20px;
    }

    .account-back{
        background-size:20px 20px;
    }

    .account-logo{
        font-size:25px;
    }

    .account-page{
        width:auto;
        padding:24px 20px 44px;
    }

    .account-profile-overview{
        margin-bottom:20px;
    }

    .account-profile-picture{
        margin-bottom:20px;
    }

    .account-profile-picture img{
        width:76px;
        height:76px;
    }

    .account-profile-picture h2{
        font-size:18px;
    }

    .account-personal-info,
    .account-status-overview{
        padding:20px;
        border-radius:17px;
    }

    .account-info-grid{
        grid-template-columns:1fr;
    }

    .account-status-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .account-status-grid > div:last-child{
        grid-column:1 / -1;
    }

    .personal-information-page{
        padding:38px 0 80px;
    }

    .personal-information-card{
        padding:22px;
        border-radius:18px;
    }

    .personal-photo-editor{
        align-items:flex-start;
        gap:16px;
    }

    .personal-photo-editor img{
        width:86px;
        height:86px;
        flex-basis:86px;
    }

    .personal-fields-grid{
        grid-template-columns:1fr;
    }

    .account-tabs{
        grid-template-columns:repeat(2, 1fr);
        gap:4px;
        border-bottom:0;
    }

    .account-tab{
        border:1px solid var(--line);
        border-radius:12px;
    }

    .account-tab.active{
        border-color:var(--accent);
        background:rgba(229,164,132,.08);
    }

    .account-tab.active::after{
        display:none;
    }

    .account-items{
        grid-template-columns:1fr;
    }

    .account-item-card{
        grid-template-columns:92px 1fr;
        gap:14px;
        padding:12px;
    }

    .account-item-image{
        width:92px;
        height:112px;
    }

    .account-item-title{
        font-size:17px;
    }

    .account-signout{
        padding:7px 10px;
        font-size:12px;
    }

    .account-review-modal{
        padding:26px 20px;
        border-radius:20px;
    }
}

@media (max-width:760px){
    .personal-photo-control{
        flex-basis:86px;
        width:86px;
        height:86px;
    }
}
