/* Customer account shell aligned with the SmartLinkGH admin visual system. */
.storefront-body .customer-app {
    --account-navy: #071a36;
    --account-navy-raised: #0b284f;
    --account-blue: #0868df;
    --account-blue-dark: #0754b5;
    --account-gold: #ffc21a;
    --account-ink: #10213b;
    --account-copy: #52647e;
    --account-muted: #78879d;
    --account-canvas: #f3f6fa;
    --account-line: #dce5ef;
    --account-green: #137848;
    --account-shadow: 0 1px 2px rgba(9, 30, 66, .05), 0 12px 28px rgba(9, 30, 66, .06);
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    grid-template-areas:
        "navigation header"
        "navigation content";
    align-items: start;
    gap: 16px 24px;
    min-height: calc(100vh - 72px);
    padding: 18px 28px 42px 0 !important;
    background: var(--account-canvas) !important;
}

.storefront-body .customer-app > .customer-tabs {
    grid-area: navigation;
    position: sticky;
    top: 90px;
    align-self: start;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 4px !important;
    width: 240px !important;
    min-height: calc(100vh - 108px) !important;
    max-height: calc(100vh - 108px);
    margin: 0 !important;
    padding: 18px 14px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 0 !important;
    border-radius: 0 14px 14px 0;
    background: var(--account-navy) !important;
    box-shadow: 9px 0 28px rgba(5, 27, 61, .08);
}

.storefront-body .customer-tabs::before {
    content: "My SmartLink" !important;
    display: block !important;
    margin: 0 4px 14px !important;
    padding: 3px 10px 17px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

.storefront-body .customer-tabs a,
.storefront-body .customer-tabs .tab-button {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 42px !important;
    padding: 0 13px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #b9c8dc !important;
    font-size: 13px !important;
    font-weight: 680 !important;
    text-align: left;
    transition: background .16s ease, color .16s ease, transform .16s ease !important;
}

.storefront-body .customer-tabs a:hover,
.storefront-body .customer-tabs .tab-button:hover {
    background: rgba(255, 255, 255, .07) !important;
    color: #fff !important;
    transform: translateX(2px);
}

.storefront-body .customer-tabs a.active {
    background: #12345f !important;
    color: #fff !important;
    box-shadow: inset 3px 0 0 var(--account-gold), inset 0 0 0 1px rgba(255, 255, 255, .07) !important;
}

.storefront-body .customer-tabs a.active::after {
    content: none !important;
}

.storefront-body .customer-tabs form {
    width: 100%;
    margin: auto 0 0 !important;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.storefront-body .customer-tabs .customer-profile {
    order: -1;
    display: grid !important;
    gap: 3px;
    width: auto;
    min-height: 62px;
    margin: 0 4px 14px !important;
    padding: 12px !important;
    border: 1px solid rgba(255, 255, 255, .09) !important;
    border-radius: 11px !important;
    background: rgba(255, 255, 255, .05) !important;
    color: #fff !important;
    font-size: 12px !important;
    line-height: 1.35;
    white-space: normal;
}

.storefront-body .customer-tabs .customer-profile::after {
    content: "Customer account";
    color: #8fa6c4;
    font-size: 10px;
    font-weight: 600;
}

.storefront-body .customer-app > .customer-account-header {
    grid-area: header;
    width: auto !important;
    max-width: none !important;
    min-height: 166px;
    margin: 0 !important;
    padding: 24px 26px !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: var(--account-navy-raised) !important;
    color: #fff !important;
    box-shadow: 0 18px 38px rgba(5, 27, 61, .15) !important;
}

.storefront-body .customer-account-header h1 {
    color: #fff !important;
    font-size: clamp(26px, 3vw, 34px) !important;
    font-weight: 780 !important;
}

.storefront-body .customer-account-header > div > p {
    color: #b9cce5 !important;
}

.storefront-body .customer-account-header .customer-actions .btn {
    border-color: var(--account-gold) !important;
    background: var(--account-gold) !important;
    color: var(--account-navy) !important;
    box-shadow: 0 9px 20px rgba(255, 194, 26, .18) !important;
}

.storefront-body .customer-account-header .customer-actions .ghost {
    border-color: rgba(255, 255, 255, .28) !important;
    background: rgba(255, 255, 255, .07) !important;
    color: #fff !important;
}

.storefront-body .customer-account-header .latest-order {
    border-color: rgba(255, 255, 255, .16) !important;
    background: rgba(255, 255, 255, .07) !important;
    color: #fff !important;
}

.storefront-body .customer-account-header .latest-label,
.storefront-body .customer-account-header .latest-line b small,
.storefront-body .customer-account-header .latest-recipient,
.storefront-body .customer-account-header .latest-recipient small,
.storefront-body .customer-account-header .latest-order > p {
    color: #b9cce5 !important;
}

.storefront-body .customer-account-header .latest-line b,
.storefront-body .customer-account-header .latest-order > p a {
    color: #fff !important;
}

.storefront-body .customer-account-header .mini-progress i {
    background: linear-gradient(90deg, var(--account-gold) 48%, rgba(255, 255, 255, .18) 48%) !important;
}

.storefront-body .customer-app > .customer-grid {
    grid-area: content;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    gap: 16px !important;
}

.storefront-body .customer-app .customer-main-col,
.storefront-body .customer-app .customer-side-col {
    gap: 16px !important;
}

.storefront-body .customer-app .customer-card {
    border: 0 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: var(--account-shadow) !important;
}

.storefront-body .customer-app .card-head {
    min-height: 62px;
    border-bottom-color: #e7edf4 !important;
}

.storefront-body .customer-app .card-head h2,
.storefront-body .customer-app .customer-card > h2 {
    color: var(--account-ink) !important;
    font-weight: 780 !important;
}

.storefront-body .customer-app .table thead,
.storefront-body .customer-app .table th {
    background: #f5f8fc !important;
}

.storefront-body .customer-app .table th {
    color: #65758d !important;
    letter-spacing: .06em !important;
}

.storefront-body .customer-app .table tbody tr {
    transition: background .15s ease, box-shadow .15s ease;
}

.storefront-body .customer-app .table tbody tr:hover {
    background: #f4f8fd !important;
    box-shadow: inset 3px 0 0 var(--account-blue);
}

.storefront-body .customer-app .buy-again-list > div {
    background: #fff !important;
    transition: background .15s ease, box-shadow .15s ease;
}

.storefront-body .customer-app .buy-again-list > div:hover {
    background: #f4f8fd !important;
    box-shadow: inset 3px 0 0 var(--account-blue);
}

.storefront-body .customer-app .quick-card {
    box-shadow: inset 0 3px 0 var(--account-blue), var(--account-shadow) !important;
}

.storefront-body .customer-app .wallet-card {
    box-shadow: inset 0 3px 0 var(--account-gold), var(--account-shadow) !important;
}

.storefront-body .customer-app .status-card {
    border-left: 3px solid var(--account-green) !important;
}

.storefront-body .customer-app .account-row {
    box-shadow: inset 3px 0 0 var(--account-blue), var(--account-shadow) !important;
}

@media (max-width: 1080px) {
    .storefront-body .customer-app {
        grid-template-columns: 212px minmax(0, 1fr);
        gap: 14px 18px;
        padding-right: 18px !important;
    }

    .storefront-body .customer-app > .customer-tabs {
        width: 212px !important;
    }
}

@media (max-width: 820px) {
    .storefront-body .customer-app {
        display: block;
        min-height: 0;
        padding: 0 0 34px !important;
    }

    .storefront-body .customer-app > .customer-tabs {
        position: static;
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 4px !important;
        width: 100% !important;
        min-height: 58px !important;
        max-height: none;
        margin: 0 !important;
        padding: 8px 14px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        border-radius: 0;
        box-shadow: none;
        scrollbar-width: none;
    }

    .storefront-body .customer-tabs::before,
    .storefront-body .customer-tabs .customer-profile {
        display: none !important;
    }

    .storefront-body .customer-tabs a,
    .storefront-body .customer-tabs .tab-button {
        width: auto;
        min-width: max-content;
        min-height: 40px !important;
        padding-inline: 11px !important;
    }

    .storefront-body .customer-tabs a.active {
        box-shadow: inset 0 -3px 0 var(--account-gold), inset 0 0 0 1px rgba(255, 255, 255, .07) !important;
    }

    .storefront-body .customer-tabs form {
        width: auto;
        margin: 0 !important;
        padding: 0;
        border: 0;
    }

    .storefront-body .customer-app > .customer-account-header,
    .storefront-body .customer-app > .customer-grid {
        width: min(100% - 24px, 760px) !important;
        margin-inline: auto !important;
    }

    .storefront-body .customer-app > .customer-account-header {
        margin-top: 12px !important;
    }

    .storefront-body .customer-app > .customer-grid {
        margin-top: 12px !important;
    }
}

@media (max-width: 520px) {
    .storefront-body .customer-app > .customer-account-header {
        padding: 20px 16px !important;
        border-radius: 13px !important;
    }

    .storefront-body .customer-account-header h1 {
        font-size: 25px !important;
    }

    .storefront-body .customer-account-header .customer-actions > * {
        flex: 1;
    }

    .storefront-body .customer-app .customer-card {
        border-radius: 12px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .storefront-body .customer-app * {
        transition-duration: .01ms !important;
    }
}

/* Customer account security */
.storefront-body .customer-security-card {
    overflow: visible !important;
}

.storefront-body .customer-security-card > .card-head {
    padding: 20px 22px 16px !important;
    border-bottom: 1px solid #e3e9f1;
}

.storefront-body .customer-security-card .card-head span {
    display: block;
    margin-top: 5px;
}

.storefront-body .customer-security-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 20px 22px 22px;
}

.storefront-body .customer-security-form .field {
    margin: 0;
}

.storefront-body .customer-security-form .field:first-child,
.storefront-body .customer-security-actions {
    grid-column: 1 / -1;
}

.storefront-body .customer-security-form input {
    border-color: #c8d4e3;
    background: #fff;
}

.storefront-body .customer-security-form input:focus {
    border-color: #1769d2;
    box-shadow: 0 0 0 3px rgba(23, 105, 210, .14);
    outline: 0;
}

.storefront-body .customer-security-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}

.storefront-body .customer-security-alert {
    margin: 18px 22px 0;
}

.storefront-body .customer-security-alert.success {
    border-color: #addac2 !important;
    background: #edf8f1 !important;
    color: #08733d !important;
}

@media (max-width: 700px) {
    .storefront-body .customer-security-form {
        grid-template-columns: 1fr;
        padding: 18px 14px;
    }

    .storefront-body .customer-security-form .field:first-child,
    .storefront-body .customer-security-actions {
        grid-column: auto;
    }

    .storefront-body .customer-security-actions .btn {
        width: 100%;
    }

    .storefront-body .customer-security-alert {
        margin-inline: 14px;
    }
}
