.account-page,
.order-detail-page,
.success-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 16px;
}

.account-card,
.order-detail-hero,
.order-detail-card,
.success-card {
    background: #fff;
    border: 1px solid #ebe4d8;
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 10px 26px rgba(55, 33, 25, .06);
}

.account-card h1,
.order-detail-hero h1,
.success-card h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
}

.subtitle,
.customer-phone,
.order-date,
.order-hero-meta,
.detail-item-meta {
    color: #756b63;
    font-size: 13px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 900;
}

.field input {
    width: 100%;
    padding: 13px;
    border: 1px solid #e4dace;
    border-radius: 14px;
    font-size: 15px;
}

.primary-btn,
.success-primary {
    display: block;
    width: 100%;
    text-align: center;
    border: none;
    background: #1e1e1e;
    color: #fff;
    padding: 15px;
    border-radius: 16px;
    font-weight: 900;
    text-decoration: none;
}

.secondary-btn,
.success-secondary {
    display: block;
    width: 100%;
    margin-top: 10px;
    text-align: center;
    text-decoration: none;
    background: #f8f5ef;
    color: #1e1e1e;
    padding: 14px;
    border-radius: 16px;
    font-weight: 900;
    border: 1px solid #ebe4d8;
}

.account-header,
.section-header,
.order-row,
.summary-line,
.success-row,
.detail-item-row,
.detail-info-row,
.order-hero-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.account-header,
.section-header,
.order-row {
    align-items: center;
}

.section-header a,
.logout-btn,
.order-back {
    color: #7a1f17;
    text-decoration: none;
    font-weight: 900;
}

.stats {
    margin-top: 16px;
}

.stat-card,
.success-info,
.detail-info-text,
.detail-comment,
.test-code {
    background: #f8f5ef;
    border-radius: 16px;
    padding: 14px;
}

.stat-title {
    color: #756b63;
    font-weight: 700;
}

.stat-value {
    font-size: 26px;
    font-weight: 900;
}

.order-row {
    padding: 14px 0;
    border-bottom: 1px solid #f0e7dc;
}

.order-row:last-child {
    border-bottom: none;
}

.order-link {
    color: inherit;
    text-decoration: none;
}

.order-number,
.detail-item-name {
    font-weight: 900;
}

.order-status,
.order-detail-status {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff1cc;
    color: #7a4d00;
    font-size: 13px;
    font-weight: 900;
}

.order-total {
    font-weight: 900;
    text-align: right;
}

.summary-line {
    padding: 9px 0;
}

.total-line {
    border-top: 1px solid #ebe4d8;
    margin-top: 8px;
    padding-top: 14px;
    font-size: 19px;
    font-weight: 900;
}

.success-card {
    text-align: center;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 28px;
    padding: 30px 22px;
}

.success-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #e7f5e8;
    color: #16823a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 900;
}

.success-subtitle {
    color: #756b63;
    line-height: 1.45;
    margin: 10px 0 18px;
}

.success-number {
    display: inline-block;
    background: #7a1f17;
    color: #fff;
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 20px;
}

.success-info {
    margin-bottom: 18px;
    text-align: left;
}

.success-row,
.detail-item-row,
.detail-info-row {
    padding: 12px 0;
    border-bottom: 1px solid #ebe4d8;
}

.success-row:last-child,
.detail-item-row:last-child,
.detail-info-row:last-child {
    border-bottom: none;
}

.success-row span,
.detail-info-row span {
    color: #756b63;
    font-weight: 700;
}

.success-row strong,
.detail-info-row strong {
    text-align: right;
}

.success-actions {
    display: grid;
    gap: 10px;
}

.order-label {
    color: #756b63;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.order-hero-top h1 {
    margin: 4px 0 0;
    font-size: 34px;
    font-weight: 900;
}

.order-hero-meta {
    margin-top: 10px;
    font-weight: 700;
}

.detail-info-text {
    margin: 8px 0 4px;
    line-height: 1.45;
}

.detail-comment {
    margin-top: 12px;
}

.detail-comment p {
    margin: 6px 0 0;
}
.status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.status-done {
    background: #e7f5e8;
    color: #16823a;
}

.status-cancelled {
    background: #ffd9d9;
    color: #9b1c1c;
}

.cancelled-row {
    background: #fff8f8;
}

.account-messages {
    margin-bottom: 18px;
}

.account-message {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #f3f4f6;
}

.account-message.success {
    background: #ecfdf3;
    color: #166534;
}

.account-message.error {
    background: #fef2f2;
    color: #b91c1c;
}

.section-description {
    margin-top: 4px;
    color: #6b7280;
    font-size: 14px;
}

.account-primary-button,
.account-secondary-button,
.account-address-button {
    border: 0;
    cursor: pointer;
    border-radius: 10px;
    font: inherit;
}

.account-primary-button {
    padding: 11px 16px;
    background: #111827;
    color: #ffffff;
}

.account-secondary-button {
    padding: 11px 14px;
    background: #f3f4f6;
    color: #111827;
}

.account-address-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.account-address-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.account-address-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.account-address-badge {
    padding: 3px 8px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #166534;
    font-size: 12px;
}

.account-address-text {
    margin-top: 7px;
}

.account-address-details {
    margin-top: 6px;
    color: #6b7280;
    font-size: 14px;
}

.account-address-actions {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.account-address-button {
    padding: 8px 11px;
    background: #f3f4f6;
    color: #111827;
}

.account-address-button.danger {
    background: #fef2f2;
    color: #b91c1c;
}

.account-address-form-wrapper {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #e5e7eb;
}

.account-address-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-address-form-header h3 {
    margin: 0;
}

.account-address-form-close {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

.account-address-search-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.account-address-status {
    min-height: 22px;
    margin-top: 10px;
    font-size: 14px;
}

.account-address-status.success {
    color: #166534;
}

.account-address-status.error {
    color: #b91c1c;
}

.account-address-map {
    width: 100%;
    height: 320px;
    margin-top: 12px;
    border-radius: 14px;
    overflow: hidden;
    background: #f3f4f6;
}

.account-address-fields {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.account-address-submit {
    margin-top: 18px;
}

@media (max-width: 700px) {
    .account-address-card {
        flex-direction: column;
    }

    .account-address-actions {
        width: 100%;
    }

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

    .account-address-search-row {
        flex-direction: column;
    }

    .account-address-search-row button {
        width: 100%;
    }

    .account-address-map {
        height: 270px;
    }
}

@media (max-width: 520px) {
    .account-header,
    .section-header,
    .order-hero-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .success-row,
    .detail-info-row {
        flex-direction: column;
        gap: 4px;
    }

    .success-row strong,
    .detail-info-row strong {
        text-align: left;
    }
}

/* ============================================================
 * CUSTOMER ACCOUNT DASHBOARD
 * 2026-08-15 redesign
 * ============================================================ */

.account-page.account-dashboard {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 34px 24px 64px;
}


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

.account-dashboard-grid {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.account-dashboard-content {
    min-width: 0;
    display: grid;
    gap: 20px;
}


/* ============================================================
 * SIDEBAR
 * ============================================================ */

.account-sidebar {
    position: sticky;
    top: 92px;

    min-height: 520px;
    padding: 20px 14px;

    display: flex;
    flex-direction: column;

    background: #ffffff;
    border: 1px solid #ebe4d8;
    border-radius: 22px;

    box-shadow:
        0 10px 35px rgba(55, 33, 25, .055);
}

.account-sidebar-title {
    padding: 4px 12px 18px;

    color: #241915;

    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
}

.account-sidebar-nav {
    display: grid;
    gap: 6px;
}

.account-nav-link {
    min-height: 48px;
    padding: 0 12px;

    display: flex;
    align-items: center;
    gap: 11px;

    border-radius: 13px;

    color: #574c46;

    font-size: 14px;
    font-weight: 800;

    text-decoration: none;

    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease;
}

.account-nav-link:hover {
    background: #f7f2eb;
    color: #241915;
}

.account-nav-link.active {
    background: #f2e7dc;
    color: #7a1f17;
}

.account-nav-icon {
    width: 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 22px;

    font-size: 18px;
    font-weight: 900;
}

.account-nav-count {
    min-width: 25px;
    height: 25px;
    padding: 0 7px;
    margin-left: auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background: #f1ebe5;
    color: #655950;

    font-size: 11px;
    font-weight: 900;
}

.account-nav-link.active .account-nav-count {
    background: #ffffff;
    color: #7a1f17;
}

.account-sidebar-footer {
    margin-top: auto;
    padding: 18px 12px 4px;

    display: grid;
    gap: 12px;

    border-top: 1px solid #eee7df;
}

.account-sidebar-logout {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #4e4540;

    font-size: 14px;
    font-weight: 800;

    text-decoration: none;
}

.account-sidebar-logout:hover {
    color: #7a1f17;
}

.account-sidebar-delete {
    color: #a33a32;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
}

.account-sidebar-delete:hover {
    text-decoration: underline;
}


/* ============================================================
 * PROFILE HERO
 * ============================================================ */

.account-profile-hero {
    position: relative;
    overflow: hidden;

    padding: 30px;

    background:
        linear-gradient(
            135deg,
            #241915 0%,
            #34221b 55%,
            #43271f 100%
        );

    border-radius: 26px;

    color: #ffffff;

    box-shadow:
        0 18px 42px rgba(44, 25, 18, .16);
}

.account-profile-hero::after {
    content: "";

    position: absolute;
    width: 280px;
    height: 280px;

    right: -110px;
    top: -150px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .035);

    pointer-events: none;
}

.account-profile-top {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    gap: 18px;
}

.account-profile-avatar {
    width: 68px;
    height: 68px;

    flex: 0 0 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;

    background:
        rgba(255, 255, 255, .09);

    font-size: 29px;
}

.account-profile-info {
    min-width: 0;
}

.account-profile-label {
    margin-bottom: 5px;

    color: rgba(255, 255, 255, .58);

    font-size: 11px;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: .1em;
}

.account-profile-hero h1 {
    margin: 0;

    color: #ffffff;

    font-size: 30px;
    line-height: 1.12;
    font-weight: 900;
}

.account-profile-phone {
    margin-top: 7px;

    color: rgba(255, 255, 255, .76);

    font-size: 15px;
    font-weight: 700;
}

.account-profile-stats {
    position: relative;
    z-index: 1;

    margin-top: 27px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 170px));
    gap: 10px;
}

.account-profile-stat {
    padding: 15px 17px;

    display: flex;
    flex-direction: column;
    gap: 3px;

    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px;

    background:
        rgba(255, 255, 255, .065);

    color: #ffffff;
    text-decoration: none;

    transition:
        background .18s ease,
        transform .18s ease;
}

.account-profile-stat:hover {
    background:
        rgba(255, 255, 255, .11);

    transform: translateY(-1px);
}

.account-profile-stat-value {
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
}

.account-profile-stat-label {
    color: rgba(255, 255, 255, .64);

    font-size: 12px;
    font-weight: 700;
}


/* ============================================================
 * SECTION CARDS
 * ============================================================ */

.account-section-card {
    padding: 24px 26px;

    background: #ffffff;

    border: 1px solid #ebe4d8;
    border-radius: 22px;

    box-shadow:
        0 10px 32px rgba(55, 33, 25, .05);
}

.account-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.account-section-heading-main {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 14px;
}

.account-section-icon {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #f4ede6;
    color: #7a1f17;

    font-size: 20px;
    font-weight: 900;
}

.account-section-heading h2 {
    margin: 0;

    color: #241915;

    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
}

.account-section-heading p {
    margin: 5px 0 0;

    color: #81766e;

    font-size: 13px;
    line-height: 1.45;
}

.account-section-link {
    flex: 0 0 auto;

    color: #7a1f17;

    font-size: 13px;
    font-weight: 900;

    text-decoration: none;
}

.account-section-link:hover {
    text-decoration: underline;
}


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

.account-dashboard .account-primary-button,
.account-dashboard .account-secondary-button,
.account-dashboard .account-outline-button,
.account-dashboard .account-address-button {
    min-height: 42px;

    border: 0;
    border-radius: 12px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 900;

    cursor: pointer;

    transition:
        transform .15s ease,
        background .15s ease,
        border-color .15s ease;
}

.account-dashboard .account-primary-button {
    padding: 10px 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    background: #7a1f17;
    color: #ffffff;

    text-decoration: none;
}

.account-dashboard .account-primary-button:hover {
    background: #681a14;
    transform: translateY(-1px);
}

.account-button-plus {
    font-size: 19px;
    line-height: 1;
    font-weight: 500;
}

.account-dashboard .account-secondary-button {
    padding: 10px 15px;

    background: #f5f1ed;
    color: #352d29;
}

.account-dashboard .account-secondary-button:hover {
    background: #eee7e0;
}

.account-outline-button {
    padding: 10px 16px;

    background: #ffffff;
    color: #4c423d;

    border: 1px solid #ddd3ca !important;
}

.account-outline-button:hover {
    border-color: #c6b9ae !important;
    background: #faf8f6;
}


/* ============================================================
 * MARKETING
 * ============================================================ */

.account-marketing-modern {
    margin-top: 20px;
    padding: 18px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    border: 1px solid #eee6de;
    border-radius: 16px;

    background: #fbf9f6;
}

.account-marketing-modern-info {
    min-width: 0;
}

.account-status-row {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #302925;

    font-size: 14px;
}

.account-status-dot {
    width: 9px;
    height: 9px;

    flex: 0 0 9px;

    border-radius: 50%;
}

.account-status-dot.enabled {
    background: #248447;

    box-shadow:
        0 0 0 4px rgba(36, 132, 71, .11);
}

.account-status-dot.disabled {
    background: #a8a09a;

    box-shadow:
        0 0 0 4px rgba(90, 80, 72, .08);
}

.account-marketing-modern-info > p {
    margin: 8px 0 0;

    color: #786e67;

    font-size: 13px;
    line-height: 1.5;
}

.account-marketing-date {
    margin-top: 9px;

    color: #978b82;

    font-size: 11px;
    font-weight: 700;
}

.account-document-link {
    display: inline-block;
    margin-top: 8px;

    color: #7a1f17;

    font-size: 12px;
    font-weight: 800;

    text-decoration: none;
}

.account-document-link:hover {
    text-decoration: underline;
}

.account-marketing-form {
    flex: 0 0 auto;
}


/* ============================================================
 * EMPTY STATE
 * ============================================================ */

.account-empty-state {
    margin-top: 20px;
    padding: 22px;

    display: flex;
    align-items: center;
    gap: 16px;

    border: 1px dashed #d9cfc5;
    border-radius: 17px;

    background: #fcfaf8;
}

.account-empty-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: #f1e8df;
    color: #7a1f17;

    font-size: 22px;
    font-weight: 900;
}

.account-empty-content {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-empty-content strong {
    color: #302925;

    font-size: 14px;
    font-weight: 900;
}

.account-empty-content span {
    color: #81766e;

    font-size: 13px;
    line-height: 1.45;
}

.account-orders-empty .account-primary-button {
    margin-left: auto;
    flex: 0 0 auto;
}


/* ============================================================
 * ADDRESSES
 * ============================================================ */

.account-dashboard .account-address-list {
    margin-top: 20px;

    display: grid;
    gap: 12px;
}

.account-dashboard .account-address-card {
    padding: 18px;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;

    border: 1px solid #e8dfd7;
    border-radius: 16px;

    background: #fcfbf9;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.account-dashboard .account-address-card:hover {
    border-color: #d8ccc1;

    box-shadow:
        0 7px 20px rgba(55, 33, 25, .045);
}

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

.account-dashboard .account-address-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;

    color: #2c2521;

    font-size: 15px;
}

.account-dashboard .account-address-badge {
    padding: 4px 8px;

    border-radius: 999px;

    background: #e9f5ec;
    color: #267341;

    font-size: 10px;
    font-weight: 900;
}

.account-dashboard .account-address-text {
    margin-top: 7px;

    color: #514943;

    font-size: 14px;
    line-height: 1.45;
}

.account-dashboard .account-address-details {
    margin-top: 5px;

    color: #8a7f77;

    font-size: 12px;
    line-height: 1.45;
}

.account-dashboard .account-address-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.account-dashboard .account-address-button {
    min-height: 36px;
    padding: 8px 11px;

    background: #f1ece7;
    color: #4d443e;

    font-size: 11px;
}

.account-dashboard .account-address-button:hover {
    background: #e9e2dc;
}

.account-dashboard .account-address-button.danger {
    background: #fff0ee;
    color: #a53229;
}

.account-dashboard .account-address-button.danger:hover {
    background: #fbe4e1;
}


/* ============================================================
 * ADDRESS FORM
 * ============================================================ */

.account-dashboard .account-address-form-wrapper {
    margin-top: 24px;
    padding: 24px;

    border: 1px solid #e6ddd5;
    border-radius: 18px;

    background: #faf7f3;
}

.account-dashboard .account-address-form-header {
    margin-bottom: 22px;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.account-dashboard .account-address-form-header h3 {
    margin: 0;

    color: #2d2622;

    font-size: 19px;
    font-weight: 900;
}

.account-dashboard .account-address-form-header p {
    margin: 5px 0 0;

    color: #82766e;

    font-size: 12px;
}

.account-dashboard .account-address-form-close {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: #eee7e1;
    color: #574d46;

    cursor: pointer;

    font-size: 25px;
    line-height: 1;
}

.account-dashboard .field {
    margin-bottom: 16px;
}

.account-dashboard .field label {
    display: block;
    margin-bottom: 7px;

    color: #403732;

    font-size: 12px;
    font-weight: 900;
}

.account-dashboard .field input {
    box-sizing: border-box;

    width: 100%;
    min-height: 46px;
    padding: 11px 13px;

    outline: none;

    border: 1px solid #ddd3ca;
    border-radius: 12px;

    background: #ffffff;
    color: #29231f;

    font-family: inherit;
    font-size: 14px;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.account-dashboard .field input:focus {
    border-color: #9c6c5e;

    box-shadow:
        0 0 0 3px rgba(122, 31, 23, .07);
}

.account-dashboard .account-address-search-row {
    margin-top: -2px;

    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.account-dashboard .account-address-status {
    min-height: 20px;
    margin-top: 9px;

    font-size: 12px;
    font-weight: 700;
}

.account-dashboard .account-address-status.success {
    color: #247340;
}

.account-dashboard .account-address-status.error {
    color: #ad3027;
}

.account-dashboard .account-address-map {
    width: 100%;
    height: 300px;
    margin-top: 9px;

    overflow: hidden;

    border: 1px solid #e0d7cf;
    border-radius: 15px;

    background: #eee9e4;
}

.account-dashboard .account-address-fields {
    margin-top: 17px;

    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 11px;
}

.account-dashboard .account-address-fields .field {
    margin-bottom: 0;
}

.account-dashboard .account-address-submit {
    margin-top: 19px;
}


/* ============================================================
 * ORDERS
 * ============================================================ */

.account-dashboard .order-row {
    padding: 17px 2px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    border-bottom: 1px solid #eee7e0;

    transition:
        background .15s ease,
        padding .15s ease;
}

.account-dashboard .account-section-heading + .order-row {
    margin-top: 14px;
}

.account-dashboard .order-row:hover {
    padding-left: 9px;
    padding-right: 9px;

    background: #fbf8f5;
}

.account-dashboard .order-link {
    color: inherit;
    text-decoration: none;
}

.account-dashboard .order-number {
    color: #302925;

    font-size: 14px;
    font-weight: 900;
}

.account-dashboard .order-date {
    margin-top: 4px;

    color: #8a7e75;

    font-size: 11px;
}

.account-dashboard .order-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.account-dashboard .order-status {
    padding: 7px 10px;

    border-radius: 999px;

    background: #fff1cc;
    color: #7a4d00;

    font-size: 10px;
    font-weight: 900;
}

.account-dashboard .order-total {
    min-width: 75px;

    color: #302925;

    font-size: 14px;
    font-weight: 900;

    text-align: right;
}

.account-order-arrow {
    color: #a69a91;

    font-size: 17px;
}


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

.account-dashboard > .account-messages {
    max-width: 962px;
    margin: 0 0 18px auto;
}

.account-dashboard .account-message {
    padding: 13px 16px;

    border: 1px solid transparent;
    border-radius: 13px;

    font-size: 13px;
    font-weight: 700;
}

.account-dashboard .account-message.success {
    border-color: #cfe9d6;

    background: #eff9f1;
    color: #22673a;
}

.account-dashboard .account-message.error {
    border-color: #f0d1cd;

    background: #fff3f1;
    color: #9c2c24;
}


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

@media (max-width: 980px) {

    .account-page.account-dashboard {
        padding:
            24px 18px 52px;
    }

    .account-dashboard-grid {
        grid-template-columns:
            210px minmax(0, 1fr);

        gap: 18px;
    }

    .account-sidebar {
        padding:
            17px 10px;
    }

    .account-sidebar-title {
        padding-left: 10px;
        padding-right: 10px;

        font-size: 16px;
    }

    .account-nav-link {
        padding:
            0 10px;

        font-size: 13px;
    }

    .account-section-card {
        padding:
            22px 20px;
    }

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


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

@media (max-width: 760px) {

    .account-page.account-dashboard {
        padding:
            16px 12px 42px;
    }

    .account-dashboard-grid {
        display: block;
    }

    .account-sidebar {
        position: static;

        min-height: 0;
        margin-bottom: 14px;
        padding: 10px;

        border-radius: 18px;
    }

    .account-sidebar-title {
        display: none;
    }

    .account-sidebar-nav {
        display: flex;
        gap: 5px;

        overflow-x: auto;

        scrollbar-width: none;
    }

    .account-sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .account-nav-link {
        min-width: max-content;
        min-height: 42px;

        padding: 0 11px;

        flex: 0 0 auto;

        border-radius: 11px;

        font-size: 12px;
    }

    .account-nav-icon {
        width: auto;

        flex-basis: auto;

        font-size: 15px;
    }

    .account-nav-count {
        min-width: 21px;
        height: 21px;

        padding: 0 5px;

        font-size: 9px;
    }

    .account-sidebar-footer {
        display: none;
    }

    .account-dashboard-content {
        gap: 14px;
    }

    .account-profile-hero {
        padding: 23px 20px;

        border-radius: 21px;
    }

    .account-profile-avatar {
        width: 56px;
        height: 56px;

        flex-basis: 56px;

        border-radius: 17px;

        font-size: 24px;
    }

    .account-profile-hero h1 {
        font-size: 24px;
    }

    .account-profile-phone {
        font-size: 13px;
    }

    .account-profile-stats {
        margin-top: 21px;

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

    .account-profile-stat {
        padding: 13px 14px;
    }

    .account-profile-stat-value {
        font-size: 21px;
    }

    .account-section-card {
        padding: 19px 17px;

        border-radius: 19px;
    }

    .account-section-heading {
        align-items: flex-start;
    }

    .account-section-heading-main {
        align-items: flex-start;
    }

    .account-section-icon {
        width: 39px;
        height: 39px;

        flex-basis: 39px;

        border-radius: 12px;

        font-size: 18px;
    }

    .account-section-heading h2 {
        font-size: 18px;
    }

    .account-section-heading p {
        font-size: 12px;
    }

    .account-marketing-modern {
        padding: 16px;

        align-items: flex-start;
        flex-direction: column;

        gap: 15px;
    }

    .account-marketing-form {
        width: 100%;
    }

    .account-marketing-form button {
        width: 100%;
    }

    .account-dashboard .account-address-card {
        flex-direction: column;
    }

    .account-dashboard .account-address-actions {
        width: 100%;

        justify-content: flex-start;
    }

    .account-empty-state {
        align-items: flex-start;
    }

    .account-orders-empty {
        flex-wrap: wrap;
    }

    .account-orders-empty .account-primary-button {
        width: 100%;
        margin-left: 0;
        margin-top: 3px;
    }

    .account-dashboard .account-address-map {
        height: 260px;
    }

    .account-dashboard .order-right {
        gap: 8px;
    }

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


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

@media (max-width: 520px) {

    .account-page.account-dashboard {
        padding:
            12px 10px 36px;
    }

    .account-profile-top {
        align-items: flex-start;
    }

    .account-profile-avatar {
        width: 50px;
        height: 50px;

        flex-basis: 50px;

        font-size: 21px;
    }

    .account-profile-label {
        font-size: 9px;
    }

    .account-profile-hero h1 {
        font-size: 21px;
    }

    .account-profile-stats {
        gap: 7px;
    }

    .account-section-heading {
        flex-direction: column;
        gap: 14px;
    }

    .account-section-heading > .account-primary-button {
        width: 100%;
    }

    .account-section-link {
        margin-left: 53px;
    }

    .account-empty-state {
        padding: 17px;

        flex-direction: column;
    }

    .account-empty-icon {
        width: 43px;
        height: 43px;

        flex-basis: 43px;
    }

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

    .account-dashboard .account-address-search-row {
        flex-direction: column;
    }

    .account-dashboard .account-address-search-row button {
        width: 100%;
    }

    .account-dashboard .account-address-form-wrapper {
        padding: 18px 15px;
    }

    .account-dashboard .order-row {
        align-items: flex-start;
    }

    .account-dashboard .order-right {
        align-items: flex-end;
        flex-direction: column;
    }

    .account-dashboard .order-total {
        min-width: 0;
    }
}



/* ============================================================
 * CUSTOMER ACCOUNT POLISH
 * ============================================================ */

.account-page.account-dashboard {
    max-width: 1180px;
    padding-top: 30px;
}


/* PAGE TITLE */

.account-page-heading {
    margin-bottom: 24px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.account-page-heading h1 {
    margin: 0;

    color: #211814;

    font-size: 34px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -.025em;
}

.account-page-subtitle {
    margin-top: 7px;

    color: #8b8078;

    font-size: 14px;
    font-weight: 600;
}

.account-page-logout {
    margin-bottom: 4px;

    color: #8c241b;

    font-size: 14px;
    font-weight: 900;

    text-decoration: none;
}

.account-page-logout:hover {
    text-decoration: underline;
}


/* GRID */

.account-dashboard-grid {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 26px;
}


/* SIDEBAR */

.account-sidebar {
    min-height: 455px;

    padding: 12px;

    border-radius: 18px;
}

.account-sidebar-nav {
    gap: 5px;
}

.account-nav-link {
    min-height: 49px;

    padding: 0 13px;

    border-radius: 12px;

    font-size: 13px;
}

.account-nav-link.active {
    background: #f1e5da;
    color: #8b2118;
}

.account-nav-icon {
    color: #4d443e;
}

.account-nav-link.active .account-nav-icon {
    color: #8b2118;
}


/* HERO */

.account-profile-hero {
    min-height: 210px;

    padding: 32px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background:
        linear-gradient(
            135deg,
            #1e1c1b 0%,
            #252323 58%,
            #2b2827 100%
        );

    border-radius: 20px;

    box-shadow:
        0 14px 34px rgba(35, 27, 23, .13);
}

.account-profile-hero::after {
    width: 330px;
    height: 330px;

    right: -115px;
    top: -205px;

    background:
        rgba(255, 255, 255, .035);
}

.account-profile-avatar {
    width: 70px;
    height: 70px;

    flex-basis: 70px;

    border-radius: 50%;

    background: #f0d5b5;
    color: #30231c;

    border: none;
}

.account-profile-avatar svg {
    width: 31px;
    height: 31px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-profile-label {
    display: none;
}

.account-profile-hero h1 {
    font-size: 27px;
}

.account-profile-phone {
    margin-top: 8px;

    color: rgba(255, 255, 255, .82);

    font-size: 15px;
}

.account-profile-stats {
    margin-top: 28px;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    max-width: 470px;

    gap: 14px;
}

.account-profile-stat {
    min-height: 82px;

    padding: 16px 18px;

    justify-content: center;

    border-radius: 13px;

    background:
        rgba(255, 255, 255, .035);

    border:
        1px solid rgba(255, 255, 255, .12);
}

.account-profile-stat-value {
    font-size: 25px;
}

.account-profile-stat-label {
    font-size: 12px;
}


/* CARDS */

.account-section-card {
    padding: 27px 28px;

    border-radius: 19px;
}

.account-section-heading h2 {
    font-size: 21px;
}

.account-section-heading p {
    font-size: 13px;
}


/* MARKETING */

.account-marketing-modern {
    margin-top: 22px;

    padding: 20px;

    border-radius: 14px;

    background: #faf7f3;
}


/* ADDRESSES */

.account-empty-state {
    min-height: 82px;

    border-radius: 14px;

    background: #fcfaf8;
}


/* ORDERS */

.account-dashboard .order-row {
    min-height: 64px;
}

.account-dashboard .order-number {
    font-size: 14px;
}

.account-dashboard .order-total {
    font-size: 15px;
}


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

@media (max-width: 980px) {

    .account-dashboard-grid {
        grid-template-columns:
            190px minmax(0, 1fr);

        gap: 18px;
    }

    .account-page-heading h1 {
        font-size: 30px;
    }

}


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

@media (max-width: 760px) {

    .account-page-heading {
        margin-bottom: 17px;

        align-items: center;
    }

    .account-page-heading h1 {
        font-size: 27px;
    }

    .account-page-subtitle {
        font-size: 12px;
    }

    .account-page-logout {
        margin: 0;

        font-size: 13px;
    }

    .account-profile-hero {
        min-height: auto;

        padding: 24px 20px;
    }

    .account-profile-avatar {
        width: 58px;
        height: 58px;

        flex-basis: 58px;
    }

    .account-profile-avatar svg {
        width: 27px;
        height: 27px;
    }

    .account-profile-hero h1 {
        font-size: 23px;
    }

    .account-profile-stats {
        max-width: none;
    }

    .account-section-card {
        padding: 20px 18px;
    }

}


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

@media (max-width: 480px) {

    .account-page.account-dashboard {
        padding-top: 18px;
    }

    .account-page-heading h1 {
        font-size: 24px;
    }

    .account-page-subtitle {
        display: none;
    }

    .account-profile-top {
        gap: 13px;
    }

    .account-profile-stats {
        margin-top: 22px;
    }

}


/* ============================================================
 * ACCOUNT SVG ICONS
 * ============================================================ */

.account-dashboard svg {
    display: block;
}

.account-nav-icon svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-section-icon svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-empty-icon svg {
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-sidebar-logout-icon {
    width: 20px;
    height: 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.account-sidebar-logout-icon svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Чуть аккуратнее мобильная навигация */

@media (max-width: 760px) {

    .account-nav-icon svg {
        width: 16px;
        height: 16px;
    }

    .account-nav-link {
        white-space: nowrap;
    }

    .account-profile-stats {
        width: 100%;
    }
}


/* ============================================================
 * ACCOUNT MOBILE FINAL
 * ============================================================ */

@media (max-width: 760px) {

    /* Страница */

    .account-page.account-dashboard {
        width: 100%;
        max-width: none;
        padding: 14px 10px 38px;
    }

    .account-page-heading {
        margin-bottom: 15px;
    }

    .account-page-heading h1 {
        font-size: 26px;
        line-height: 1.1;
    }

    .account-page-subtitle {
        margin-top: 5px;
        font-size: 12px;
    }


    /* Навигация превращается в горизонтальную */

    .account-sidebar {
        position: static;

        min-height: 0;
        margin: 0 0 14px;
        padding: 7px;

        border-radius: 16px;
    }

    .account-sidebar-nav {
        display: flex;
        gap: 5px;

        overflow-x: auto;
        overscroll-behavior-x: contain;

        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .account-sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .account-nav-link {
        min-width: max-content;
        min-height: 40px;

        padding: 0 10px;

        flex: 0 0 auto;

        gap: 7px;

        border-radius: 10px;

        font-size: 11px;
    }

    .account-nav-icon {
        width: 17px;
        flex: 0 0 17px;
    }

    .account-nav-icon svg {
        width: 16px;
        height: 16px;
    }

    .account-nav-count {
        min-width: 20px;
        height: 20px;

        padding: 0 5px;

        font-size: 9px;
    }

    .account-sidebar-footer {
        display: none;
    }


    /* Основной контент */

    .account-dashboard-grid {
        display: block;
    }

    .account-dashboard-content {
        display: grid;
        gap: 12px;
    }


    /* Профиль */

    .account-profile-hero {
        min-height: 0;
        padding: 20px 18px;

        border-radius: 18px;
    }

    .account-profile-top {
        gap: 13px;
    }

    .account-profile-avatar {
        width: 54px;
        height: 54px;

        flex: 0 0 54px;
    }

    .account-profile-avatar svg {
        width: 26px;
        height: 26px;
    }

    .account-profile-hero h1 {
        font-size: 22px;
        line-height: 1.15;
    }

    .account-profile-phone {
        margin-top: 5px;

        font-size: 12px;
    }

    .account-profile-stats {
        width: 100%;
        max-width: none;

        margin-top: 18px;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }

    .account-profile-stat {
        min-height: 67px;

        padding: 12px 13px;

        border-radius: 12px;
    }

    .account-profile-stat-value {
        font-size: 21px;
    }

    .account-profile-stat-label {
        font-size: 10px;
    }


    /* Карточки */

    .account-section-card {
        padding: 17px 15px;

        border-radius: 17px;
    }

    .account-section-heading {
        display: flex;
        align-items: flex-start;
        gap: 11px;
    }

    .account-section-heading-main {
        gap: 10px;
    }

    .account-section-icon {
        width: 38px;
        height: 38px;

        flex: 0 0 38px;

        border-radius: 11px;
    }

    .account-section-icon svg {
        width: 19px;
        height: 19px;
    }

    .account-section-heading h2 {
        font-size: 17px;
    }

    .account-section-heading p {
        margin-top: 3px;

        font-size: 11px;
        line-height: 1.4;
    }


    /* Рассылки */

    .account-marketing-modern {
        margin-top: 15px;
        padding: 14px;

        flex-direction: column;
        align-items: stretch;

        gap: 13px;

        border-radius: 13px;
    }

    .account-status-row {
        font-size: 13px;
    }

    .account-marketing-modern-info > p {
        font-size: 11px;
    }

    .account-marketing-date,
    .account-document-link {
        font-size: 10px;
    }

    .account-marketing-form {
        width: 100%;
    }

    .account-marketing-form button {
        width: 100%;
    }


    /* Адреса */

    #account-addresses .account-section-heading {
        flex-wrap: wrap;
    }

    #account-addresses
    .account-section-heading
    > .account-primary-button {
        width: 100%;
        margin-top: 3px;
    }

    .account-empty-state {
        min-height: 0;

        margin-top: 15px;
        padding: 15px;

        align-items: flex-start;

        gap: 12px;

        border-radius: 13px;
    }

    .account-empty-icon {
        width: 42px;
        height: 42px;

        flex: 0 0 42px;

        border-radius: 12px;
    }

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

    .account-empty-content strong {
        font-size: 12px;
    }

    .account-empty-content span {
        font-size: 11px;
    }


    /* Форма адреса */

    .account-dashboard .account-address-form-wrapper {
        margin-top: 16px;
        padding: 15px 13px;

        border-radius: 15px;
    }

    .account-dashboard .account-address-form-header {
        margin-bottom: 17px;
    }

    .account-dashboard .account-address-form-header h3 {
        font-size: 17px;
    }

    .account-dashboard .account-address-form-header p {
        font-size: 10px;
    }

    .account-dashboard .field label {
        font-size: 11px;
    }

    .account-dashboard .field input {
        min-height: 43px;

        padding: 10px 11px;

        font-size: 13px;
    }

    .account-dashboard .account-address-search-row {
        flex-direction: column;
    }

    .account-dashboard
    .account-address-search-row
    button {
        width: 100%;
    }

    .account-dashboard .account-address-map {
        height: 230px;

        border-radius: 12px;
    }

    .account-dashboard .account-address-fields {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 9px;
    }


    /* Сохранённые адреса */

    .account-dashboard .account-address-card {
        padding: 14px;

        flex-direction: column;

        gap: 12px;

        border-radius: 13px;
    }

    .account-dashboard .account-address-actions {
        width: 100%;

        justify-content: flex-start;
    }


    /* Заказы */

    #account-orders .account-section-heading {
        flex-direction: row;
        align-items: center;
    }

    #account-orders .account-section-link {
        margin-left: auto;

        white-space: nowrap;

        font-size: 11px;
    }

    .account-dashboard .order-row {
        min-height: 0;

        padding: 14px 2px;

        align-items: flex-start;

        gap: 10px;
    }

    .account-dashboard .order-number {
        font-size: 12px;
    }

    .account-dashboard .order-date {
        font-size: 10px;
    }

    .account-dashboard .order-right {
        gap: 5px;

        flex-direction: column;
        align-items: flex-end;
    }

    .account-dashboard .order-status {
        padding: 5px 7px;

        font-size: 8px;
    }

    .account-dashboard .order-total {
        min-width: 0;

        font-size: 12px;
    }

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


/* ============================================================
 * VERY SMALL MOBILE
 * ============================================================ */

@media (max-width: 390px) {

    .account-page.account-dashboard {
        padding-left: 8px;
        padding-right: 8px;
    }

    .account-page-heading h1 {
        font-size: 23px;
    }

    .account-page-subtitle {
        display: none;
    }

    .account-profile-hero {
        padding: 18px 15px;
    }

    .account-profile-avatar {
        width: 48px;
        height: 48px;

        flex-basis: 48px;
    }

    .account-profile-avatar svg {
        width: 23px;
        height: 23px;
    }

    .account-profile-hero h1 {
        font-size: 19px;
    }

    .account-profile-phone {
        font-size: 11px;
    }

    .account-section-card {
        padding: 15px 13px;
    }

    .account-dashboard .account-address-fields {
        grid-template-columns:
            1fr 1fr;
    }
}
