* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    color: #1f2937;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 16px;
}

.auth-card {
    width: min(460px, 100%);
    padding: 28px;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(0,0,0,.06);
}

.auth-card.wide {
    width: min(620px, 100%);
}

.auth-logo {
    display: inline-flex;
    margin-bottom: 18px;
    color: #171b24;
    text-decoration: none;
    font-weight: 700;
}

.auth-card h1 {
    margin: 0 0 7px;
    font-size: var(--tl-type-900);
}

.auth-subtitle {
    margin: 0 0 22px;
    color: #687181;
    font-size: var(--tl-type-300);
    line-height: 1.8;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-field {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.auth-field.span-2 {
    grid-column: 1 / -1;
}

.auth-field label {
    font-size: var(--tl-type-300);
    color: #4f5866;
}

.auth-field input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d2d7df;
    border-radius: 9px;
    outline: 0;
    font: inherit;
}

.auth-field input:focus {
    border-color: #858d99;
}

.auth-field span[data-valmsg-for],
.auth-validation {
    color: #b42318;
    font-size: var(--tl-type-200);
}

.auth-remember {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 12px 0 16px;
    font-size: var(--tl-type-200);
    color: #596271;
}

.auth-button {
    width: 100%;
    min-height: 43px;
    border: 0;
    border-radius: 9px;
    background: #171b24;
    color: #fff;
    cursor: pointer;
    font: inherit;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 17px;
    font-size: var(--tl-type-200);
}

.auth-links a {
    color: #313844;
    text-decoration: none;
}

.account-page {
    padding: 34px 0 64px;
}

.account-heading {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.account-heading h1 {
    margin: 0;
    font-size: var(--tl-type-1000);
}

.account-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: var(--tl-type-200);
}

.account-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.account-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.account-card h2 {
    margin: 0 0 14px;
    font-size: var(--tl-type-700);
}

.account-profile-row,
.order-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: var(--tl-type-200);
}

.account-profile-row:last-child,
.order-meta-row:last-child {
    border-bottom: 0;
}

.account-profile-row span,
.order-meta-row span {
    color: var(--muted);
}

.account-actions {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.account-actions form {
    margin: 0;
}

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

.customer-orders {
    overflow-x: auto;
}

.customer-orders table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
    font-size: var(--tl-type-200);
}

.customer-orders th,
.customer-orders td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    text-align: right;
}

.customer-orders th {
    color: var(--muted);
    font-weight: 500;
}

.customer-orders a {
    text-decoration: none;
    font-weight: 700;
}

.customer-empty {
    padding: 24px 0;
    color: var(--muted);
    text-align: center;
    font-size: var(--tl-type-300);
}

.customer-order-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 16px;
    align-items: start;
}

.order-items-card {
    min-width: 0;
}

.order-items-list {
    display: grid;
    gap: 9px;
}

.customer-order-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.customer-order-item:last-child {
    border-bottom: 0;
}

.customer-order-item strong,
.customer-order-item small {
    display: block;
}

.customer-order-item small {
    margin-top: 3px;
    color: var(--muted);
    font-size: var(--tl-type-100);
}

.order-address {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: var(--tl-type-200);
    line-height: 2;
}

@media (max-width: 820px) {
    .account-layout,
    .customer-order-detail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-field.span-2 {
        grid-column: 1;
    }

    .auth-card {
        padding: 22px 17px;
    }

    .account-heading {
        flex-direction: column;
    }
}

/* TEHRANLIGHT_PHASE_39_ADDRESS_BOOK */
.address-heading-actions,
.address-card-actions,
.address-card-head,
.address-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* TEHRANLIGHT_AUTH_DUAL_THEME */
:root {
    --auth-bg: #f3f5f9;
    --auth-surface: rgba(255,255,255,.84);
    --auth-text: #172033;
    --auth-muted: #687487;
    --auth-line: rgba(20,32,51,.12);
    --auth-accent: #f5c84c;
}

html { color-scheme: light; }
body {
    color: var(--auth-text);
}

.auth-shell { position: relative; isolation: isolate; }
.auth-card {
    border-color: rgba(255,255,255,.85);
    background: var(--auth-surface);
    box-shadow: 0 24px 70px rgba(20,31,48,.10), inset 0 1px 0 rgba(255,255,255,.9);
    backdrop-filter: blur(22px) saturate(135%);
}
.auth-logo, .auth-links a { color: var(--auth-text); }
.auth-subtitle, .auth-remember { color: var(--auth-muted); }
.auth-field label { color: #4f5a6b; }
.auth-field input {
    color: var(--auth-text);
    border-color: var(--auth-line);
    background: rgba(255,255,255,.78);
}
.auth-field input:focus { border-color: rgba(75,169,217,.58); box-shadow: 0 0 0 4px rgba(75,169,217,.1); }
.auth-button { min-height: 46px; border-radius: 12px; background: #111b2b; }
.auth-theme-toggle {
    position: fixed;
    z-index: 20;
    top: 18px;
    left: 18px;
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid var(--auth-line);
    border-radius: 13px;
    color: var(--auth-text);
    background: rgba(255,255,255,.68);
    box-shadow: 0 10px 28px rgba(20,31,48,.08);
    font: inherit;
    font-size: var(--tl-type-100);
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(16px);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --auth-bg: #080e18;
    --auth-surface: rgba(15,24,39,.86);
    --auth-text: #edf2fa;
    --auth-muted: #99a6b8;
    --auth-line: rgba(218,228,243,.14);
}
html[data-theme="dark"] .auth-card { border-color: rgba(255,255,255,.08); background: var(--auth-surface); box-shadow: 0 26px 76px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.055); }
html[data-theme="dark"] .auth-field label { color: #bdc7d5; }
html[data-theme="dark"] .auth-field input { color: var(--auth-text); border-color: var(--auth-line); background: rgba(255,255,255,.055); }
html[data-theme="dark"] .auth-field input::placeholder { color: #748196; }
html[data-theme="dark"] .auth-field input:focus { background: rgba(20,31,49,.98); }
html[data-theme="dark"] .auth-button { color: #0b111d; background: linear-gradient(145deg,#ffe28b,var(--auth-accent)); }
html[data-theme="dark"] .auth-button[style] { color: #dce5f1 !important; border: 1px solid var(--auth-line) !important; background: rgba(255,255,255,.06) !important; }
html[data-theme="dark"] .auth-theme-toggle { color: var(--auth-text); border-color: var(--auth-line); background: rgba(255,255,255,.055); box-shadow: 0 10px 28px rgba(0,0,0,.2); }
html[data-theme="dark"] .store-alert.success { color: #9be0b9; background: rgba(21,94,62,.25); }
html[data-theme="dark"] .store-alert.error { color: #ffaaa4; background: rgba(103,38,42,.27); }

.address-heading-actions {
    justify-content: flex-end;
}

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

.address-card {
    display: grid;
    gap: 16px;
}

.address-card-head {
    justify-content: space-between;
    align-items: flex-start;
}

.address-card-head h2 {
    margin: 0 0 8px;
}

.address-badges span {
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: var(--tl-type-100);
}

.address-lines {
    display: grid;
    gap: 6px;
    line-height: 1.9;
    font-size: var(--tl-type-200);
}

.address-card-actions form {
    margin: 0;
}

.address-delete {
    border-color: #f0b8b8;
}

.customer-address-form {
    max-width: 850px;
    margin: 0 auto;
}

.customer-address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.customer-address-grid .span-2 {
    grid-column: 1 / -1;
}

.address-default-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

@media (max-width: 760px) {
    .address-book-grid,
    .customer-address-grid {
        grid-template-columns: 1fr;
    }

    .customer-address-grid .span-2 {
        grid-column: 1;
    }

    .address-heading-actions {
        justify-content: flex-start;
    }
}

/* TEHRANLIGHT_PHASE_40_PROFILE */
.profile-phone-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.profile-phone-box span {
    color: var(--muted);
    font-size: var(--tl-type-100);
}

/* TEHRANLIGHT_PHASE_41_PASSWORD */
.profile-security-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* TEHRANLIGHT_PHASE_45_TRACKING */
.customer-tracking-box {
    display: grid;
    gap: 8px;
    margin: 14px 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafb;
}

.customer-tracking-box > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: var(--tl-type-200);
}

.customer-tracking-box > a {
    margin-top: 4px;
}

/* Final dark hardening for later account modules */
html[data-theme="dark"] :is(.account-card,.address-card,.customer-order-detail,.order-items-card,.profile-phone-box,.customer-tracking-box) {
    color: var(--auth-text);
    border-color: var(--auth-line) !important;
    background: rgba(255,255,255,.045) !important;
    box-shadow: none;
}
html[data-theme="dark"] :is(.customer-address-form,.profile-form,.password-form) :is(input,select,textarea) {
    color: var(--auth-text) !important;
    border-color: var(--auth-line) !important;
    background: rgba(255,255,255,.055) !important;
}
html[data-theme="dark"] :is(.customer-address-form,.profile-form,.password-form) :is(input,select,textarea):focus {
    border-color: rgba(75,169,217,.58) !important;
    background: rgba(20,31,49,.98) !important;
}
html[data-theme="dark"] select option { color: #edf2fa; background: #111b2b; }
html[data-theme="dark"] input:-webkit-autofill,
html[data-theme="dark"] input:-webkit-autofill:hover,
html[data-theme="dark"] input:-webkit-autofill:focus {
    -webkit-text-fill-color: #edf2fa !important;
    -webkit-box-shadow: 0 0 0 1000px #172235 inset !important;
    caret-color: #edf2fa;
}

/* TEHRANLIGHT_ACCOUNT_MOBILE_QA */
.auth-card,
.account-card,
.address-card,
.customer-address-form,
.profile-form,
.password-form {
    min-width: 0;
}

.auth-field :where(input, select, textarea),
.customer-address-form :where(input, select, textarea),
.profile-form :where(input, select, textarea),
.password-form :where(input, select, textarea) {
    max-width: 100%;
}

@media (max-width: 700px) {
    .customer-orders {
        overflow: visible;
    }

    .customer-orders table,
    .customer-orders tbody,
    .customer-orders tr,
    .customer-orders td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .customer-orders table {
        border-collapse: separate;
        font-size: var(--tl-type-200);
    }

    .customer-orders thead {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .customer-orders tbody {
        display: grid;
        gap: 11px;
    }

    .customer-orders tr {
        padding: 6px 12px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: rgba(255, 255, 255, .48);
    }

    .customer-orders td {
        display: grid;
        grid-template-columns: minmax(88px, .8fr) minmax(0, 1.2fr);
        gap: 12px;
        padding: 9px 0;
        text-align: left;
        overflow-wrap: anywhere;
    }

    .customer-orders td::before {
        content: attr(data-label);
        color: var(--muted);
        text-align: right;
        font-weight: 500;
    }

    .customer-orders td:last-child {
        border-bottom: 0;
    }

    .account-profile-row,
    .order-meta-row,
    .customer-tracking-box > div {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .account-profile-row strong,
    .order-meta-row strong,
    .customer-tracking-box b {
        max-width: 62%;
        overflow-wrap: anywhere;
        text-align: left;
    }

    .address-heading-actions,
    .address-card-actions,
    .profile-security-actions {
        width: 100%;
    }

    .address-heading-actions > .btn,
    .address-card-actions > .btn,
    .address-card-actions > form,
    .address-card-actions > form .btn {
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .auth-shell {
        align-items: start;
        padding-top: calc(78px + env(safe-area-inset-top));
        padding-right: max(14px, env(safe-area-inset-right));
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
        padding-left: max(14px, env(safe-area-inset-left));
    }

    .auth-theme-toggle {
        top: calc(12px + env(safe-area-inset-top));
        left: max(12px, env(safe-area-inset-left));
    }

    .auth-card {
        width: 100%;
        padding: 21px 16px;
        border-radius: 16px;
    }

    .auth-field input,
    .customer-address-form :where(input, select, textarea),
    .profile-form :where(input, select, textarea),
    .password-form :where(input, select, textarea) {
        min-height: 44px;
        font-size: var(--tl-type-600);
    }

    .auth-button,
    .account-actions .btn,
    .address-heading-actions .btn,
    .profile-security-actions .btn {
        width: 100%;
        min-height: 44px;
    }

    .address-heading-actions,
    .address-card-actions,
    .profile-security-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .address-card-actions > form {
        width: 100%;
    }

    .customer-order-item {
        grid-template-columns: minmax(0, 1fr);
    }

    .customer-order-item > strong {
        padding-top: 8px;
        border-top: 1px dashed var(--line);
        text-align: left;
    }
}

html[data-theme="dark"] .customer-orders tr {
    border-color: var(--auth-line);
    background: rgba(255, 255, 255, .035);
}
.account-section-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.account-section-title h2{margin:0}.account-section-title a{color:var(--accent-strong);font-weight:800;text-decoration:none}.orders-page-card{width:100%}@media(max-width:700px){.account-section-title{align-items:flex-start;flex-direction:column}.orders-page-card{padding:14px}.orders-page-card .customer-orders table,.orders-page-card .customer-orders tbody,.orders-page-card .customer-orders tr,.orders-page-card .customer-orders td{display:block;width:100%}.orders-page-card .customer-orders thead{display:none}.orders-page-card .customer-orders tr{padding:12px 0;border-bottom:1px solid var(--line)}.orders-page-card .customer-orders td{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border:0}.orders-page-card .customer-orders td:before{content:attr(data-label);color:var(--muted)}.orders-page-card .customer-orders td:last-child:before{display:none}.orders-page-card .customer-orders td:last-child .btn{width:100%;margin-top:6px}}

/* TEHRANLIGHT_MY_ACCOUNT_SHELL_1_0_11_REFINED */

.customer-account-section-header {
    position: sticky;
    top: 0;
    z-index: 70;
}

.customer-account-section-header__inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.customer-account-section-header__identity {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 2px;
}

.customer-account-section-header__identity strong {
    overflow: hidden;
    color: var(--text, #172033);
    font-size: var(--tl-type-600);
    font-weight: 900;
    letter-spacing: -.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-account-section-header__identity small {
    overflow: hidden;
    color: var(--muted, #687487);
    font-size: var(--tl-type-100);
    font-weight: 600;
    line-height: 1.65;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-account-section-back {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid var(--line, rgba(20,32,51,.12));
    border-radius: 10px;
    background: rgba(255,255,255,.52);
    color: var(--text, #172033);
    text-decoration: none;
    font-size: var(--tl-type-100);
    font-weight: 800;
    white-space: nowrap;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.customer-account-section-back:hover {
    border-color: rgba(75,169,217,.30);
    background: var(--tl-secondary-header-button-hover-bg);
    transform: translateX(1px);
}

.customer-account-section-back__icon {
    font-size: var(--tl-type-600);
    line-height: 1;
}

.customer-account-main {
    min-height: calc(100vh - 64px);
}

.customer-account-body .account-page {
    padding-top: 22px;
    padding-bottom: 28px;
}

/* The official secondary header above replaces per-view headings. */
.customer-account-section .account-heading,
.customer-account-section .customer-address-capture-header {
    display: none !important;
}

.account-hub-page {
    max-width: 820px;
}

.account-hub-nav {
    overflow: hidden;
    display: grid;
    border: 1px solid var(--line, rgba(20,32,51,.10));
    border-radius: 16px;
    background: rgba(255,255,255,.74);
    box-shadow: 0 14px 42px rgba(20,31,48,.06);
}

.account-hub-row {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line, rgba(20,32,51,.10));
    color: var(--text, #172033);
    text-decoration: none;
    font-size: var(--tl-type-300);
    font-weight: 850;
    transition: background .18s ease, padding .18s ease;
}

.account-hub-row:last-child {
    border-bottom: 0;
}

.account-hub-row:hover {
    padding-inline-start: 21px;
    background: rgba(75,169,217,.055);
}

.account-hub-row__arrow {
    flex: 0 0 auto;
    color: var(--muted, #687487);
    font-size: var(--tl-type-700);
    line-height: 1;
}

/* Addresses keeps its primary action inside content, not in the page header. */
.customer-account-section .account-heading:has(.address-heading-actions) {
    display: flex !important;
    justify-content: flex-end;
    min-height: 0;
    margin: 0 0 14px;
}

.customer-account-section .account-heading:has(.address-heading-actions) > div,
.customer-account-section .address-heading-actions > a[href="/customer/account"] {
    display: none !important;
}

.customer-account-section .address-heading-actions {
    width: auto;
    display: flex;
    justify-content: flex-end;
    margin: 0;
}

.wallet-balance-card {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    padding: 22px;
    background:
        linear-gradient(135deg, rgba(245,200,76,.15), rgba(75,169,217,.08)),
        #fff;
}

.wallet-balance-card > span,
.wallet-balance-card > small {
    color: var(--muted);
}

.wallet-balance-card > strong {
    font-size: var(--tl-type-fluid-page-title);
    letter-spacing: -.04em;
}

.wallet-message {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    line-height: 1.8;
    font-size: var(--tl-type-200);
}

.wallet-message--success {
    border-color: rgba(22,121,79,.28);
    background: rgba(22,121,79,.08);
    color: #12643f;
}

.wallet-message--info {
    border-color: rgba(75,169,217,.28);
    background: rgba(75,169,217,.08);
    color: var(--text);
}

.wallet-message--error {
    border-color: rgba(180,35,24,.3);
    background: rgba(180,35,24,.08);
    color: #8e1b14;
}

.wallet-topup-card {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}

.wallet-topup-help {
    margin: 0;
    color: var(--muted);
    font-size: var(--tl-type-200);
    line-height: 1.9;
}

.wallet-topup-form {
    display: grid;
    gap: 10px;
    max-width: 620px;
}

.wallet-topup-form > label {
    font-size: var(--tl-type-200);
    font-weight: 800;
}

.wallet-topup-input-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
}

.wallet-topup-input-row input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.wallet-topup-input-row > span {
    color: var(--muted);
    white-space: nowrap;
    font-weight: 700;
}

.wallet-topup-suggestion {
    color: var(--muted);
    line-height: 1.8;
}

.wallet-topup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.wallet-topup-return {
    background: transparent;
}

.account-list-card {
    min-width: 0;
}

.account-section-title > span {
    color: var(--muted);
    font-size: var(--tl-type-100);
}

.account-history-list {
    display: grid;
}

.account-history-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.account-history-row:last-child {
    border-bottom: 0;
}

.account-history-main,
.account-history-meta {
    display: grid;
    gap: 5px;
}

.account-history-main span,
.account-history-main small,
.account-history-meta span {
    color: var(--muted);
    font-size: var(--tl-type-100);
}

.account-history-meta {
    min-width: 180px;
    text-align: left;
}

.account-history-meta a {
    color: var(--accent-strong);
    text-decoration: none;
    font-size: var(--tl-type-100);
    font-weight: 800;
}

.wallet-credit { color: #16794f; }
.wallet-debit { color: #b42318; }

.account-note {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(75,169,217,.16);
    border-radius: 12px;
    background: rgba(75,169,217,.07);
    color: var(--muted);
    font-size: var(--tl-type-200);
    line-height: 1.9;
}

.coupon-history-grid {
    display: grid;
    gap: 10px;
}

.coupon-history-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(150px, .8fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255,255,255,.45);
}

.coupon-history-card > div {
    display: grid;
    gap: 4px;
}

.coupon-history-card span,
.coupon-history-card small {
    color: var(--muted);
    font-size: var(--tl-type-100);
}

.coupon-history-card a {
    color: var(--accent-strong);
    text-decoration: none;
    font-weight: 800;
}

.coupon-history-value { text-align: center; }
.coupon-history-order { text-align: left; }

.bank-account-form {
    max-width: 760px;
}

.field-hint {
    color: var(--muted);
    font-size: var(--tl-type-100);
    line-height: 1.8;
}

.security-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.security-card > div { min-width: 0; }
.security-card h2 { margin-bottom: 7px; }

.security-card p,
.security-disabled {
    margin: 0;
    color: var(--muted);
    font-size: var(--tl-type-200);
    line-height: 1.9;
}

html[data-theme="dark"] .customer-account-section-header__identity strong,
html[data-theme="dark"] .customer-account-section-back,
html[data-theme="dark"] .account-hub-row {
    color: var(--auth-text);
}

html[data-theme="dark"] .customer-account-section-back,
html[data-theme="dark"] .account-hub-nav,
html[data-theme="dark"] .wallet-balance-card,
html[data-theme="dark"] .coupon-history-card {
    border-color: var(--auth-line);
    background: rgba(255,255,255,.045);
    box-shadow: none;
}

html[data-theme="dark"] .customer-account-section-back:hover,
html[data-theme="dark"] .account-hub-row:hover {
    background: rgba(255,255,255,.075);
}


html[data-theme="dark"] .wallet-topup-input-row input {
    color: var(--auth-text);
    border-color: var(--auth-line);
    background: rgba(255,255,255,.055);
}

html[data-theme="dark"] .wallet-message--success {
    color: #b9f3d3;
    background: rgba(31,132,88,.16);
}

html[data-theme="dark"] .wallet-message--info {
    color: var(--auth-text);
    background: rgba(75,169,217,.12);
}

html[data-theme="dark"] .wallet-message--error {
    color: #ffc2bb;
    background: rgba(180,35,24,.16);
}

@media (max-width: 700px) {
    .customer-account-section-header__inner {
        min-height: 58px;
        gap: 10px;
    }

    .customer-account-section-header__identity strong {
        font-size: var(--tl-type-500);
    }

    .customer-account-section-header__identity small {
        font-size: var(--tl-type-100);
    }

    .customer-account-section-back {
        min-height: 34px;
        padding: 0 9px;
        font-size: var(--tl-type-100);
    }

    .customer-account-main {
        min-height: calc(100vh - 58px);
    }

    .customer-account-body .account-page {
        padding-top: 16px;
        padding-bottom: 22px;
    }

    .account-hub-nav {
        border-radius: 13px;
    }


    .wallet-topup-input-row {
        grid-template-columns: 1fr;
    }

    .wallet-topup-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .wallet-topup-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .account-hub-row {
        min-height: 54px;
        padding: 0 14px;
        font-size: var(--tl-type-200);
    }

    .account-history-row,
    .coupon-history-card {
        grid-template-columns: 1fr;
    }

    .account-history-meta,
    .coupon-history-value,
    .coupon-history-order {
        min-width: 0;
        text-align: right;
    }
}

@media (max-width: 620px) {
    .security-card {
        align-items: stretch;
        flex-direction: column;
    }

    .security-card .btn {
        width: 100%;
    }
}


/* TEHRANLIGHT_ACCOUNT_OFFICIAL_SECONDARY_HEADER_V3
   Mirrors the official product-detail secondary-header geometry:
   centered identity, compact caption, square back action on the right. */
.customer-account-section-header {
    padding: 14px 0 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.customer-account-section-header__inner {
    min-height: 0;
}

.customer-account-official-header {
    width: 100%;
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(46px, 1fr) minmax(0, auto) minmax(46px, 1fr);
    grid-template-areas: "right identity left";
    align-items: center;
    gap: 10px;
    padding: 7px;
    border: 1px solid rgba(113, 128, 150, .24);
    border-radius: 15px;
    color: var(--tl-secondary-header-text);
    background: var(--tl-secondary-header-bg);
    box-shadow:
        0 1px 0 rgba(255,255,255,.84) inset,
        0 8px 24px rgba(18, 29, 45, .055);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.customer-account-official-header__side {
    min-width: 46px;
    display: flex;
    align-items: center;
}

.customer-account-official-header__side--right {
    grid-area: right;
    justify-content: flex-start;
}

.customer-account-official-header__side--left {
    grid-area: left;
    justify-content: flex-end;
}

.customer-account-section-header__identity {
    grid-area: identity;
    width: min(58vw, 440px);
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 1px;
    text-align: center;
}

.customer-account-section-header__identity strong {
    width: 100%;
    font-size: var(--tl-type-400);
    font-weight: 850;
    line-height: 1.55;
    text-align: center;
}

.customer-account-section-header__identity small {
    width: 100%;
    font-size: var(--tl-type-100);
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}

.customer-account-section-back {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border: 1px solid rgba(113, 128, 150, .20);
    border-radius: 11px;
    color: var(--tl-secondary-header-button-text);
    background: var(--tl-secondary-header-button-bg);
    box-shadow: 0 1px 0 rgba(255,255,255,.92) inset;
}

.customer-account-section-back svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.customer-account-section-back:hover {
    border-color: rgba(75,169,217,.32);
    background: var(--tl-secondary-header-button-hover-bg);
    transform: none;
}

.customer-account-main {
    min-height: calc(100vh - 86px);
}

.customer-account-home .account-hub-page {
    padding-top: 14px;
}

html[data-theme="dark"] .customer-account-official-header {
    border-color: rgba(255,255,255,.12);
    background: var(--tl-secondary-header-bg);
    box-shadow: 0 8px 26px rgba(0,0,0,.20);
}

html[data-theme="dark"] .customer-account-section-back {
    border-color: rgba(255,255,255,.11);
    color: var(--tl-secondary-header-button-text);
    background: var(--tl-secondary-header-button-bg);
}

html[data-theme="dark"] .customer-account-section-back:hover {
    background: var(--tl-secondary-header-button-hover-bg);
}

@media (max-width: 700px) {
    .customer-account-section-header {
        padding-top: 10px;
    }

    .customer-account-official-header {
        min-height: 56px;
        grid-template-columns: minmax(42px, 1fr) minmax(0, auto) minmax(42px, 1fr);
        gap: 7px;
        padding: 6px;
        border-radius: 14px;
    }

    .customer-account-official-header__side {
        min-width: 42px;
    }

    .customer-account-section-back {
        width: 40px;
        height: 40px;
        min-height: 40px;
        border-radius: 10px;
    }

    .customer-account-section-header__identity {
        width: min(62vw, 340px);
    }

    .customer-account-section-header__identity strong {
        font-size: var(--tl-type-300);
    }

    .customer-account-section-header__identity small {
        font-size: var(--tl-type-100);
    }

    .customer-account-home .account-hub-page {
        padding-top: 12px;
    }
}

/* TEHRANLIGHT_ACCOUNT_BOTTOM_NAV_HOME_ONLY_V5
   Official bottom navigation is shown only on the My Account hub. */
.customer-account-home .customer-account-mobile-nav a[aria-current="page"],
.customer-account-home .customer-account-mobile-nav a.is-active {
    color: var(--accent-strong, #172033);
    font-weight: 800;
}

.customer-account-home .customer-account-mobile-nav a[aria-current="page"] svg,
.customer-account-home .customer-account-mobile-nav a.is-active svg {
    stroke-width: 2.15;
}

@media (max-width: 760px) {
    .customer-account-home .customer-account-main {
        padding-bottom: calc(88px + env(safe-area-inset-bottom));
    }

    .customer-account-section .customer-account-main {
        padding-bottom: 0;
    }
}


/* TEHRANLIGHT_MY_ACCOUNT_THEME_TOGGLE_V6
   Official light/dark control in the left slot of the shared secondary header. */
.customer-account-theme-toggle {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(113, 128, 150, .20);
    border-radius: 11px;
    color: inherit;
    background: rgba(255,255,255,.74);
    box-shadow: 0 1px 0 rgba(255,255,255,.92) inset;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}

.customer-account-theme-toggle:hover {
    border-color: rgba(75,169,217,.32);
    background: rgba(255,255,255,.96);
}

.customer-account-theme-toggle .theme-toggle__icon {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
}

.customer-account-theme-toggle .theme-toggle__icon svg {
    grid-area: 1 / 1;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.customer-account-theme-toggle .theme-icon-sun {
    display: none;
}

html[data-theme="dark"] .customer-account-theme-toggle .theme-icon-moon {
    display: none;
}

html[data-theme="dark"] .customer-account-theme-toggle .theme-icon-sun {
    display: block;
}

.customer-account-theme-toggle__label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

html[data-theme="dark"] .customer-account-theme-toggle {
    border-color: rgba(255,255,255,.11);
    background: rgba(255,255,255,.045);
}

html[data-theme="dark"] .customer-account-theme-toggle:hover {
    background: rgba(255,255,255,.075);
}

@media (max-width: 700px) {
    .customer-account-theme-toggle {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        border-radius: 10px;
    }
}
/* =========================================================
   ACCOUNT HUB SUPPORT / FAQ / LOGOUT — v1.0.23
   ========================================================= */
.account-hub-logout {
    margin-top: 14px;
}

.account-hub-logout__button {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 18px;
    border: 1px solid color-mix(in srgb, var(--danger, #d34848) 32%, var(--line));
    border-radius: 14px;
    color: color-mix(in srgb, var(--danger, #d34848) 88%, #111827);
    background: color-mix(in srgb, var(--danger, #d34848) 7%, var(--surface, #fff));
    font: inherit;
    font-size: var(--tl-type-300);
    font-weight: 900;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.account-hub-logout__button:hover {
    border-color: color-mix(in srgb, var(--danger, #d34848) 48%, var(--line));
    background: color-mix(in srgb, var(--danger, #d34848) 11%, var(--surface, #fff));
}

.account-hub-logout__button:active {
    transform: translateY(1px);
}

.account-hub-logout__icon {
    flex: 0 0 auto;
    font-size: var(--tl-type-700);
    line-height: 1;
}

.account-placeholder-card {
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 20px;
    border: 1px solid var(--line, rgba(20,32,51,.10));
    border-radius: 16px;
    color: var(--text, #172033);
    background: color-mix(in srgb, var(--surface, #fff) 94%, transparent);
    box-shadow: 0 14px 42px rgba(20,31,48,.05);
}

.account-placeholder-card h1 {
    margin: 0 0 8px;
    font-size: var(--tl-type-700);
    font-weight: 950;
    line-height: 1.7;
}

.account-placeholder-card p {
    margin: 0;
    color: var(--muted, #687487);
    font-size: var(--tl-type-200);
    font-weight: 700;
    line-height: 2;
}

html[data-theme="dark"] .account-hub-logout__button {
    color: #ffb8b8;
    border-color: rgba(255, 112, 112, .30);
    background: rgba(255, 88, 88, .07);
}

html[data-theme="dark"] .account-hub-logout__button:hover {
    color: #ffd0d0;
    border-color: rgba(255, 132, 132, .42);
    background: rgba(255, 92, 92, .11);
}

html[data-theme="dark"] .account-placeholder-card {
    color: var(--tl-readable-text, #eef3f8);
    border-color: var(--auth-line, rgba(255,255,255,.12));
    background: rgba(255,255,255,.045);
    box-shadow: none;
}

html[data-theme="dark"] .account-placeholder-card p {
    color: var(--tl-readable-muted, #b6c3d1);
}

@media (max-width: 700px) {
    .account-hub-logout {
        margin-top: 12px;
    }

    .account-hub-logout__button {
        min-height: 52px;
        padding-inline: 14px;
        font-size: var(--tl-type-200);
    }

    .account-placeholder-card {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .account-placeholder-card h1 {
        font-size: var(--tl-type-600);
    }

    .account-placeholder-card p {
        font-size: var(--tl-type-200);
    }
}


/* =========================================================
   TehranLight Account Dashboard 1.0.26.0
   Premium account hub: desktop + mobile + light/dark
   ========================================================= */
.account-hub-v2 {
    max-width: 1120px;
    display: grid;
    gap: 18px;
}

.account-hub-hero {
    position: relative;
    overflow: hidden;
    min-height: 168px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    align-items: center;
    gap: 24px;
    padding: 26px 30px;
    border: 1px solid color-mix(in srgb, var(--primary, #2f6dff) 14%, var(--line));
    border-radius: 26px;
    background:
        radial-gradient(circle at 12% 12%, rgba(59,130,246,.12), transparent 32%),
        radial-gradient(circle at 90% 88%, rgba(124,58,237,.10), transparent 30%),
        color-mix(in srgb, var(--surface, #fff) 96%, #f8fbff 4%);
    box-shadow: 0 16px 44px rgba(15,23,42,.07);
}

.account-hub-hero__copy {
    min-width: 0;
}

.account-hub-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--primary, #2f6dff);
    background: color-mix(in srgb, var(--primary, #2f6dff) 8%, transparent);
    font-size: var(--tl-type-200);
    font-weight: 900;
}

.account-hub-hero h1 {
    margin: 10px 0 0;
    color: var(--text, #172033);
    font-size: var(--tl-type-fluid-page-title);
    font-weight: 950;
    line-height: 1.45;
}

.account-hub-hero p {
    max-width: 650px;
    margin: 8px 0 0;
    color: var(--muted, #687487);
    font-size: var(--tl-type-400);
    font-weight: 720;
    line-height: 2;
}

.account-hub-hero__art {
    width: 164px;
    height: 132px;
    display: grid;
    place-items: center;
    justify-self: end;
    border-radius: 34px;
    background: rgba(255,255,255,.54);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.account-hub-hero__art svg {
    width: 128px;
    height: 104px;
    filter: drop-shadow(0 12px 20px rgba(15,23,42,.13));
}

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

.account-service-card {
    --service-accent: var(--primary, #2f6dff);
    position: relative;
    overflow: hidden;
    min-height: 156px;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr;
    align-items: center;
    gap: 10px 12px;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--service-accent) 12%, var(--line));
    border-radius: 22px;
    color: var(--text, #172033);
    background:
        radial-gradient(circle at 14% 12%, color-mix(in srgb, var(--service-accent) 9%, transparent), transparent 38%),
        color-mix(in srgb, var(--surface, #fff) 97%, #f8fafc 3%);
    box-shadow: 0 12px 30px rgba(15,23,42,.055);
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.account-service-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--service-accent) 28%, var(--line));
    box-shadow: 0 18px 38px rgba(15,23,42,.09);
}

.account-service-card--wallet { --service-accent: #7c3aed; }
.account-service-card--profile { --service-accent: #16a34a; }
.account-service-card--support { --service-accent: #f97316; }

.account-service-card__icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    grid-row: 1 / span 2;
    border-radius: 20px;
    background: color-mix(in srgb, var(--service-accent) 7%, var(--surface, #fff));
}

.account-service-card__icon svg {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 8px 12px rgba(15,23,42,.10));
}

.account-service-card__copy {
    align-self: end;
    display: grid;
    gap: 4px;
}

.account-service-card__copy strong {
    font-size: var(--tl-type-500);
    font-weight: 950;
}

.account-service-card__copy small {
    color: var(--muted, #687487);
    font-size: var(--tl-type-100);
    font-weight: 700;
    line-height: 1.7;
}

.account-service-card__arrow {
    align-self: end;
    color: color-mix(in srgb, var(--service-accent) 76%, var(--muted));
    font-size: var(--tl-type-700);
    font-weight: 900;
}

.account-hub-section {
    display: grid;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--line, rgba(20,32,51,.10));
    border-radius: 24px;
    background: color-mix(in srgb, var(--surface, #fff) 97%, #f8fafc 3%);
    box-shadow: 0 12px 32px rgba(15,23,42,.045);
}

.account-hub-section__heading span {
    color: var(--primary, #2f6dff);
    font-size: var(--tl-type-100);
    font-weight: 900;
}

.account-hub-section__heading h2 {
    margin: 3px 0 0;
    color: var(--text, #172033);
    font-size: var(--tl-type-700);
    font-weight: 950;
}

.account-hub-secondary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.account-mini-card {
    min-height: 76px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
    border-radius: 17px;
    color: var(--text, #172033);
    background: color-mix(in srgb, var(--surface, #fff) 94%, #f8fafc 6%);
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.account-mini-card:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--primary, #2f6dff) 18%, var(--line));
    background: color-mix(in srgb, var(--primary, #2f6dff) 3%, var(--surface, #fff));
}

.account-mini-card > span:last-child {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.account-mini-card strong {
    font-size: var(--tl-type-300);
    font-weight: 900;
}

.account-mini-card small {
    overflow: hidden;
    color: var(--muted, #687487);
    font-size: var(--tl-type-100);
    font-weight: 680;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-mini-card__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #3b82f6;
    background: rgba(59,130,246,.08);
}

.account-mini-card__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-mini-card__icon--purple { color: #7c3aed; background: rgba(124,58,237,.08); }
.account-mini-card__icon--green { color: #16a34a; background: rgba(22,163,74,.08); }
.account-mini-card__icon--rose { color: #e84b77; background: rgba(232,75,119,.08); }
.account-mini-card__icon--amber { color: #e58a18; background: rgba(229,138,24,.09); }
.account-mini-card__icon--slate { color: #64748b; background: rgba(100,116,139,.09); }
.account-mini-card__icon--cyan { color: #0891b2; background: rgba(8,145,178,.08); }

.account-hub-logout--v2 {
    margin-top: 0;
}

.account-hub-logout--v2 .account-hub-logout__button {
    min-height: 52px;
    border-radius: 17px;
}

html[data-theme="dark"] .account-hub-hero,
html[data-theme="dark"] .account-service-card,
html[data-theme="dark"] .account-hub-section,
html[data-theme="dark"] .account-mini-card {
    border-color: rgba(255,255,255,.09);
    color: var(--tl-readable-text, #eef3f8);
    background-color: rgba(255,255,255,.038);
    box-shadow: none;
}

html[data-theme="dark"] .account-hub-hero {
    background:
        radial-gradient(circle at 12% 12%, rgba(59,130,246,.13), transparent 32%),
        radial-gradient(circle at 90% 88%, rgba(124,58,237,.11), transparent 30%),
        rgba(255,255,255,.038);
}

html[data-theme="dark"] .account-hub-hero h1,
html[data-theme="dark"] .account-service-card,
html[data-theme="dark"] .account-hub-section__heading h2,
html[data-theme="dark"] .account-mini-card {
    color: var(--tl-readable-text, #eef3f8);
}

html[data-theme="dark"] .account-hub-hero p,
html[data-theme="dark"] .account-service-card__copy small,
html[data-theme="dark"] .account-mini-card small {
    color: var(--tl-readable-muted, #b6c3d1);
}

html[data-theme="dark"] .account-hub-hero__art {
    background: rgba(255,255,255,.035);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

html[data-theme="dark"] .account-service-card__icon,
html[data-theme="dark"] .account-mini-card__icon {
    background-color: rgba(255,255,255,.045);
}

@media (max-width: 980px) {
    .account-hub-primary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 700px) {
    .customer-account-home .account-hub-v2 {
        padding-top: 10px;
        gap: 12px;
    }

    .account-hub-hero {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) 92px;
        gap: 12px;
        padding: 18px;
        border-radius: 22px;
    }

    .account-hub-hero h1 {
        margin-top: 7px;
        font-size: var(--tl-type-800);
    }

    .account-hub-hero p {
        margin-top: 5px;
        font-size: var(--tl-type-200);
        line-height: 1.9;
    }

    .account-hub-hero__art {
        width: 88px;
        height: 82px;
        border-radius: 24px;
    }

    .account-hub-hero__art svg {
        width: 82px;
        height: 70px;
    }

    .account-hub-primary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .account-service-card {
        min-height: 142px;
        grid-template-columns: 1fr auto;
        grid-template-rows: 58px auto auto;
        align-content: start;
        padding: 13px;
        border-radius: 20px;
    }

    .account-service-card__icon {
        width: 58px;
        height: 58px;
        grid-row: auto;
        border-radius: 18px;
    }

    .account-service-card__icon svg {
        width: 45px;
        height: 45px;
    }

    .account-service-card__copy {
        grid-column: 1 / span 2;
        align-self: start;
    }

    .account-service-card__copy strong {
        font-size: var(--tl-type-300);
    }

    .account-service-card__copy small {
        font-size: var(--tl-type-100);
    }

    .account-service-card__arrow {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
    }

    .account-hub-section {
        padding: 14px;
        border-radius: 22px;
    }

    .account-hub-section__heading h2 {
        font-size: var(--tl-type-600);
    }

    .account-hub-secondary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .account-mini-card {
        min-height: 92px;
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 7px;
        padding: 12px;
        border-radius: 16px;
    }

    .account-mini-card__icon {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    .account-mini-card strong {
        font-size: var(--tl-type-200);
    }

    .account-mini-card small {
        max-width: 100%;
        font-size: var(--tl-type-100);
    }

    .account-hub-logout--v2 .account-hub-logout__button {
        min-height: 50px;
        border-radius: 16px;
    }
}

@media (max-width: 430px) {
    .account-hub-hero {
        grid-template-columns: minmax(0, 1fr) 76px;
        padding: 15px;
    }

    .account-hub-hero__art {
        width: 72px;
        height: 72px;
    }

    .account-hub-hero__art svg {
        width: 70px;
        height: 60px;
    }

    .account-hub-hero p {
        display: none;
    }
}
\n\n/* TehranLight Account 1.0.26.1 — real 3D assets + one-screen mobile */\n.account-hub-v3{display:grid;gap:16px;padding-top:16px;padding-bottom:28px}\n.account-v3-head{min-height:132px;display:grid;grid-template-columns:minmax(0,1fr) 104px;align-items:center;gap:18px;padding:22px 24px;overflow:hidden;border:1px solid color-mix(in srgb,var(--primary,#2f6dff) 10%,var(--line));border-radius:26px;background:radial-gradient(circle at 12% 10%,rgba(47,109,255,.08),transparent 33%),radial-gradient(circle at 88% 92%,rgba(124,58,237,.07),transparent 34%),var(--surface,#fff);box-shadow:0 16px 36px rgba(15,23,42,.055)}\n.account-v3-head__copy>span{color:var(--primary,#2f6dff);font-size:var(--tl-type-200);font-weight:900}.account-v3-head__copy h1{margin:4px 0 0;color:var(--text,#172033);font-size:var(--tl-type-fluid-title);font-weight:950}.account-v3-head__copy p{margin:6px 0 0;color:var(--muted,#687487);font-size:var(--tl-type-300);font-weight:720}\n.account-v3-head__profile{width:92px;height:92px;display:grid;place-items:center;justify-self:end;overflow:hidden;border-radius:26px}.account-v3-head__profile img{width:100%;height:100%;display:block;object-fit:cover}\n.account-v3-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.account-v3-tile{min-width:0;min-height:206px;display:grid;grid-template-rows:132px auto;align-content:start;gap:10px;padding:12px;overflow:hidden;border:1px solid color-mix(in srgb,var(--primary,#2f6dff) 8%,var(--line));border-radius:24px;color:var(--text,#172033);background:var(--surface,#fff);box-shadow:0 10px 26px rgba(15,23,42,.045);text-decoration:none;transition:.16s ease}.account-v3-tile:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--primary,#2f6dff) 22%,var(--line));box-shadow:0 15px 32px rgba(15,23,42,.075)}\n.account-v3-tile__visual{min-width:0;display:grid;place-items:center;overflow:hidden;border-radius:20px}.account-v3-tile__visual img{width:132px;height:132px;display:block;object-fit:cover}.account-v3-tile__copy{min-width:0;display:grid;gap:3px;text-align:center}.account-v3-tile__copy strong{color:var(--text,#172033);font-size:var(--tl-type-500);font-weight:930}.account-v3-tile__copy small{overflow:hidden;color:var(--muted,#687487);font-size:var(--tl-type-100);font-weight:680;text-overflow:ellipsis;white-space:nowrap}\n.account-v3-logout{display:flex;justify-content:center}.account-v3-logout button{min-height:40px;padding:8px 20px;border:0;border-radius:999px;color:#bd3e35;background:rgba(220,38,38,.065);font:inherit;font-size:var(--tl-type-200);font-weight:850;cursor:pointer}\nhtml[data-theme="dark"] .account-v3-head,html[data-theme="dark"] .account-v3-tile{border-color:rgba(255,255,255,.08);background-color:rgba(255,255,255,.035);box-shadow:none}html[data-theme="dark"] .account-v3-head{background:radial-gradient(circle at 12% 10%,rgba(59,130,246,.13),transparent 33%),radial-gradient(circle at 88% 92%,rgba(124,58,237,.11),transparent 34%),rgba(255,255,255,.035)}html[data-theme="dark"] .account-v3-head__copy h1,html[data-theme="dark"] .account-v3-tile__copy strong{color:var(--tl-readable-text,#eef3f8)}html[data-theme="dark"] .account-v3-head__copy p,html[data-theme="dark"] .account-v3-tile__copy small{color:var(--tl-readable-muted,#b6c3d1)}\n@media(max-width:980px){.account-v3-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}\n@media(max-width:700px){.customer-account-home{overflow:hidden}.customer-account-home .account-hub-v3{height:calc(100svh - var(--tl-shell-top-h,72px) - var(--tl-shell-bottom-h,72px));min-height:0;grid-template-rows:auto minmax(0,1fr) auto;gap:8px;padding-top:8px;padding-bottom:8px;overflow:hidden}.account-v3-head{min-height:78px;grid-template-columns:minmax(0,1fr) 58px;gap:9px;padding:10px 12px;border-radius:20px;box-shadow:0 8px 22px rgba(15,23,42,.045)}.account-v3-head__copy>span{font-size:var(--tl-type-100)}.account-v3-head__copy h1{margin-top:2px;font-size:var(--tl-type-600)}.account-v3-head__copy p{margin-top:2px;overflow:hidden;font-size:var(--tl-type-100);text-overflow:ellipsis;white-space:nowrap}.account-v3-head__profile{width:56px;height:56px;border-radius:17px}.account-v3-grid{min-height:0;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:7px}.account-v3-tile{min-height:0;grid-template-rows:minmax(0,1fr) auto;gap:3px;padding:6px 4px 7px;border-radius:17px;box-shadow:0 6px 14px rgba(15,23,42,.035)}.account-v3-tile__visual{min-height:0;border-radius:14px}.account-v3-tile__visual img{width:min(100%,72px);height:auto;aspect-ratio:1;object-fit:cover}.account-v3-tile__copy{gap:0}.account-v3-tile__copy strong{overflow:hidden;font-size:var(--tl-type-fluid-caption);line-height:1.45;text-overflow:ellipsis;white-space:nowrap}.account-v3-tile__copy small{display:none}.account-v3-logout{min-height:30px}.account-v3-logout button{min-height:30px;padding:4px 14px;font-size:var(--tl-type-100)}}\n@media(max-width:390px){.customer-account-home .account-hub-v3{gap:6px;padding-top:6px;padding-bottom:6px}.account-v3-head{min-height:68px;padding:8px 10px}.account-v3-head__copy p{display:none}.account-v3-head__profile{width:50px;height:50px}.account-v3-grid{gap:5px}.account-v3-tile{padding:4px 3px 5px;border-radius:15px}.account-v3-tile__visual img{width:min(100%,64px)}}\n

/* TehranLight Address Book — compact horizontal cards (desktop + mobile) */
.address-book-page {
    width: 100%;
}

.address-page-toolbar,
.address-book-alert,
.address-book-grid,
.address-book-empty {
    width: min(1040px, 100%);
    margin-inline: auto;
}

.address-page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.address-page-count {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: var(--muted, #687487);
    font-size: var(--tl-type-100);
    font-weight: 720;
}

.address-page-count strong {
    color: var(--text, #172033);
    font-size: var(--tl-type-400);
    font-weight: 950;
}

.address-add-button,
.orders-add-address {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding-inline: 15px;
    border-radius: 13px;
    font-size: var(--tl-type-200);
    font-weight: 850;
    text-decoration: none;
}

.address-add-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
}

.address-book-alert {
    margin-bottom: 12px;
}

.address-book-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.address-card.address-card--horizontal {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 14px;
    padding: 14px 15px;
    border: 1px solid color-mix(in srgb, var(--primary, #2f6dff) 8%, var(--line));
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface, #fff) 98%, #f8fbff 2%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .035);
}

.address-card-content {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 7px;
}

.address-card-title-row,
.address-card-title-group {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.address-card-title-group h2,
.address-card.address-card--horizontal h2 {
    min-width: 0;
    margin: 0;
    color: var(--text, #172033);
    font-size: var(--tl-type-500);
    font-weight: 950;
    line-height: 1.6;
}

.address-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.address-badges .address-badge {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 2px 7px;
    border: 1px solid color-mix(in srgb, var(--primary, #2f6dff) 12%, var(--line));
    border-radius: 999px;
    color: color-mix(in srgb, var(--primary, #2f6dff) 74%, var(--text, #172033));
    background: color-mix(in srgb, var(--primary, #2f6dff) 5%, var(--surface, #fff));
    font-size: var(--tl-type-100);
    font-weight: 820;
    white-space: nowrap;
}

.address-card-recipient {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 10px;
    font-size: var(--tl-type-200);
}

.address-card-recipient strong {
    color: var(--text, #172033);
    font-size: var(--tl-type-300);
    font-weight: 900;
}

.address-card-phone {
    color: var(--muted, #687487);
    font-size: var(--tl-type-100);
    font-weight: 760;
    direction: ltr;
    unicode-bidi: isolate;
}

.address-card-location {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--muted, #687487);
    font-size: var(--tl-type-200);
    font-weight: 680;
    line-height: 1.85;
}

.address-card-city {
    color: color-mix(in srgb, var(--text, #172033) 76%, var(--muted, #687487));
    font-weight: 790;
}

.address-card-separator {
    display: inline-block;
    padding-inline: 4px;
    opacity: .58;
}

.address-card-meta-row {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 12px;
}

.address-card-postal {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted, #687487);
}

.address-card-postal small {
    font-size: var(--tl-type-100);
    font-weight: 720;
}

.address-card-postal b {
    color: var(--text, #172033);
    font-size: var(--tl-type-100);
    font-weight: 820;
    direction: ltr;
    unicode-bidi: isolate;
}

.address-default-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.address-default-actions form,
.address-card-primary-actions form {
    margin: 0;
}

.address-default-action {
    min-height: 28px;
    padding: 3px 8px;
    border: 1px solid var(--line, rgba(20, 32, 51, .10));
    border-radius: 9px;
    color: var(--muted, #687487);
    background: transparent;
    font: inherit;
    font-size: var(--tl-type-100);
    font-weight: 780;
    cursor: pointer;
    transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.address-default-action:hover {
    border-color: color-mix(in srgb, var(--primary, #2f6dff) 25%, var(--line));
    color: var(--primary, #2f6dff);
    background: color-mix(in srgb, var(--primary, #2f6dff) 4%, transparent);
}

.address-card-primary-actions {
    flex: 0 0 auto;
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 6px;
    align-self: stretch;
    min-width: 82px;
}

.address-card-primary-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 11px;
    font-size: var(--tl-type-100);
    font-weight: 840;
    text-decoration: none;
    white-space: nowrap;
}

.address-card-primary-actions svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.address-card-primary-actions .address-edit {
    border-color: color-mix(in srgb, var(--primary, #2f6dff) 15%, var(--line));
    color: var(--text, #172033);
    background: color-mix(in srgb, var(--primary, #2f6dff) 3%, var(--surface, #fff));
}

.address-card-primary-actions .address-delete {
    border-color: color-mix(in srgb, var(--danger, #d34848) 28%, var(--line));
    color: var(--danger, #c74444);
    background: color-mix(in srgb, var(--danger, #d34848) 4%, var(--surface, #fff));
}

.address-card-primary-actions .address-delete:hover {
    border-color: color-mix(in srgb, var(--danger, #d34848) 44%, var(--line));
    background: color-mix(in srgb, var(--danger, #d34848) 8%, var(--surface, #fff));
}

.address-book-empty {
    padding: 28px 20px;
    border-radius: 18px;
}

.address-book-empty .customer-empty {
    display: grid;
    justify-items: center;
    gap: 7px;
}

.address-book-empty .customer-empty h2,
.address-book-empty .customer-empty p {
    margin: 0;
}

.address-book-empty .customer-empty h2 {
    font-size: var(--tl-type-500);
}

.address-book-empty .customer-empty p {
    color: var(--muted, #687487);
    font-size: var(--tl-type-100);
}

.orders-page-toolbar {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin: 0 0 10px;
}

.orders-add-address {
    border-color: color-mix(in srgb, var(--primary, #2f6dff) 18%, var(--line));
    color: var(--primary, #2f6dff);
    background: color-mix(in srgb, var(--primary, #2f6dff) 4%, var(--surface, #fff));
}

html[data-theme="dark"] .address-card.address-card--horizontal,
html[data-theme="dark"] .address-book-empty {
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .035);
    box-shadow: none;
}

html[data-theme="dark"] .address-badges .address-badge,
html[data-theme="dark"] .address-card-primary-actions .address-edit,
html[data-theme="dark"] .address-card-primary-actions .address-delete,
html[data-theme="dark"] .orders-add-address {
    background-color: rgba(255, 255, 255, .035);
}

@media (max-width: 700px) {
    .customer-account-section .address-book-page.account-page {
        padding-top: 12px;
        padding-bottom: calc(88px + env(safe-area-inset-bottom));
    }

    .address-page-toolbar {
        gap: 8px;
        margin-bottom: 10px;
    }

    .address-page-count {
        min-width: 0;
        font-size: var(--tl-type-100);
    }

    .address-page-count strong {
        font-size: var(--tl-type-200);
    }

    .address-add-button,
    .orders-add-address {
        min-height: 36px;
        padding-inline: 11px;
        border-radius: 11px;
        font-size: var(--tl-type-100);
    }

    .address-card.address-card--horizontal {
        grid-template-columns: minmax(0, 1fr) 70px;
        gap: 9px;
        padding: 11px;
        border-radius: 16px;
    }

    .address-card-content {
        gap: 5px;
    }

    .address-card-title-row,
    .address-card-title-group {
        gap: 5px;
    }

    .address-card-title-group h2,
    .address-card.address-card--horizontal h2 {
        font-size: var(--tl-type-300);
    }

    .address-badges .address-badge {
        min-height: 20px;
        padding: 1px 6px;
        font-size: var(--tl-type-100);
    }

    .address-card-recipient {
        gap: 4px 7px;
        font-size: var(--tl-type-100);
    }

    .address-card-recipient strong {
        font-size: var(--tl-type-100);
    }

    .address-card-phone,
    .address-card-location {
        font-size: var(--tl-type-100);
    }

    .address-card-location {
        line-height: 1.75;
    }

    .address-card-separator {
        padding-inline: 2px;
    }

    .address-card-meta-row {
        gap: 5px 8px;
    }

    .address-card-postal small,
    .address-default-action {
        font-size: var(--tl-type-100);
    }

    .address-card-postal b {
        font-size: var(--tl-type-100);
    }

    .address-default-action {
        min-height: 25px;
        padding: 2px 6px;
        border-radius: 8px;
    }

    .address-card-primary-actions {
        min-width: 0;
        gap: 5px;
    }

    .address-card-primary-actions .btn {
        min-height: 34px;
        gap: 4px;
        padding: 5px 4px;
        border-radius: 10px;
        font-size: var(--tl-type-100);
    }

    .address-card-primary-actions svg {
        width: 13px;
        height: 13px;
    }

    .orders-page-toolbar {
        margin-bottom: 8px;
    }
}

@media (max-width: 390px) {
    .address-page-count span {
        max-width: 115px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .address-card.address-card--horizontal {
        grid-template-columns: minmax(0, 1fr) 64px;
        gap: 7px;
        padding: 9px;
    }

    .address-card-primary-actions .btn {
        font-size: var(--tl-type-100);
    }
}


/* TEHRANLIGHT_ACCOUNT_ADDRESS_EDITOR_V2_20260902
   Account-native, single-viewport address editor. This block is intentionally
   scoped to the customer account route so checkout's address editor keeps its
   existing purchase-flow geometry. */
body.customer-account-section:has(.customer-address-capture-page) {
    overflow: hidden !important;
}

.customer-account-section .customer-address-capture-page {
    position: fixed !important;
    z-index: 40 !important;
    top: 86px !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    padding: 10px clamp(14px, 3vw, 34px) 14px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

.customer-account-section .customer-address-capture-form {
    position: relative !important;
    width: min(1180px, 100%) !important;
    max-width: 1180px !important;
    height: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) 62px !important;
    gap: 10px !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.customer-account-section .customer-address-capture-body {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: stretch !important;
    overflow: hidden !important;
}

.customer-account-section .customer-address-editor-panel {
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 13px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    overflow: hidden !important;
    border: 1px solid var(--tl-color-line-strong, rgba(113,128,150,.22)) !important;
    border-radius: 18px !important;
    color: var(--tl-color-text, var(--text, #172033)) !important;
    background: color-mix(in srgb, var(--tl-color-surface, #fff) 94%, transparent) !important;
    box-shadow: 0 14px 34px rgba(22, 35, 52, .065) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.customer-account-section .customer-address-editor-panel__header {
    flex: 0 0 auto !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

.customer-account-section .customer-address-editor-panel__header > div {
    min-width: 0 !important;
    display: grid !important;
    gap: 2px !important;
}

.customer-account-section .customer-address-editor-panel__header strong {
    color: var(--tl-color-text, var(--text, #172033)) !important;
    font-size: var(--tl-type-500) !important;
    font-weight: 900 !important;
    line-height: 1.45 !important;
}

.customer-account-section .customer-address-editor-panel__header small {
    color: var(--tl-color-muted, var(--muted, #687487)) !important;
    font-size: var(--tl-type-200) !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

.customer-account-section .customer-address-editor-step {
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
    display: inline-grid !important;
    place-items: center !important;
    border: 1px solid color-mix(in srgb, var(--tl-color-primary, #173f69) 24%, transparent) !important;
    border-radius: 10px !important;
    color: var(--tl-color-primary, #173f69) !important;
    background: color-mix(in srgb, var(--tl-color-primary, #173f69) 8%, var(--tl-color-surface, #fff)) !important;
    font-size: var(--tl-type-300) !important;
    font-weight: 900 !important;
}

.customer-account-section .address-capture-map-section .checkout-location-picker {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) auto !important;
    gap: 9px !important;
    overflow: hidden !important;
    border: 0 !important;
    background: transparent !important;
}

.customer-account-section .address-capture-map-section .checkout-location-map-wrap {
    position: relative !important;
    min-height: 180px !important;
    height: auto !important;
    overflow: hidden !important;
    border: 1px solid var(--tl-color-line-strong, rgba(113,128,150,.22)) !important;
    border-radius: 14px !important;
    background: var(--tl-color-surface, #fff) !important;
}

.customer-account-section .address-capture-map-section .checkout-location-map {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
}

.customer-account-section .checkout-location-current {
    top: 10px !important;
    right: 10px !important;
    bottom: auto !important;
    left: auto !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    border: 1px solid rgba(255,255,255,.35) !important;
    border-radius: 11px !important;
    color: #fff !important;
    background: rgba(16, 43, 73, .90) !important;
    box-shadow: 0 8px 20px rgba(12, 31, 52, .18) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    font-size: var(--tl-type-400) !important;
    font-weight: 800 !important;
}

.customer-account-section .checkout-location-current svg {
    width: 17px !important;
    height: 17px !important;
}

.customer-account-section .address-capture-map-action-row {
    flex: 0 0 auto !important;
    min-height: 44px !important;
    display: grid !important;
    grid-template-columns: minmax(190px, .44fr) minmax(0, 1fr) !important;
    grid-template-rows: 44px !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.customer-account-section .address-location-confirm {
    width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 13px !important;
    border: 1px solid color-mix(in srgb, var(--tl-color-primary, #173f69) 30%, transparent) !important;
    border-radius: 11px !important;
    color: var(--tl-color-primary, #173f69) !important;
    background: color-mix(in srgb, var(--tl-color-primary, #173f69) 7%, var(--tl-color-surface, #fff)) !important;
    box-shadow: none !important;
    font-size: var(--tl-type-400) !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
}

.customer-account-section .address-location-confirm:hover {
    background: color-mix(in srgb, var(--tl-color-primary, #173f69) 11%, var(--tl-color-surface, #fff)) !important;
}

.customer-account-section .address-location-confirm:disabled {
    border-color: rgba(25,137,88,.30) !important;
    color: #16734d !important;
    background: rgba(25,137,88,.08) !important;
    opacity: 1 !important;
}

.customer-account-section .address-capture-map-action-row .checkout-location-result {
    position: static !important;
    min-width: 0 !important;
    min-height: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 11px !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
    border: 1px solid var(--tl-color-line, rgba(113,128,150,.16)) !important;
    border-radius: 11px !important;
    color: var(--tl-color-muted, var(--muted, #687487)) !important;
    background: color-mix(in srgb, var(--tl-color-surface, #fff) 88%, transparent) !important;
    font-size: var(--tl-type-300) !important;
    font-weight: 600 !important;
    line-height: 1.55 !important;
    text-align: right !important;
}

.customer-account-section .address-capture-map-action-row .checkout-location-result.is-success {
    color: #16734d !important;
    border-color: rgba(25,137,88,.22) !important;
    background: rgba(25,137,88,.065) !important;
}

.customer-account-section .address-capture-map-action-row .checkout-location-result.is-error {
    color: #b42318 !important;
    border-color: rgba(180,35,24,.20) !important;
    background: rgba(180,35,24,.055) !important;
}

.customer-account-section .address-capture-fields {
    align-self: stretch !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.customer-account-section .address-capture-validation {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    border: 1px solid rgba(180,35,24,.16) !important;
    border-radius: 10px !important;
    color: #b42318 !important;
    background: rgba(180,35,24,.05) !important;
    font-size: var(--tl-type-300) !important;
    line-height: 1.55 !important;
}

.customer-account-section .address-capture-validation:empty,
.customer-account-section .address-capture-validation.validation-summary-valid {
    display: none !important;
}

.customer-account-section .customer-address-capture-grid {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: min-content !important;
    align-content: start !important;
    gap: 10px !important;
}

.customer-account-section .customer-address-capture-grid .auth-field {
    position: relative !important;
    min-width: 0 !important;
    display: block !important;
}

.customer-account-section .customer-address-capture-grid .auth-field label {
    position: absolute !important;
    z-index: 2 !important;
    top: 6px !important;
    right: 12px !important;
    left: 12px !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: var(--tl-color-muted, var(--muted, #687487)) !important;
    font-size: var(--tl-type-200) !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}

.customer-account-section .customer-address-capture-grid .auth-field label small {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: 600 !important;
}

.customer-account-section .customer-address-capture-grid .auth-field input,
.customer-account-section .customer-address-capture-grid .auth-field select,
.customer-account-section .customer-address-capture-grid .auth-field textarea {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 50px !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 20px 12px 6px !important;
    border: 1px solid var(--tl-color-line-strong, rgba(113,128,150,.22)) !important;
    border-radius: 11px !important;
    color: var(--tl-color-text, var(--text, #172033)) !important;
    background: var(--tl-color-surface, #fff) !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: var(--tl-type-400) !important;
    font-weight: 650 !important;
    line-height: 1.3 !important;
    outline: none !important;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease !important;
}

.customer-account-section .customer-address-capture-grid .auth-field select {
    padding-left: 30px !important;
}

.customer-account-section .customer-address-capture-grid .auth-field textarea {
    min-height: 68px !important;
    height: 68px !important;
    max-height: 68px !important;
    padding-top: 22px !important;
    resize: none !important;
    line-height: 1.55 !important;
}

.customer-account-section .customer-address-capture-grid .auth-field input:focus,
.customer-account-section .customer-address-capture-grid .auth-field select:focus,
.customer-account-section .customer-address-capture-grid .auth-field textarea:focus {
    border-color: color-mix(in srgb, var(--tl-color-primary, #173f69) 55%, var(--tl-color-line-strong, #cbd5e1)) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tl-color-primary, #173f69) 9%, transparent) !important;
}

.customer-account-section .customer-address-capture-grid .auth-field > span,
.customer-account-section .customer-address-capture-grid .field-validation-error,
.customer-account-section .customer-address-capture-grid .field-validation-valid {
    display: none !important;
}

.customer-account-section .customer-address-capture-grid .address-capture-address-field {
    grid-column: 1 / -1 !important;
}

.customer-account-section .customer-address-capture-grid .address-capture-postal-field {
    grid-column: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
}

.customer-account-section .address-capture-receiver-row {
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.customer-account-section .customer-address-capture-actions {
    position: static !important;
    z-index: 5 !important;
    width: min(720px, 100%) !important;
    height: 62px !important;
    margin: 0 auto !important;
    padding: 5px !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    border: 1px solid var(--tl-color-line-strong, rgba(113,128,150,.20)) !important;
    border-radius: 16px !important;
    background: color-mix(in srgb, var(--tl-color-surface, #fff) 92%, transparent) !important;
    box-shadow: 0 12px 28px rgba(20, 31, 48, .075) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.customer-account-section .customer-address-capture-actions .btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 50px !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    font-size: var(--tl-type-500) !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.customer-account-section .address-capture-save,
.customer-account-section .address-title-modal__confirm {
    border: 1px solid var(--tl-color-primary, #173f69) !important;
    color: #fff !important;
    background: linear-gradient(145deg, var(--tl-color-primary, #173f69), var(--tl-color-primary-deep, #102b49)) !important;
    box-shadow: 0 8px 18px rgba(23,63,105,.16) !important;
}

.customer-account-section .address-capture-cancel {
    border: 1px solid var(--tl-color-line-strong, rgba(113,128,150,.24)) !important;
    color: var(--tl-color-primary, #173f69) !important;
    background: var(--tl-color-surface, #fff) !important;
    box-shadow: none !important;
}

.customer-account-section .customer-address-capture-error:empty {
    display: none !important;
}

.customer-account-section .customer-address-capture-error:not(:empty) {
    position: absolute !important;
    z-index: 40 !important;
    right: 50% !important;
    bottom: 72px !important;
    width: min(620px, calc(100% - 24px)) !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    transform: translateX(50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(180,35,24,.20) !important;
    border-radius: 12px !important;
    color: #b42318 !important;
    background: color-mix(in srgb, #fff 92%, rgba(180,35,24,.08)) !important;
    box-shadow: 0 10px 28px rgba(42, 17, 17, .12) !important;
    pointer-events: none !important;
    font-size: var(--tl-type-300) !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;
    text-align: center !important;
}

.customer-account-section .address-title-modal {
    padding: 18px !important;
}

.customer-account-section .address-title-modal__glass {
    background: rgba(8,18,31,.42) !important;
    backdrop-filter: blur(10px) saturate(.9) !important;
    -webkit-backdrop-filter: blur(10px) saturate(.9) !important;
}

.customer-account-section .address-title-modal__dialog {
    width: min(390px, 100%) !important;
    gap: 10px !important;
    padding: 20px !important;
    border: 1px solid var(--tl-color-line-strong, rgba(113,128,150,.22)) !important;
    border-radius: 17px !important;
    color: var(--tl-color-text, #172033) !important;
    background: var(--tl-color-surface, #fff) !important;
    box-shadow: 0 24px 70px rgba(13, 29, 49, .24) !important;
}

.customer-account-section .address-title-modal__dialog > strong {
    font-size: var(--tl-type-600) !important;
    font-weight: 900 !important;
}

.customer-account-section .address-title-modal__dialog > p {
    color: var(--tl-color-muted, #687487) !important;
    font-size: var(--tl-type-400) !important;
    line-height: 1.7 !important;
}

.customer-account-section .address-title-modal__dialog input {
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 12px !important;
    border: 1px solid var(--tl-color-line-strong, rgba(113,128,150,.22)) !important;
    border-radius: 11px !important;
    color: var(--tl-color-text, #172033) !important;
    background: var(--tl-color-surface, #fff) !important;
    font-size: var(--tl-type-500) !important;
}

.customer-account-section .address-title-modal__error {
    min-height: 18px !important;
    color: #b42318 !important;
    font-size: var(--tl-type-300) !important;
}

.customer-account-section .address-title-modal__confirm {
    min-height: 48px !important;
    height: 48px !important;
    border-radius: 11px !important;
    font-size: var(--tl-type-500) !important;
    font-weight: 850 !important;
}

html[data-theme="dark"] .customer-account-section .customer-address-editor-panel,
html[data-theme="dark"] .customer-account-section .customer-address-capture-actions,
html[data-theme="dark"] .customer-account-section .address-title-modal__dialog {
    border-color: rgba(255,255,255,.12) !important;
    background: rgba(15,22,34,.90) !important;
    box-shadow: 0 16px 36px rgba(0,0,0,.22) !important;
}

html[data-theme="dark"] .customer-account-section .address-capture-map-section .checkout-location-map-wrap,
html[data-theme="dark"] .customer-account-section .customer-address-capture-grid .auth-field input,
html[data-theme="dark"] .customer-account-section .customer-address-capture-grid .auth-field select,
html[data-theme="dark"] .customer-account-section .customer-address-capture-grid .auth-field textarea,
html[data-theme="dark"] .customer-account-section .address-title-modal__dialog input,
html[data-theme="dark"] .customer-account-section .address-capture-cancel {
    border-color: rgba(255,255,255,.12) !important;
    color: #edf4ff !important;
    background: rgba(255,255,255,.045) !important;
}

html[data-theme="dark"] .customer-account-section .address-location-confirm,
html[data-theme="dark"] .customer-account-section .customer-address-editor-step {
    border-color: rgba(112,177,229,.22) !important;
    color: #a9d5ff !important;
    background: rgba(75,169,217,.09) !important;
}

html[data-theme="dark"] .customer-account-section .address-capture-map-action-row .checkout-location-result {
    border-color: rgba(255,255,255,.10) !important;
    background: rgba(255,255,255,.035) !important;
}

@media (min-width: 701px) {
    .customer-account-section .address-capture-fields {
        align-self: start !important;
        height: auto !important;
        max-height: 100% !important;
    }
}

@media (max-width: 700px) {
    .customer-account-section .customer-address-capture-page {
        top: 76px !important;
        padding: 6px 8px 10px !important;
    }

    .customer-account-section .customer-address-capture-form {
        grid-template-rows: minmax(0, 1fr) 58px !important;
        gap: 8px !important;
    }

    .customer-account-section .customer-address-capture-body {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: clamp(190px, 26dvh, 250px) minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    .customer-account-section .customer-address-editor-panel {
        padding: 9px !important;
        gap: 7px !important;
        border-radius: 15px !important;
    }

    .customer-account-section .customer-address-editor-panel__header {
        min-height: 34px !important;
        gap: 8px !important;
    }

    .customer-account-section .customer-address-editor-panel__header strong {
        font-size: var(--tl-type-600) !important;
    }

    .customer-account-section .customer-address-editor-panel__header small {
        font-size: var(--tl-type-400) !important;
        line-height: 1.35 !important;
    }

    .customer-account-section .customer-address-editor-step {
        flex-basis: 28px !important;
        width: 28px !important;
        height: 28px !important;
        border-radius: 9px !important;
        font-size: var(--tl-type-500) !important;
    }

    .customer-account-section .address-capture-map-section .checkout-location-map-wrap {
        min-height: 0 !important;
        border-radius: 12px !important;
    }

    .customer-account-section .checkout-location-current {
        top: 7px !important;
        right: 7px !important;
        min-height: 40px !important;
        height: 40px !important;
        padding: 0 10px !important;
        font-size: var(--tl-type-500) !important;
    }

    .customer-account-section .address-capture-map-action-row {
        min-height: 44px !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: 44px auto !important;
        gap: 4px !important;
    }

    .customer-account-section .address-location-confirm {
        min-height: 44px !important;
        height: 44px !important;
        font-size: var(--tl-type-600) !important;
    }

    .customer-account-section .address-capture-map-action-row .checkout-location-result {
        min-height: 18px !important;
        height: auto !important;
        padding: 0 4px !important;
        border: 0 !important;
        background: transparent !important;
        font-size: var(--tl-type-400) !important;
        line-height: 1.35 !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
    }

    .customer-account-section .customer-address-capture-grid {
        gap: 7px !important;
    }

    .customer-account-section .customer-address-capture-grid .auth-field label {
        top: 5px !important;
        right: 10px !important;
        left: 10px !important;
        font-size: var(--tl-type-500) !important;
        line-height: 1.2 !important;
    }

    .customer-account-section .customer-address-capture-grid .auth-field input,
    .customer-account-section .customer-address-capture-grid .auth-field select,
    .customer-account-section .customer-address-capture-grid .auth-field textarea {
        min-height: 48px !important;
        height: 48px !important;
        padding: 18px 10px 5px !important;
        border-radius: 10px !important;
        font-size: var(--tl-type-600) !important;
        line-height: 1.25 !important;
    }

    .customer-account-section .customer-address-capture-grid .auth-field textarea {
        min-height: 62px !important;
        height: 62px !important;
        max-height: 62px !important;
        padding-top: 20px !important;
        line-height: 1.35 !important;
    }

    .customer-account-section .address-capture-receiver-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px !important;
    }

    .customer-account-section .customer-address-capture-actions {
        width: 100% !important;
        height: 58px !important;
        padding: 4px !important;
        gap: 7px !important;
        border-radius: 15px !important;
    }

    .customer-account-section .customer-address-capture-actions .btn {
        min-height: 48px !important;
        height: 48px !important;
        padding: 0 10px !important;
        border-radius: 11px !important;
        font-size: var(--tl-type-600) !important;
    }

    .customer-account-section .customer-address-capture-error:not(:empty) {
        bottom: 66px !important;
        min-height: 40px !important;
        padding: 8px 11px !important;
        font-size: var(--tl-type-500) !important;
    }

    .customer-account-section .address-capture-validation {
        font-size: var(--tl-type-500) !important;
    }

    body.customer-account-section:has(.customer-address-capture-page) .customer-account-section-header__identity strong {
        font-size: var(--tl-type-500) !important;
    }

    body.customer-account-section:has(.customer-address-capture-page) .customer-account-section-header__identity small {
        font-size: var(--tl-type-400) !important;
    }

    .customer-account-section .address-title-modal__dialog {
        padding: 17px !important;
    }

    .customer-account-section .address-title-modal__dialog > strong {
        font-size: var(--tl-type-700) !important;
    }

    .customer-account-section .address-title-modal__dialog > p,
    .customer-account-section .address-title-modal__error {
        font-size: var(--tl-type-500) !important;
    }

    .customer-account-section .address-title-modal__dialog input,
    .customer-account-section .address-title-modal__confirm {
        min-height: 50px !important;
        height: 50px !important;
        font-size: var(--tl-type-600) !important;
    }
}

@media (max-width: 700px) and (max-height: 740px) {
    .customer-account-section .customer-address-capture-page {
        padding-top: 4px !important;
        padding-bottom: 7px !important;
    }

    .customer-account-section .customer-address-capture-form {
        grid-template-rows: minmax(0, 1fr) 54px !important;
        gap: 6px !important;
    }

    .customer-account-section .customer-address-capture-body {
        grid-template-rows: 175px minmax(0, 1fr) !important;
        gap: 6px !important;
    }

    .customer-account-section .customer-address-editor-panel {
        padding: 6px !important;
        gap: 4px !important;
    }

    .customer-account-section .customer-address-editor-panel__header {
        min-height: 27px !important;
    }

    .customer-account-section .customer-address-editor-panel__header small {
        display: none !important;
    }

    .customer-account-section .address-capture-map-action-row {
        grid-template-rows: 40px !important;
    }

    .customer-account-section .address-capture-map-action-row .checkout-location-result {
        display: none !important;
    }

    .customer-account-section .address-location-confirm {
        min-height: 40px !important;
        height: 40px !important;
    }

    .customer-account-section .checkout-location-current {
        min-height: 38px !important;
        height: 38px !important;
    }

    .customer-account-section .customer-address-capture-grid {
        gap: 4px !important;
    }

    .customer-account-section .customer-address-capture-grid .auth-field input,
    .customer-account-section .customer-address-capture-grid .auth-field select {
        min-height: 44px !important;
        height: 44px !important;
        padding-top: 17px !important;
    }

    .customer-account-section .customer-address-capture-grid .auth-field textarea {
        min-height: 52px !important;
        height: 52px !important;
        max-height: 52px !important;
        padding-top: 18px !important;
    }

    .customer-account-section .address-capture-receiver-row {
        gap: 4px !important;
    }

    .customer-account-section .customer-address-capture-actions {
        height: 54px !important;
        padding: 3px !important;
    }

    .customer-account-section .customer-address-capture-actions .btn {
        min-height: 46px !important;
        height: 46px !important;
    }
}

/* When the on-screen keyboard collapses the visual viewport, keep the page
   itself locked and allow only the details panel to become internally usable. */
@media (max-width: 700px) and (max-height: 560px) {
    .customer-account-section .customer-address-capture-body {
        grid-template-rows: 84px minmax(0, 1fr) !important;
    }

    .customer-account-section .address-capture-map-section .customer-address-editor-panel__header,
    .customer-account-section .address-capture-map-action-row .checkout-location-result {
        display: none !important;
    }

    .customer-account-section .address-capture-map-section .checkout-location-picker {
        gap: 4px !important;
    }

    .customer-account-section .address-capture-map-action-row {
        grid-template-rows: 36px !important;
    }

    .customer-account-section .address-location-confirm {
        min-height: 36px !important;
        height: 36px !important;
    }

    .customer-account-section .address-capture-fields {
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        scrollbar-width: thin !important;
    }
}

/* TEHRANLIGHT_ACCOUNT_ADDRESS_EDITOR_POLISH_20260902
   Keep the native address controls on the project's official IRANSansX stack,
   and keep the desktop location card content-sized instead of viewport-stretched. */
.customer-account-section .customer-address-capture-form input,
.customer-account-section .customer-address-capture-form textarea,
.customer-account-section .customer-address-capture-form select,
.customer-account-section .customer-address-capture-form select option,
.customer-account-section .customer-address-capture-form select optgroup,
.customer-account-section .customer-address-capture-form .address-title-modal__dialog input {
    font-family: 'IRANSansX', 'TehranLightIranSans', Tahoma, Arial, sans-serif !important;
}

@media (min-width: 701px) {
    .customer-account-section .address-capture-map-section {
        align-self: start !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .customer-account-section .address-capture-map-section .checkout-location-picker {
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: 0 !important;
        grid-template-rows: 220px auto !important;
        align-content: start !important;
    }

    .customer-account-section .address-capture-map-section .checkout-location-map-wrap {
        height: 220px !important;
        min-height: 220px !important;
        max-height: 220px !important;
    }
}

/* TEHRANLIGHT_ACCOUNT_ADDRESS_VISUAL_ALIGNMENT_20260902
   Visual-only alignment for Address Book + Address Editor.
   Uses the official Account design-system palette and does not alter layout,
   address behavior, map logic, validation, or mobile viewport geometry. */
.customer-account-body .address-book-page,
.customer-account-body .customer-address-capture-page {
    --address-ui-primary: var(--tl-color-primary, #173f69);
    --address-ui-primary-deep: var(--tl-color-primary-deep, #102b49);
    --address-ui-primary-soft: var(--tl-color-primary-soft, #e8f0f7);
    --address-ui-surface: var(--tl-color-surface, #fff);
    --address-ui-surface-soft: var(--tl-color-surface-soft, #f7fafc);
    --address-ui-text: var(--tl-color-text, #10243f);
    --address-ui-muted: var(--tl-color-muted, #6a7e93);
    --address-ui-line: var(--tl-color-line, rgba(113,128,150,.20));
    --address-ui-line-strong: var(--tl-color-line-strong, rgba(113,128,150,.28));
}

/* Address Book — same blue/navy CTA language as My Account. */
.customer-account-body .address-add-button,
.customer-account-body .orders-add-address {
    border: 1px solid color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 72%, white 10%) !important;
    color: #fff !important;
    background: linear-gradient(145deg,
        var(--address-ui-primary, var(--tl-color-primary, #173f69)),
        var(--address-ui-primary-deep, var(--tl-color-primary-deep, #102b49))) !important;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 20%, transparent) !important;
}

.customer-account-body .address-add-button:hover,
.customer-account-body .orders-add-address:hover {
    border-color: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 78%, white 14%) !important;
    background: linear-gradient(145deg,
        var(--tl-color-primary-hover, #315c87),
        var(--address-ui-primary, var(--tl-color-primary, #173f69))) !important;
}

.customer-account-body .address-card.address-card--horizontal {
    border-color: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 18%, var(--address-ui-line, var(--tl-color-line))) !important;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 7%, transparent), transparent 38%),
        var(--address-ui-surface, var(--tl-color-surface, #fff)) !important;
    box-shadow: var(--tl-shadow-card, 0 10px 28px rgba(16,36,63,.08)) !important;
}

.customer-account-body .address-card.address-card--horizontal:hover {
    border-color: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 34%, var(--address-ui-line, var(--tl-color-line))) !important;
}

.customer-account-body .address-badges .address-badge {
    border-color: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 26%, var(--address-ui-line, var(--tl-color-line))) !important;
    color: var(--address-ui-primary, var(--tl-color-primary, #173f69)) !important;
    background: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 9%, var(--address-ui-surface, var(--tl-color-surface, #fff))) !important;
}

.customer-account-body .address-default-action {
    border-color: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 18%, var(--address-ui-line, var(--tl-color-line))) !important;
    color: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 84%, var(--address-ui-text, var(--tl-color-text, #10243f))) !important;
    background: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 5%, var(--address-ui-surface, var(--tl-color-surface, #fff))) !important;
}

.customer-account-body .address-default-action:hover {
    border-color: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 38%, var(--address-ui-line, var(--tl-color-line))) !important;
    color: var(--address-ui-primary, var(--tl-color-primary, #173f69)) !important;
    background: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 10%, var(--address-ui-surface, var(--tl-color-surface, #fff))) !important;
}

.customer-account-body .address-card-primary-actions .address-edit {
    border-color: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 26%, var(--address-ui-line, var(--tl-color-line))) !important;
    color: var(--address-ui-primary, var(--tl-color-primary, #173f69)) !important;
    background: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 7%, var(--address-ui-surface, var(--tl-color-surface, #fff))) !important;
}

.customer-account-body .address-card-primary-actions .address-edit:hover {
    border-color: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 44%, var(--address-ui-line, var(--tl-color-line))) !important;
    background: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 12%, var(--address-ui-surface, var(--tl-color-surface, #fff))) !important;
}

.customer-account-body .address-card-primary-actions .address-delete {
    border-color: color-mix(in srgb, var(--tl-color-danger, #c2352b) 34%, var(--address-ui-line, var(--tl-color-line))) !important;
    color: var(--tl-color-danger, #c2352b) !important;
    background: color-mix(in srgb, var(--tl-color-danger, #c2352b) 7%, var(--address-ui-surface, var(--tl-color-surface, #fff))) !important;
}

/* Address Editor — inherit the Account card/surface hierarchy. */
.customer-account-body .customer-address-editor-panel {
    border-color: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 18%, var(--address-ui-line, var(--tl-color-line))) !important;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 6%, transparent), transparent 38%),
        var(--address-ui-surface, var(--tl-color-surface, #fff)) !important;
    box-shadow: var(--tl-shadow-card, 0 10px 28px rgba(16,36,63,.08)) !important;
}

.customer-account-body .customer-address-editor-step {
    border-color: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 32%, var(--address-ui-line, var(--tl-color-line))) !important;
    color: var(--address-ui-primary, var(--tl-color-primary, #173f69)) !important;
    background: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 9%, var(--address-ui-surface, var(--tl-color-surface, #fff))) !important;
}

.customer-account-body .address-capture-map-section .checkout-location-map-wrap {
    border-color: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 20%, var(--address-ui-line, var(--tl-color-line))) !important;
}

.customer-account-body .checkout-location-current {
    border-color: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 68%, white 8%) !important;
    color: #fff !important;
    background: linear-gradient(145deg,
        var(--address-ui-primary, var(--tl-color-primary, #173f69)),
        var(--address-ui-primary-deep, var(--tl-color-primary-deep, #102b49))) !important;
    box-shadow: 0 7px 18px color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 22%, transparent) !important;
}

.customer-account-body .address-location-confirm {
    border-color: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 30%, var(--address-ui-line, var(--tl-color-line))) !important;
    color: var(--address-ui-primary, var(--tl-color-primary, #173f69)) !important;
    background: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 8%, var(--address-ui-surface, var(--tl-color-surface, #fff))) !important;
    box-shadow: none !important;
}

.customer-account-body .address-location-confirm:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 44%, var(--address-ui-line, var(--tl-color-line))) !important;
    background: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 13%, var(--address-ui-surface, var(--tl-color-surface, #fff))) !important;
}

.customer-account-body .customer-address-capture-grid .auth-field input,
.customer-account-body .customer-address-capture-grid .auth-field select,
.customer-account-body .customer-address-capture-grid .auth-field textarea,
.customer-account-body .address-title-modal__dialog input {
    border-color: var(--address-ui-line-strong, var(--tl-color-line-strong, rgba(113,128,150,.28))) !important;
    color: var(--address-ui-text, var(--tl-color-text, #10243f)) !important;
    background: color-mix(in srgb, var(--address-ui-surface, var(--tl-color-surface, #fff)) 96%, var(--address-ui-primary-soft, var(--tl-color-primary-soft, #e8f0f7)) 4%) !important;
}

.customer-account-body .customer-address-capture-grid .auth-field input:focus,
.customer-account-body .customer-address-capture-grid .auth-field select:focus,
.customer-account-body .customer-address-capture-grid .auth-field textarea:focus,
.customer-account-body .address-title-modal__dialog input:focus {
    border-color: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 62%, var(--address-ui-line-strong, var(--tl-color-line-strong))) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 12%, transparent) !important;
}

.customer-account-body .customer-address-capture-actions {
    border-color: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 14%, var(--address-ui-line, var(--tl-color-line))) !important;
    background: color-mix(in srgb, var(--address-ui-surface, var(--tl-color-surface, #fff)) 92%, transparent) !important;
    box-shadow: var(--tl-shadow-card, 0 10px 28px rgba(16,36,63,.08)) !important;
}

.customer-account-body .address-capture-save,
.customer-account-body .address-title-modal__confirm {
    border-color: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 72%, white 10%) !important;
    color: #fff !important;
    background: linear-gradient(145deg,
        var(--address-ui-primary, var(--tl-color-primary, #173f69)),
        var(--address-ui-primary-deep, var(--tl-color-primary-deep, #102b49))) !important;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 20%, transparent) !important;
}

.customer-account-body .address-capture-save:hover,
.customer-account-body .address-title-modal__confirm:hover {
    background: linear-gradient(145deg,
        var(--tl-color-primary-hover, #315c87),
        var(--address-ui-primary, var(--tl-color-primary, #173f69))) !important;
}

.customer-account-body .address-capture-cancel {
    border-color: var(--address-ui-line-strong, var(--tl-color-line-strong, rgba(113,128,150,.28))) !important;
    color: var(--address-ui-primary, var(--tl-color-primary, #173f69)) !important;
    background: color-mix(in srgb, var(--address-ui-surface, var(--tl-color-surface, #fff)) 96%, transparent) !important;
}

.customer-account-body .address-title-modal__dialog {
    border-color: color-mix(in srgb, var(--address-ui-primary, var(--tl-color-primary, #173f69)) 18%, var(--address-ui-line, var(--tl-color-line))) !important;
    background: var(--address-ui-surface, var(--tl-color-surface, #fff)) !important;
}

/* Dark: use the same blue-tinted navy surfaces visible on My Account tiles. */
html[data-theme="dark"] .customer-account-body .address-card.address-card--horizontal,
html[data-theme="dark"] .customer-account-body .customer-address-editor-panel,
html[data-theme="dark"] .customer-account-body .customer-address-capture-actions,
html[data-theme="dark"] .customer-account-body .address-title-modal__dialog {
    border-color: color-mix(in srgb, var(--tl-color-primary, #173f69) 42%, var(--tl-color-line, #26384d)) !important;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--tl-color-primary, #173f69) 16%, transparent), transparent 42%),
        color-mix(in srgb, var(--tl-color-surface-soft, #132238) 84%, var(--tl-color-bg, #080e18) 16%) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .customer-account-body .address-badges .address-badge,
html[data-theme="dark"] .customer-account-body .address-default-action,
html[data-theme="dark"] .customer-account-body .address-card-primary-actions .address-edit,
html[data-theme="dark"] .customer-account-body .address-location-confirm,
html[data-theme="dark"] .customer-account-body .customer-address-editor-step {
    border-color: color-mix(in srgb, var(--tl-color-primary, #173f69) 46%, var(--tl-color-line, #26384d)) !important;
    color: color-mix(in srgb, var(--tl-color-primary-hover, #4b7197) 58%, white 42%) !important;
    background: color-mix(in srgb, var(--tl-color-primary, #173f69) 20%, var(--tl-color-surface-soft, #132238)) !important;
}

html[data-theme="dark"] .customer-account-body .customer-address-capture-grid .auth-field input,
html[data-theme="dark"] .customer-account-body .customer-address-capture-grid .auth-field select,
html[data-theme="dark"] .customer-account-body .customer-address-capture-grid .auth-field textarea,
html[data-theme="dark"] .customer-account-body .address-title-modal__dialog input,
html[data-theme="dark"] .customer-account-body .address-capture-cancel {
    border-color: color-mix(in srgb, var(--tl-color-primary, #173f69) 24%, var(--tl-color-line, #26384d)) !important;
    color: var(--tl-color-text, #edf5fd) !important;
    background: color-mix(in srgb, var(--tl-color-surface, #101b2a) 82%, var(--tl-color-surface-soft, #132238) 18%) !important;
}

html[data-theme="dark"] .customer-account-body .address-card-primary-actions .address-delete {
    border-color: color-mix(in srgb, var(--tl-color-danger, #c2352b) 46%, var(--tl-color-line, #26384d)) !important;
    color: color-mix(in srgb, var(--tl-color-danger, #c2352b) 58%, white 42%) !important;
    background: color-mix(in srgb, var(--tl-color-danger, #c2352b) 10%, var(--tl-color-surface-soft, #132238)) !important;
}

/* TL_ORDERS_LIST_REDESIGN_START */
.customer-orders table {
    min-width: 820px;
}

.customer-orders td[data-label="وضعیت سفارش"] {
    min-width: 240px;
}

.tl-order-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tl-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: var(--tl-type-100);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.tl-badge--warning {
    color: #8a6200;
    background: #fff4cc;
    border-color: #f2d27a;
}

.tl-badge--info {
    color: #0b4f73;
    background: #dff3ff;
    border-color: #b8e4ff;
}

.tl-badge--sky {
    color: #1f4c8f;
    background: #e8f1ff;
    border-color: #cbdcff;
}

.tl-badge--success {
    color: #166534;
    background: #dcfce7;
    border-color: #a7f3c0;
}

.tl-badge--danger {
    color: #b42318;
    background: #fee4e2;
    border-color: #fecdca;
}

.tl-badge--violet {
    color: #6941c6;
    background: #f4ebff;
    border-color: #e9d7fe;
}

.tl-badge--neutral {
    color: #475467;
    background: #f2f4f7;
    border-color: #d0d5dd;
}

@media (max-width: 700px) {
    .customer-account-body .orders-page-card {
        padding: 10px;
        border-radius: 22px;
        background: rgba(255,255,255,.72);
        box-shadow: 0 14px 36px rgba(20,31,48,.06);
    }

    .customer-orders table {
        min-width: 0;
    }

    .customer-orders thead {
        display: none;
    }

    .customer-orders table,
    .customer-orders tbody,
    .customer-orders tr,
    .customer-orders td {
        display: block;
        width: 100%;
    }

    .customer-orders tr {
        margin-bottom: 10px;
        padding: 12px 14px 10px;
        border: 1px solid rgba(20,32,51,.08);
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,253,.96) 100%);
        box-shadow: 0 8px 24px rgba(20,31,48,.07);
    }

    .customer-orders tr:last-child {
        margin-bottom: 0;
    }

    .customer-orders td {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 10px;
        align-items: start;
        padding: 7px 0;
        border-bottom: 1px solid rgba(20,32,51,.07);
        text-align: right;
    }

    .customer-orders td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: var(--tl-type-100);
        font-weight: 700;
        line-height: 1.8;
        padding-top: 1px;
    }

    .customer-orders td strong {
        line-height: 1.75;
    }

    .customer-orders td:last-child {
        border-bottom: 0;
        padding-top: 10px;
        padding-bottom: 0;
    }

    .customer-orders td:last-child::before {
        content: none;
    }

    .customer-orders td:last-child a.btn {
        display: flex;
        width: 100%;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
    }

    .customer-orders td[data-label="وضعیت سفارش"] {
        min-width: 0;
    }

    .tl-order-statuses {
        justify-content: flex-start;
        gap: 6px;
    }

    .tl-badge {
        min-height: 30px;
        padding: 0 10px;
        font-size: calc(var(--tl-type-100) - 1px);
    }
}
/* TL_ORDERS_LIST_REDESIGN_END */

/* TL_ORDERS_MOBILE_COMPACT_V2_START */
@media (max-width: 700px) {
    .customer-account-body .orders-page-card {
        padding: 8px !important;
        border-radius: 20px !important;
        background: rgba(255,255,255,.76) !important;
        box-shadow: 0 12px 30px rgba(20,31,48,.055) !important;
    }

    .customer-account-body .orders-page-card .customer-orders {
        overflow: visible !important;
    }

    .customer-account-body .orders-page-card .customer-orders tbody {
        display: grid !important;
        gap: 8px !important;
    }

    .customer-account-body .orders-page-card .customer-orders tr {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 0 9px !important;
        width: 100% !important;
        padding: 10px 12px 9px !important;
        margin: 0 !important;
        border: 1px solid rgba(23,63,105,.12) !important;
        border-radius: 16px !important;
        background:
            radial-gradient(circle at 100% 0, rgba(75,169,217,.075), transparent 38%),
            linear-gradient(180deg, rgba(255,255,255,.99), rgba(249,251,254,.98)) !important;
        box-shadow: 0 7px 20px rgba(16,36,63,.055) !important;
    }

    .customer-account-body .orders-page-card .customer-orders td {
        display: flex !important;
        width: auto !important;
        min-width: 0 !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        padding: 5px 0 !important;
        margin: 0 !important;
        border: 0 !important;
        text-align: right !important;
        overflow-wrap: anywhere;
    }

    .customer-account-body .orders-page-card .customer-orders td::before {
        flex: 0 0 auto;
        color: var(--muted, #687487) !important;
        font-size: var(--tl-type-100) !important;
        font-weight: 700 !important;
        line-height: 1.55 !important;
        text-align: right !important;
    }

    .customer-account-body .orders-page-card .customer-orders td[data-label="شماره سفارش"],
    .customer-account-body .orders-page-card .customer-orders td[data-label="وضعیت سفارش"],
    .customer-account-body .orders-page-card .customer-orders td[data-label="مبلغ"],
    .customer-account-body .orders-page-card .customer-orders td:last-child {
        grid-column: 1 / -1 !important;
    }

    .customer-account-body .orders-page-card .customer-orders td[data-label="شماره سفارش"] {
        min-height: 31px !important;
        padding-bottom: 7px !important;
        border-bottom: 1px solid rgba(23,63,105,.08) !important;
    }

    .customer-account-body .orders-page-card .customer-orders td[data-label="شماره سفارش"] strong {
        min-width: 0;
        color: var(--text, #10243f);
        font-weight: 900;
        line-height: 1.5;
        text-align: left;
    }

    .customer-account-body .orders-page-card .customer-orders td[data-label="تاریخ"],
    .customer-account-body .orders-page-card .customer-orders td[data-label="ساعت"] {
        min-height: 43px !important;
        margin-top: 7px !important;
        padding: 6px 8px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 1px !important;
        border: 1px solid rgba(23,63,105,.07) !important;
        border-radius: 10px !important;
        background: rgba(247,250,253,.82) !important;
    }

    .customer-account-body .orders-page-card .customer-orders td[data-label="تاریخ"]::before,
    .customer-account-body .orders-page-card .customer-orders td[data-label="ساعت"]::before {
        font-size: calc(var(--tl-type-100) - 1px) !important;
        opacity: .88;
    }

    .customer-account-body .orders-page-card .customer-orders td[data-label="وضعیت سفارش"] {
        min-height: 38px !important;
        padding-top: 7px !important;
        padding-bottom: 6px !important;
    }

    .customer-account-body .orders-page-card .tl-order-statuses {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 5px !important;
        min-width: 0;
    }

    .customer-account-body .orders-page-card .tl-badge {
        min-height: 27px !important;
        padding: 0 9px !important;
        border-radius: 999px !important;
        font-size: calc(var(--tl-type-100) - 1px) !important;
        font-weight: 800 !important;
        line-height: 1 !important;
    }

    .customer-account-body .orders-page-card .customer-orders td[data-label="مبلغ"] {
        min-height: 31px !important;
        padding-top: 5px !important;
        padding-bottom: 7px !important;
        border-top: 1px solid rgba(23,63,105,.07) !important;
    }

    .customer-account-body .orders-page-card .customer-orders td[data-label="مبلغ"] strong {
        font-weight: 900;
        line-height: 1.45;
    }

    .customer-account-body .orders-page-card .customer-orders td:last-child {
        display: block !important;
        padding-top: 6px !important;
        padding-bottom: 0 !important;
    }

    .customer-account-body .orders-page-card .customer-orders td:last-child::before {
        display: none !important;
        content: none !important;
    }

    .customer-account-body .orders-page-card .customer-orders td:last-child .btn {
        display: flex !important;
        width: 100% !important;
        min-height: 38px !important;
        margin: 0 !important;
        padding: 0 12px !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 11px !important;
        border-color: rgba(23,63,105,.13) !important;
        background: rgba(255,255,255,.72) !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.72) !important;
    }
}
/* TL_ORDERS_MOBILE_COMPACT_V2_END */

/* TL_ORDER_DETAIL_REDESIGN_START */
.tl-order-detail-page .customer-order-detail {
    gap: 18px;
    align-items: start;
}

.tl-order-detail-page .tl-detail-card,
.tl-order-detail-page .tl-summary-card {
    border-radius: 24px;
    border: 1px solid rgba(20,32,51,.08);
    background: rgba(255,255,255,.82);
    box-shadow: 0 18px 48px rgba(20,31,48,.07);
}

.tl-inline-alert { margin-bottom: 14px; }
.tl-inline-alert--error { color: #b42318; border-color: rgba(180,35,24,.16); background: #fff6f5; }

.tl-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.tl-card-head h2, .tl-summary-card h2 { margin: 0; }
.tl-card-head p { margin: 6px 0 0; color: var(--muted); font-size: var(--tl-type-100); }

.tl-order-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tl-order-badges--compact { gap: 6px; }

.tl-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 34px; padding: 0 12px; border-radius: 999px;
    border: 1px solid transparent; font-size: var(--tl-type-100); font-weight: 800; line-height: 1; white-space: nowrap;
}
.tl-badge--warning { color: #8a6200; background: #fff4cc; border-color: #f2d27a; }
.tl-badge--info { color: #0b4f73; background: #dff3ff; border-color: #b8e4ff; }
.tl-badge--sky { color: #1f4c8f; background: #e8f1ff; border-color: #cbdcff; }
.tl-badge--success { color: #166534; background: #dcfce7; border-color: #a7f3c0; }
.tl-badge--danger { color: #b42318; background: #fee4e2; border-color: #fecdca; }
.tl-badge--violet { color: #6941c6; background: #f4ebff; border-color: #e9d7fe; }
.tl-badge--neutral { color: #475467; background: #f2f4f7; border-color: #d0d5dd; }

.tl-group-card {
    margin-top: 16px; padding: 16px; border: 1px solid rgba(20,32,51,.08); border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(247,249,252,.97) 100%);
}
.tl-group-card:first-of-type { margin-top: 0; }
.tl-group-card__header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.tl-group-card__title { display: block; margin-bottom: 8px; font-size: var(--tl-type-400); }
.tl-group-total {
    min-width: 155px; padding: 10px 12px; border-radius: 16px; background: #f7f9fc;
    border: 1px solid rgba(20,32,51,.08); text-align: right;
}
.tl-group-total span, .tl-summary-hero__label, .tl-info-panel__label {
    display: block; color: var(--muted); font-size: var(--tl-type-100); margin-bottom: 5px;
}
.tl-group-total strong, .tl-summary-hero__value { font-size: var(--tl-type-400); }
.tl-items-stack + .tl-group-total { margin-top: 12px; margin-inline-start: auto; }

.tl-items-stack { display: grid; gap: 0; }
.tl-order-line {
    display: grid;
    grid-template-columns: 64px minmax(0,1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 72px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(20,32,51,.12);
}
.tl-order-line:last-child { border-bottom: 0; }
.tl-order-line__media {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(20,32,51,.08);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tl-order-line__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-order-line__placeholder { color: var(--muted); font-size: var(--tl-type-100); }
.tl-order-line__content { min-width: 0; overflow: hidden; }
.tl-order-line__title {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.7;
}
.tl-order-line__meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    min-width: 0;
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted);
    font-size: var(--tl-type-100);
    white-space: nowrap;
}
.tl-order-line__meta span {
    min-width: 0;
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tl-order-line__meta span + span::before {
    content: "•";
    display: inline-block;
    margin: 0 6px;
    opacity: .55;
}
.tl-order-line__price {
    min-width: 86px;
    text-align: left;
    white-space: nowrap;
}
.tl-order-line__price strong { display: block; font-size: var(--tl-type-200); }
.tl-order-line__price small { display: block; margin-top: 3px; color: var(--muted); font-size: calc(var(--tl-type-100) - 1px); }

.tl-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.tl-info-grid--summary { margin-top: 16px; }
.tl-info-panel { padding: 14px; border-radius: 18px; background: #f8fafc; border: 1px solid rgba(20,32,51,.06); }
.tl-info-panel strong, .tl-info-panel small { display: block; line-height: 1.9; }
.tl-info-panel small { color: var(--muted); margin-top: 4px; }

.tl-tracking-box {
    margin-top: 14px; padding: 14px; border-radius: 18px;
    border: 1px dashed rgba(75,169,217,.42); background: rgba(75,169,217,.06);
}
.tl-tracking-box__title { margin-bottom: 10px; font-weight: 800; }
.tl-detail-kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; line-height: 1.9; }
.tl-detail-kv span { color: var(--muted); }

.tl-summary-hero {
    padding: 16px; border-radius: 20px;
    background: linear-gradient(180deg, rgba(17,27,43,.98) 0%, rgba(28,42,66,.96) 100%); color: #fff;
}
.tl-summary-hero .tl-summary-hero__label { color: rgba(255,255,255,.72); }
.tl-summary-hero .tl-order-badges { margin-top: 12px; }
.tl-summary-list { margin-top: 16px; }
.tl-summary-card .order-meta-row { padding: 12px 0; }
.tl-summary-card .order-meta-row--total { margin-top: 4px; padding-top: 16px; border-top: 1px solid rgba(20,32,51,.12); }
.tl-summary-card .order-meta-row--total strong { font-size: var(--tl-type-400); }
.tl-action-stack { display: grid; gap: 10px; margin-top: 16px; }
.tl-action-stack .btn, .tl-tracking-box .btn, .tl-cancel-form .btn { width: 100%; }

.tl-cancel-form {
    margin-top: 16px; padding: 14px; border-radius: 18px; border: 1px solid rgba(20,32,51,.08); background: #f9fafb;
}
.tl-cancel-form label { display: block; margin-bottom: 8px; font-size: var(--tl-type-100); font-weight: 700; }
.tl-cancel-form textarea {
    width: 100%; min-height: 88px; padding: 10px 12px; border: 1px solid rgba(20,32,51,.14); border-radius: 14px;
    resize: vertical; font: inherit; background: #fff;
}
.tl-cancel-form textarea:focus {
    outline: none; border-color: rgba(75,169,217,.58); box-shadow: 0 0 0 4px rgba(75,169,217,.08);
}

@media (max-width: 980px) {
    .tl-order-detail-page .customer-order-detail { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .tl-order-detail-page .tl-detail-card,
    .tl-order-detail-page .tl-summary-card {
        border-radius: 22px;
        padding: 14px;
    }

    .tl-card-head,
    .tl-group-card__header,
    .tl-detail-kv {
        flex-direction: column;
        align-items: stretch;
    }

    .tl-group-card {
        padding: 12px 14px;
        border-radius: 18px;
    }

    .tl-info-grid { grid-template-columns: 1fr; }
    .tl-group-total, .tl-summary-hero, .tl-info-panel, .tl-tracking-box, .tl-cancel-form { border-radius: 16px; }
    .tl-summary-hero__value, .tl-group-total strong, .tl-summary-card .order-meta-row--total strong { font-size: var(--tl-type-300); }
    .tl-order-badges { gap: 6px; }
    .tl-badge { min-height: 30px; padding: 0 10px; font-size: calc(var(--tl-type-100) - 1px); }

    .tl-order-line {
        grid-template-columns: 58px minmax(0,1fr) auto;
        gap: 8px;
        min-height: 64px;
        padding: 4px 0;
    }

    .tl-order-line__media {
        width: 56px;
        height: 56px;
        border-radius: 13px;
    }

    .tl-order-line__title {
        font-size: var(--tl-type-200);
        line-height: 1.65;
    }

    .tl-order-line__meta {
        margin-top: 2px;
        font-size: calc(var(--tl-type-100) - 1px);
    }

    .tl-order-line__price {
        min-width: 74px;
    }

    .tl-order-line__price strong {
        font-size: var(--tl-type-100);
    }

    .tl-order-line__price small {
        display: none;
    }
}
/* TL_ORDER_DETAIL_REDESIGN_END */

/* TL_ORDER_DETAIL_COMPACT_INFO_START */
@media (max-width: 700px) {
    .tl-info-grid {
        gap: 8px;
        margin-top: 10px;
    }

    .tl-info-panel {
        padding: 10px 12px;
        border-radius: 14px;
    }

    .tl-info-panel__label {
        margin-bottom: 4px;
        font-size: calc(var(--tl-type-100) - 1px);
        line-height: 1.35;
    }

    .tl-info-panel strong {
        line-height: 1.45;
        font-size: var(--tl-type-200);
    }

    .tl-info-panel small {
        margin-top: 2px;
        line-height: 1.45;
        font-size: calc(var(--tl-type-100) - 1px);
    }

    .tl-items-stack + .tl-group-total {
        margin-top: 10px;
    }

    .tl-group-total {
        min-width: 0;
        padding: 10px 12px;
        border-radius: 14px;
    }

    .tl-group-total span {
        margin-bottom: 4px;
        line-height: 1.35;
    }

    .tl-group-total strong {
        font-size: var(--tl-type-200);
        line-height: 1.4;
    }

    .tl-detail-kv {
        padding: 2px 0;
        line-height: 1.55;
    }
}
/* TL_ORDER_DETAIL_COMPACT_INFO_END */

/* TL_ORDER_DETAIL_TWO_BY_TWO_INFO_START */
@media (max-width: 700px) {
    .tl-info-grid--group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        align-items: stretch;
    }

    .tl-info-grid--group .tl-group-total,
    .tl-info-grid--group .tl-info-panel {
        min-width: 0;
        width: 100%;
        margin: 0;
        padding: 9px 10px;
        border-radius: 14px;
        min-height: 76px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .tl-info-grid--group .tl-group-total span,
    .tl-info-grid--group .tl-info-panel__label {
        margin-bottom: 3px;
        line-height: 1.3;
    }

    .tl-info-grid--group .tl-group-total strong,
    .tl-info-grid--group .tl-info-panel strong {
        line-height: 1.45;
        font-size: var(--tl-type-100);
    }

    .tl-info-grid--group .tl-info-panel small {
        margin-top: 2px;
        line-height: 1.35;
        font-size: calc(var(--tl-type-100) - 1px);
        overflow-wrap: anywhere;
    }
}
/* TL_ORDER_DETAIL_TWO_BY_TWO_INFO_END */

/* TL_ORDER_DETAIL_DARK_FIX_START */
html[data-theme="dark"] .tl-order-detail-page {
    color: var(--auth-text, #edf2fa);
}

html[data-theme="dark"] .tl-order-detail-page .tl-detail-card,
html[data-theme="dark"] .tl-order-detail-page .tl-summary-card {
    color: var(--auth-text, #edf2fa);
    border-color: rgba(218,228,243,.11);
    background: rgba(15,24,39,.90);
    box-shadow: 0 18px 52px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.035);
}

html[data-theme="dark"] .tl-order-detail-page .tl-card-head h2,
html[data-theme="dark"] .tl-order-detail-page .tl-group-card__title,
html[data-theme="dark"] .tl-order-detail-page .tl-order-line__title,
html[data-theme="dark"] .tl-order-detail-page .tl-order-line__price strong,
html[data-theme="dark"] .tl-order-detail-page .tl-info-panel strong,
html[data-theme="dark"] .tl-order-detail-page .tl-group-total strong,
html[data-theme="dark"] .tl-order-detail-page .order-meta-row strong,
html[data-theme="dark"] .tl-order-detail-page .tl-detail-kv b {
    color: var(--auth-text, #edf2fa);
}

html[data-theme="dark"] .tl-order-detail-page .tl-card-head p,
html[data-theme="dark"] .tl-order-detail-page .tl-order-line__meta,
html[data-theme="dark"] .tl-order-detail-page .tl-order-line__price small,
html[data-theme="dark"] .tl-order-detail-page .tl-info-panel__label,
html[data-theme="dark"] .tl-order-detail-page .tl-info-panel small,
html[data-theme="dark"] .tl-order-detail-page .tl-group-total span,
html[data-theme="dark"] .tl-order-detail-page .order-meta-row span,
html[data-theme="dark"] .tl-order-detail-page .tl-detail-kv span {
    color: var(--auth-muted, #99a6b8);
}

html[data-theme="dark"] .tl-order-detail-page .tl-group-card {
    border-color: rgba(218,228,243,.10);
    background: linear-gradient(180deg, rgba(18,29,47,.96) 0%, rgba(11,19,32,.96) 100%);
    box-shadow: 0 12px 34px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.025);
}

html[data-theme="dark"] .tl-order-detail-page .tl-order-line {
    border-bottom-color: rgba(218,228,243,.10);
}

html[data-theme="dark"] .tl-order-detail-page .tl-order-line__media {
    border-color: rgba(218,228,243,.12);
    background: rgba(255,255,255,.045);
}

html[data-theme="dark"] .tl-order-detail-page .tl-order-line__placeholder {
    color: var(--auth-muted, #99a6b8);
}

html[data-theme="dark"] .tl-order-detail-page .tl-order-line__meta span {
    color: #b7c2d2;
    border-color: rgba(218,228,243,.10);
    background: rgba(255,255,255,.05);
}

html[data-theme="dark"] .tl-order-detail-page .tl-info-panel,
html[data-theme="dark"] .tl-order-detail-page .tl-group-total {
    border-color: rgba(218,228,243,.10);
    background: rgba(255,255,255,.045);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

html[data-theme="dark"] .tl-order-detail-page .tl-tracking-box {
    color: var(--auth-text, #edf2fa);
    border-color: rgba(90,190,240,.28);
    background: rgba(75,169,217,.09);
}

html[data-theme="dark"] .tl-order-detail-page .tl-summary-hero {
    color: #f7faff;
    border: 1px solid rgba(218,228,243,.09);
    background: linear-gradient(180deg, rgba(25,40,64,.98) 0%, rgba(12,22,38,.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}

html[data-theme="dark"] .tl-order-detail-page .tl-summary-hero__label {
    color: #a8b5c7;
}

html[data-theme="dark"] .tl-order-detail-page .tl-summary-list .order-meta-row {
    border-bottom-color: rgba(218,228,243,.10);
}

html[data-theme="dark"] .tl-order-detail-page .tl-summary-card .order-meta-row--total {
    border-top-color: rgba(218,228,243,.13);
}

html[data-theme="dark"] .tl-order-detail-page .tl-cancel-form {
    color: var(--auth-text, #edf2fa);
    border-color: rgba(218,228,243,.10);
    background: rgba(255,255,255,.035);
}

html[data-theme="dark"] .tl-order-detail-page .tl-cancel-form textarea {
    color: var(--auth-text, #edf2fa);
    border-color: rgba(218,228,243,.14);
    background: rgba(255,255,255,.05);
}

html[data-theme="dark"] .tl-order-detail-page .tl-badge--neutral {
    color: #cbd5e1;
    border-color: rgba(203,213,225,.16);
    background: rgba(148,163,184,.11);
}

html[data-theme="dark"] .tl-order-detail-page .tl-badge--warning {
    color: #f7d774;
    border-color: rgba(245,200,76,.24);
    background: rgba(245,200,76,.12);
}

html[data-theme="dark"] .tl-order-detail-page .tl-badge--info {
    color: #8ed8fb;
    border-color: rgba(75,169,217,.28);
    background: rgba(75,169,217,.12);
}

html[data-theme="dark"] .tl-order-detail-page .tl-badge--sky {
    color: #a9c9ff;
    border-color: rgba(103,157,255,.26);
    background: rgba(70,121,210,.14);
}

html[data-theme="dark"] .tl-order-detail-page .tl-badge--success {
    color: #86e6aa;
    border-color: rgba(74,222,128,.24);
    background: rgba(34,197,94,.12);
}

html[data-theme="dark"] .tl-order-detail-page .tl-badge--danger {
    color: #ffaaa4;
    border-color: rgba(248,113,113,.25);
    background: rgba(239,68,68,.12);
}

html[data-theme="dark"] .tl-order-detail-page .tl-badge--violet {
    color: #cab4ff;
    border-color: rgba(167,139,250,.24);
    background: rgba(139,92,246,.13);
}

html[data-theme="dark"] .tl-order-detail-page .tl-inline-alert {
    color: var(--auth-text, #edf2fa);
    border-color: rgba(218,228,243,.10);
    background: rgba(255,255,255,.045);
}

html[data-theme="dark"] .tl-order-detail-page .tl-inline-alert--error {
    color: #ffb4ae;
    border-color: rgba(248,113,113,.22);
    background: rgba(239,68,68,.10);
}

@media (max-width: 700px) {
    html[data-theme="dark"] .tl-order-detail-page .tl-detail-card,
    html[data-theme="dark"] .tl-order-detail-page .tl-summary-card {
        background: rgba(13,22,36,.94);
        box-shadow: 0 14px 38px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.025);
    }

    html[data-theme="dark"] .tl-order-detail-page .tl-group-card {
        background: linear-gradient(180deg, rgba(17,28,45,.98), rgba(10,18,30,.98));
    }

    html[data-theme="dark"] .tl-order-detail-page .tl-info-panel,
    html[data-theme="dark"] .tl-order-detail-page .tl-group-total {
        background: rgba(255,255,255,.04);
    }
}
/* TL_ORDER_DETAIL_DARK_FIX_END */

/* TL_ORDERS_DARK_FIX_V2_START */
html[data-theme="dark"] .customer-account-body .orders-page-card {
    color: #eaf2fb !important;
    border-color: rgba(255,255,255,.09) !important;
    background: rgba(14,24,38,.96) !important;
    box-shadow: 0 16px 38px rgba(0,0,0,.28) !important;
}

html[data-theme="dark"] .customer-account-body .orders-page-card .customer-orders,
html[data-theme="dark"] .customer-account-body .orders-page-card table,
html[data-theme="dark"] .customer-account-body .orders-page-card tbody {
    color: #eaf2fb !important;
    background: transparent !important;
}

html[data-theme="dark"] .customer-account-body .orders-page-card th {
    color: #9fb0c4 !important;
    border-color: rgba(255,255,255,.08) !important;
}

html[data-theme="dark"] .customer-account-body .orders-page-card td,
html[data-theme="dark"] .customer-account-body .orders-page-card td strong,
html[data-theme="dark"] .customer-account-body .orders-page-card td a:not(.btn) {
    color: #eaf2fb !important;
}

html[data-theme="dark"] .customer-account-body .orders-page-card .customer-orders tr {
    color: #eaf2fb !important;
    border-color: rgba(255,255,255,.09) !important;
    background: rgba(255,255,255,.035) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .customer-account-body .orders-page-card .customer-orders td::before {
    color: #9fb0c4 !important;
}

html[data-theme="dark"] .customer-account-body .orders-page-card .customer-orders td[data-label="تاریخ"],
html[data-theme="dark"] .customer-account-body .orders-page-card .customer-orders td[data-label="ساعت"] {
    color: #eaf2fb !important;
    border-color: rgba(255,255,255,.08) !important;
    background: transparent !important;
}

html[data-theme="dark"] .customer-account-body .orders-page-card .customer-orders td[data-label="شماره سفارش"] {
    border-color: rgba(255,255,255,.08) !important;
}

html[data-theme="dark"] .customer-account-body .orders-page-card .customer-orders td[data-label="مبلغ"] {
    border-color: rgba(255,255,255,.08) !important;
}

html[data-theme="dark"] .customer-account-body .orders-page-card .customer-orders td:last-child .btn {
    color: #edf5fd !important;
    border-color: rgba(255,255,255,.12) !important;
    background: rgba(255,255,255,.055) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}

html[data-theme="dark"] .customer-account-body .orders-page-card .customer-orders td:last-child .btn:hover {
    background: rgba(255,255,255,.085) !important;
}

html[data-theme="dark"] .customer-account-body .orders-page-card .tl-badge--neutral {
    color: #cbd5e1 !important;
    border-color: rgba(203,213,225,.16) !important;
    background: rgba(148,163,184,.10) !important;
}

html[data-theme="dark"] .customer-account-body .orders-page-card .tl-badge--warning {
    color: #f7d774 !important;
    border-color: rgba(245,200,76,.24) !important;
    background: rgba(245,200,76,.12) !important;
}

html[data-theme="dark"] .customer-account-body .orders-page-card .tl-badge--info {
    color: #8ed8fb !important;
    border-color: rgba(75,169,217,.28) !important;
    background: rgba(75,169,217,.12) !important;
}

html[data-theme="dark"] .customer-account-body .orders-page-card .tl-badge--sky {
    color: #a9c9fb !important;
    border-color: rgba(103,157,255,.26) !important;
    background: rgba(70,121,210,.14) !important;
}

html[data-theme="dark"] .customer-account-body .orders-page-card .tl-badge--success {
    color: #86e6aa !important;
    border-color: rgba(74,222,128,.24) !important;
    background: rgba(34,197,94,.12) !important;
}

html[data-theme="dark"] .customer-account-body .orders-page-card .tl-badge--danger {
    color: #ffaaa4 !important;
    border-color: rgba(248,113,113,.25) !important;
    background: rgba(239,68,68,.12) !important;
}

html[data-theme="dark"] .customer-account-body .orders-page-card .tl-badge--violet {
    color: #cab4ff !important;
    border-color: rgba(167,139,250,.24) !important;
    background: rgba(139,92,246,.13) !important;
}

@media (max-width: 700px) {
    html[data-theme="dark"] .customer-account-body .orders-page-card {
        background: rgba(12,21,34,.96) !important;
        border-color: rgba(255,255,255,.09) !important;
    }

    html[data-theme="dark"] .customer-account-body .orders-page-card .customer-orders tr {
        border-color: rgba(255,255,255,.10) !important;
        background:
            radial-gradient(circle at 100% 0, rgba(75,169,217,.08), transparent 38%),
            linear-gradient(180deg, rgba(20,33,52,.98), rgba(13,23,37,.98)) !important;
        box-shadow: 0 8px 22px rgba(0,0,0,.20) !important;
    }

    html[data-theme="dark"] .customer-account-body .orders-page-card .customer-orders td[data-label="تاریخ"],
    html[data-theme="dark"] .customer-account-body .orders-page-card .customer-orders td[data-label="ساعت"] {
        border-color: rgba(255,255,255,.08) !important;
        background: rgba(255,255,255,.045) !important;
    }
}

html[data-theme="dark"] .tl-order-detail-page .tl-detail-card,
html[data-theme="dark"] .tl-order-detail-page .tl-summary-card,
html[data-theme="dark"] .tl-order-detail-page .tl-group-card,
html[data-theme="dark"] .tl-order-detail-page .tl-info-panel,
html[data-theme="dark"] .tl-order-detail-page .tl-group-total,
html[data-theme="dark"] .tl-order-detail-page .tl-cancel-form {
    color: #eaf2fb !important;
    border-color: rgba(255,255,255,.09) !important;
    background: rgba(14,24,38,.96) !important;
}

html[data-theme="dark"] .tl-order-detail-page .tl-order-line__title,
html[data-theme="dark"] .tl-order-detail-page .tl-order-line__price strong,
html[data-theme="dark"] .tl-order-detail-page .tl-info-panel strong,
html[data-theme="dark"] .tl-order-detail-page .tl-group-total strong,
html[data-theme="dark"] .tl-order-detail-page .order-meta-row strong {
    color: #eaf2fb !important;
}

html[data-theme="dark"] .tl-order-detail-page .tl-card-head p,
html[data-theme="dark"] .tl-order-detail-page .tl-order-line__meta,
html[data-theme="dark"] .tl-order-detail-page .tl-order-line__price small,
html[data-theme="dark"] .tl-order-detail-page .tl-info-panel__label,
html[data-theme="dark"] .tl-order-detail-page .tl-info-panel small,
html[data-theme="dark"] .tl-order-detail-page .tl-group-total span,
html[data-theme="dark"] .tl-order-detail-page .order-meta-row span {
    color: #9fb0c4 !important;
}

html[data-theme="dark"] .tl-order-detail-page .tl-order-line__meta span {
    color: #b9c6d6 !important;
    border-color: rgba(255,255,255,.08) !important;
    background: rgba(255,255,255,.045) !important;
}

html[data-theme="dark"] .tl-order-detail-page .tl-order-line__media {
    border-color: rgba(255,255,255,.10) !important;
    background: rgba(255,255,255,.05) !important;
}
/* TL_ORDERS_DARK_FIX_V2_END */

/* TL_ORDER_DETAIL_SUMMARY_BELOW_DESKTOP_START */
@media (min-width: 981px) {
    .tl-order-detail-page .customer-order-detail {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .tl-order-detail-page .tl-detail-card,
    .tl-order-detail-page .tl-summary-card {
        width: 100%;
        max-width: 100%;
    }

    .tl-order-detail-page .tl-summary-card {
        order: 2;
    }
}
/* TL_ORDER_DETAIL_SUMMARY_BELOW_DESKTOP_END */

/* TL_ORDER_DARK_CONTRAST_FIX_START */
html.dark .tl-action-stack .btn,
html.dark .tl-tracking-box .btn,
html.dark .tl-cancel-form .btn,
html.dark .customer-orders td:last-child a.btn,
body.dark-mode .tl-action-stack .btn,
body.dark-mode .tl-tracking-box .btn,
body.dark-mode .tl-cancel-form .btn,
body.dark-mode .customer-orders td:last-child a.btn,
html[data-theme="dark"] .tl-action-stack .btn,
html[data-theme="dark"] .tl-tracking-box .btn,
html[data-theme="dark"] .tl-cancel-form .btn,
html[data-theme="dark"] .customer-orders td:last-child a.btn,
body[data-theme="dark"] .tl-action-stack .btn,
body[data-theme="dark"] .tl-tracking-box .btn,
body[data-theme="dark"] .tl-cancel-form .btn,
body[data-theme="dark"] .customer-orders td:last-child a.btn,
.theme-dark .tl-action-stack .btn,
.theme-dark .tl-tracking-box .btn,
.theme-dark .tl-cancel-form .btn,
.theme-dark .customer-orders td:last-child a.btn {
    background: linear-gradient(180deg, #1d3e67 0%, #163554 100%);
    color: #f8fbff;
    border-color: #3f6da5;
    box-shadow: 0 6px 18px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.08);
}

html.dark .tl-action-stack .btn:hover,
html.dark .tl-tracking-box .btn:hover,
html.dark .tl-cancel-form .btn:hover,
html.dark .customer-orders td:last-child a.btn:hover,
body.dark-mode .tl-action-stack .btn:hover,
body.dark-mode .tl-tracking-box .btn:hover,
body.dark-mode .tl-cancel-form .btn:hover,
body.dark-mode .customer-orders td:last-child a.btn:hover,
html[data-theme="dark"] .tl-action-stack .btn:hover,
html[data-theme="dark"] .tl-tracking-box .btn:hover,
html[data-theme="dark"] .tl-cancel-form .btn:hover,
html[data-theme="dark"] .customer-orders td:last-child a.btn:hover,
body[data-theme="dark"] .tl-action-stack .btn:hover,
body[data-theme="dark"] .tl-tracking-box .btn:hover,
body[data-theme="dark"] .tl-cancel-form .btn:hover,
body[data-theme="dark"] .customer-orders td:last-child a.btn:hover,
.theme-dark .tl-action-stack .btn:hover,
.theme-dark .tl-tracking-box .btn:hover,
.theme-dark .tl-cancel-form .btn:hover,
.theme-dark .customer-orders td:last-child a.btn:hover {
    background: linear-gradient(180deg, #244c7d 0%, #1b4168 100%);
    color: #ffffff;
    border-color: #5a8ac4;
}

html.dark .tl-action-stack .btn:disabled,
html.dark .tl-tracking-box .btn:disabled,
html.dark .tl-cancel-form .btn:disabled,
body.dark-mode .tl-action-stack .btn:disabled,
body.dark-mode .tl-tracking-box .btn:disabled,
body.dark-mode .tl-cancel-form .btn:disabled,
html[data-theme="dark"] .tl-action-stack .btn:disabled,
html[data-theme="dark"] .tl-tracking-box .btn:disabled,
html[data-theme="dark"] .tl-cancel-form .btn:disabled,
body[data-theme="dark"] .tl-action-stack .btn:disabled,
body[data-theme="dark"] .tl-tracking-box .btn:disabled,
body[data-theme="dark"] .tl-cancel-form .btn:disabled,
.theme-dark .tl-action-stack .btn:disabled,
.theme-dark .tl-tracking-box .btn:disabled,
.theme-dark .tl-cancel-form .btn:disabled {
    background: #2a3444;
    color: #d5deea;
    border-color: #49566a;
    opacity: 1;
}
/* TL_ORDER_DARK_CONTRAST_FIX_END */

/* TL_ORDER_LATEST_STATUS_FOCUS_START */
.tl-status-head {
    margin-bottom: 14px;
}

.tl-status-head__main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 15px;
    border: 1px solid rgba(20,32,51,.08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(248,250,253,.98) 0%, rgba(244,247,251,.96) 100%);
}

.tl-status-head__eyebrow {
    color: var(--muted);
    font-size: var(--tl-type-100);
    font-weight: 700;
}

.tl-status-head__badge {
    min-width: 116px;
    min-height: 36px;
    padding-inline: 14px;
}

.tl-group-card__header--simple {
    margin-bottom: 8px;
    align-items: center;
}

.tl-group-card__header--simple .tl-group-card__title {
    margin-bottom: 0;
}

html[data-theme="dark"] .tl-status-head__main,
body[data-theme="dark"] .tl-status-head__main,
body.dark-mode .tl-status-head__main,
.theme-dark .tl-status-head__main {
    border-color: rgba(148,163,184,.18);
    background: linear-gradient(180deg, #111f31 0%, #0e1a29 100%);
}

html[data-theme="dark"] .tl-status-head__eyebrow,
body[data-theme="dark"] .tl-status-head__eyebrow,
body.dark-mode .tl-status-head__eyebrow,
.theme-dark .tl-status-head__eyebrow {
    color: #aebdd0;
}

@media (max-width: 700px) {
    .tl-status-head {
        margin-bottom: 10px;
    }

    .tl-status-head__main {
        padding: 10px 12px;
        border-radius: 15px;
    }

    .tl-status-head__badge {
        min-width: 0;
        min-height: 32px;
        padding-inline: 11px;
    }

    .tl-group-card__header--simple {
        margin-bottom: 6px;
    }
}
/* TL_ORDER_LATEST_STATUS_FOCUS_END */

/* TL_ORDER_CANCELLED_RETURN_TRACKING_START */
.tl-disabled-action {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    cursor: not-allowed;
    pointer-events: none;
    opacity: .55;
    filter: saturate(.45);
}

html[data-theme="dark"] .tl-disabled-action,
body[data-theme="dark"] .tl-disabled-action,
body.dark-mode .tl-disabled-action,
.theme-dark .tl-disabled-action {
    background: #263243 !important;
    color: #9aa8ba !important;
    border-color: #3a485c !important;
    box-shadow: none !important;
    opacity: .7;
}
/* TL_ORDER_CANCELLED_RETURN_TRACKING_END */

/* TL_ORDER_DATE_TIME_INLINE_START */
.tl-order-created-inline {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
}

.tl-order-created-inline strong {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: var(--tl-type-200);
    font-weight: 800;
    line-height: 1.55;
}

.tl-order-created-time {
    gap: 0;
}

.tl-order-created-time span {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.tl-order-created-separator {
    display: none !important;
}

@media (max-width: 700px) {
    .tl-order-created-inline {
        gap: 14px;
    }

    .tl-order-created-inline strong {
        font-size: var(--tl-type-200);
    }
}
/* TL_ORDER_DATE_TIME_INLINE_END */

/* TL_ORDER_DATE_TIME_PERSIAN_FIX_START */
.tl-order-created-inline {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
}

.tl-order-created-inline strong {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: var(--tl-type-200);
    font-weight: 800;
    line-height: 1.55;
}

.tl-order-created-time {
    gap: 0;
}

.tl-order-created-time span {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.tl-order-created-separator {
    display: none !important;
}

@media (max-width: 700px) {
    .tl-order-created-inline {
        gap: 14px;
    }

    .tl-order-created-inline strong {
        font-size: var(--tl-type-200);
    }
}
/* TL_ORDER_DATE_TIME_PERSIAN_FIX_END */

/* TL_ORDER_SUMMARY_LIGHT_STYLE_START */
.tl-summary-hero {
    background: #f8fafc !important;
    color: var(--text) !important;
    border: 1px solid rgba(20,32,51,.08);
    box-shadow: none !important;
}

.tl-summary-hero .tl-summary-hero__label {
    color: var(--muted) !important;
}

.tl-summary-hero .tl-summary-hero__value {
    color: var(--text) !important;
}

html[data-theme="dark"] .tl-summary-hero,
body[data-theme="dark"] .tl-summary-hero,
body.dark-mode .tl-summary-hero,
.theme-dark .tl-summary-hero {
    background: #111f31 !important;
    color: #f5f8fc !important;
    border-color: rgba(148,163,184,.18);
}

html[data-theme="dark"] .tl-summary-hero .tl-summary-hero__label,
body[data-theme="dark"] .tl-summary-hero .tl-summary-hero__label,
body.dark-mode .tl-summary-hero .tl-summary-hero__label,
.theme-dark .tl-summary-hero .tl-summary-hero__label {
    color: #9fb0c4 !important;
}

html[data-theme="dark"] .tl-summary-hero .tl-summary-hero__value,
body[data-theme="dark"] .tl-summary-hero .tl-summary-hero__value,
body.dark-mode .tl-summary-hero .tl-summary-hero__value,
.theme-dark .tl-summary-hero .tl-summary-hero__value {
    color: #f5f8fc !important;
}
/* TL_ORDER_SUMMARY_LIGHT_STYLE_END */

/* TL_ORDER_PRODUCT_LINK_FLOW_START */
.tl-order-line--clickable {
    cursor: pointer;
    transition:
        background-color .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.tl-order-line--clickable:hover {
    background: rgba(75,169,217,.045);
}

.tl-order-line--clickable:focus-visible {
    outline: 2px solid rgba(75,169,217,.7);
    outline-offset: 3px;
    border-radius: 14px;
}

.tl-product-return-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

html[data-theme="dark"] .tl-order-line--clickable:hover,
body[data-theme="dark"] .tl-order-line--clickable:hover,
body.dark-mode .tl-order-line--clickable:hover,
.theme-dark .tl-order-line--clickable:hover {
    background: rgba(75,169,217,.09);
}
/* TL_ORDER_PRODUCT_LINK_FLOW_END */

/* TL_ORDER_RETURN_ACTION_RULES_START */
.tl-action-stack .tl-disabled-action {
    cursor: not-allowed;
    pointer-events: none;
    opacity: .52;
    filter: saturate(.35);
}

html[data-theme="dark"] .tl-action-stack .tl-disabled-action,
body[data-theme="dark"] .tl-action-stack .tl-disabled-action,
body.dark-mode .tl-action-stack .tl-disabled-action,
.theme-dark .tl-action-stack .tl-disabled-action {
    background: #263243 !important;
    color: #9aa8ba !important;
    border-color: #3a485c !important;
    box-shadow: none !important;
    opacity: .72;
}
/* TL_ORDER_RETURN_ACTION_RULES_END */

/* TL_ORDER_CANCEL_INTERNAL_CONFIRM_START */
body.tl-modal-open {
    overflow: hidden;
}

.tl-order-cancel-confirm[hidden] {
    display: none !important;
}

.tl-order-cancel-confirm {
    position: fixed;
    inset: 0;
    z-index: 2147483400;
    display: grid;
    place-items: center;
    padding: 18px;
}

.tl-order-cancel-confirm__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 24, 39, .46);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.tl-order-cancel-confirm__panel {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    padding: 22px;
    border: 1px solid rgba(20, 32, 51, .10);
    border-radius: 20px;
    background: #fff;
    color: #10243f;
    box-shadow: 0 24px 70px rgba(15, 32, 52, .24);
    text-align: right;
    direction: rtl;
}

.tl-order-cancel-confirm__content p {
    margin: 0;
    color: #62748a;
    font-size: var(--tl-type-200, 14px);
    line-height: 1.9;
}

.tl-order-cancel-confirm__actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.tl-order-cancel-confirm__actions .btn {
    flex: 1 1 0;
    min-height: 44px;
    margin: 0;
}

.tl-order-cancel-confirm__confirm {
    border-color: #e25a50 !important;
    background: #d94236 !important;
    color: #fff !important;
}

.tl-order-cancel-confirm__keep {
    border-color: rgba(20, 32, 51, .12) !important;
    background: #f7f9fc !important;
    color: #17304f !important;
}

html[data-theme="dark"] .tl-order-cancel-confirm__panel,
body[data-theme="dark"] .tl-order-cancel-confirm__panel,
body.dark-mode .tl-order-cancel-confirm__panel,
.theme-dark .tl-order-cancel-confirm__panel {
    border-color: rgba(160, 181, 205, .18);
    background: #101d2d;
    color: #f2f6fb;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .48);
}

html[data-theme="dark"] .tl-order-cancel-confirm__content p,
body[data-theme="dark"] .tl-order-cancel-confirm__content p,
body.dark-mode .tl-order-cancel-confirm__content p,
.theme-dark .tl-order-cancel-confirm__content p {
    color: #9fb0c4;
}

html[data-theme="dark"] .tl-order-cancel-confirm__keep,
body[data-theme="dark"] .tl-order-cancel-confirm__keep,
body.dark-mode .tl-order-cancel-confirm__keep,
.theme-dark .tl-order-cancel-confirm__keep {
    border-color: #34465b !important;
    background: #18283a !important;
    color: #e5edf6 !important;
}

@media (max-width: 700px) {
    .tl-order-cancel-confirm {
        align-items: end;
        padding: 12px;
    }

    .tl-order-cancel-confirm__panel {
        width: 100%;
        padding: 18px;
        border-radius: 20px;
    }

    .tl-order-cancel-confirm__actions {
        flex-direction: column-reverse;
    }
}
/* TL_ORDER_CANCEL_INTERNAL_CONFIRM_END */

/* TL_CARD_TO_CARD_RECEIPTS_START */
.tl-payment-receipts-card {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(20,32,51,.10);
    border-radius: 14px;
    background: #fff;
}

.tl-payment-receipts-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.tl-payment-receipts-card__title {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.tl-payment-receipts-card__title strong {
    font-size: 13px;
    line-height: 1.6;
    white-space: nowrap;
}

.tl-payment-receipts-card__title small {
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}

.tl-payment-receipts-card__notice {
    margin-bottom: 8px;
    padding: 7px 9px;
    border-radius: 9px;
    background: #fff1f0;
    color: #b8322a;
    font-size: 10px;
    line-height: 1.7;
}

.tl-payment-receipts-card__gallery {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 0;
}

.tl-payment-receipts-card__tile,
.tl-payment-receipts-card__add-form,
.tl-payment-receipts-card__add {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
}

.tl-payment-receipts-card__tile,
.tl-payment-receipts-card__add {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(20,32,51,.10);
    border-radius: 10px;
    background: #f8fafc;
    color: #60758c;
    text-decoration: none;
}

.tl-payment-receipts-card__tile img,
.tl-payment-receipts-card__preview {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.tl-payment-receipts-card__tile--document svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tl-payment-receipts-card__add-form {
    position: relative;
    margin: 0;
}

.tl-payment-receipts-card__add {
    cursor: pointer;
    border-style: dashed;
}

.tl-payment-receipts-card__input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.tl-payment-receipts-card__plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #1c7ebc;
    font-size: 28px;
    line-height: 1;
    font-weight: 400;
}

.tl-payment-receipts-card__preview {
    position: absolute;
    inset: 0;
}

.tl-payment-receipts-card__confirm {
    position: absolute;
    left: -3px;
    bottom: -3px;
    z-index: 4;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #16794a;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    line-height: 17px;
    cursor: default;
}

html[data-theme="dark"] .tl-payment-receipts-card,
body[data-theme="dark"] .tl-payment-receipts-card,
body.dark-mode .tl-payment-receipts-card,
.theme-dark .tl-payment-receipts-card {
    border-color: rgba(148,163,184,.18);
    background: #101d2d;
}

html[data-theme="dark"] .tl-payment-receipts-card__tile,
html[data-theme="dark"] .tl-payment-receipts-card__add,
body[data-theme="dark"] .tl-payment-receipts-card__tile,
body[data-theme="dark"] .tl-payment-receipts-card__add,
body.dark-mode .tl-payment-receipts-card__tile,
body.dark-mode .tl-payment-receipts-card__add,
.theme-dark .tl-payment-receipts-card__tile,
.theme-dark .tl-payment-receipts-card__add {
    border-color: rgba(148,163,184,.18);
    background: #142438;
    color: #d5e0eb;
}

html[data-theme="dark"] .tl-payment-receipts-card__plus,
body[data-theme="dark"] .tl-payment-receipts-card__plus,
body.dark-mode .tl-payment-receipts-card__plus,
.theme-dark .tl-payment-receipts-card__plus {
    color: #93c5fd;
}

html[data-theme="dark"] .tl-payment-receipts-card__confirm,
body[data-theme="dark"] .tl-payment-receipts-card__confirm,
body.dark-mode .tl-payment-receipts-card__confirm,
.theme-dark .tl-payment-receipts-card__confirm {
    border-color: #101d2d;
}

@media (max-width: 700px) {
    .tl-payment-receipts-card {
        padding: 9px 10px;
        border-radius: 13px;
    }

    .tl-payment-receipts-card__head {
        align-items: flex-start;
        gap: 6px;
    }

    .tl-payment-receipts-card__title {
        display: grid;
        gap: 0;
    }

    .tl-payment-receipts-card__tile,
    .tl-payment-receipts-card__add-form,
    .tl-payment-receipts-card__add {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .tl-payment-receipts-card__tile,
    .tl-payment-receipts-card__add {
        border-radius: 9px;
    }

    .tl-payment-receipts-card__plus {
        font-size: 26px;
    }
}
/* TL_CARD_TO_CARD_RECEIPTS_END */


/* TL_RECEIPT_PREVIEW_HIDDEN_FIX_START */
.tl-payment-receipts-card__preview[hidden],
.tl-payment-receipts-card__document-preview[hidden],
.tl-payment-receipts-card__confirm[hidden],
.tl-payment-receipts-card__plus[hidden] {
    display: none !important;
}

.tl-payment-receipts-card__preview:not([hidden]) {
    display: block !important;
}

.tl-payment-receipts-card__add {
    overflow: hidden;
}

.tl-payment-receipts-card__preview {
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px;
}
/* TL_RECEIPT_PREVIEW_HIDDEN_FIX_END */

/* TL_TRANSFER_RECEIPT_BADGE_COLORS_V2_START */

/* No receipt uploaded yet */
.tl-badge--transfer-awaiting {
    color: #9a6700 !important;
    background: #fff7df !important;
    border-color: #efc45a !important;
}

/* Receipt uploaded and waiting for review */
.tl-badge--transfer-review {
    color: #9f341f !important;
    background: #fff0e9 !important;
    border-color: #f2a084 !important;
}

html[data-theme="dark"] .tl-badge--transfer-awaiting,
body[data-theme="dark"] .tl-badge--transfer-awaiting,
body.dark-mode .tl-badge--transfer-awaiting,
.theme-dark .tl-badge--transfer-awaiting {
    color: #facc15 !important;
    background: rgba(245,158,11,.16) !important;
    border-color: rgba(250,204,21,.38) !important;
}

html[data-theme="dark"] .tl-badge--transfer-review,
body[data-theme="dark"] .tl-badge--transfer-review,
body.dark-mode .tl-badge--transfer-review,
.theme-dark .tl-badge--transfer-review {
    color: #fdba9a !important;
    background: rgba(234,88,12,.17) !important;
    border-color: rgba(251,146,60,.42) !important;
}

/* TL_TRANSFER_RECEIPT_BADGE_COLORS_V2_END */


/* TL_ORDER_CYCLE_NO_RED_START */

/* Waiting for customer receipt: amber */
.tl-badge--transfer-awaiting {
    color: #8a5a00 !important;
    background: #fff7df !important;
    border-color: #efc45a !important;
}

/* Receipt submitted and under review: blue */
.tl-badge--transfer-review {
    color: #155e8a !important;
    background: #eaf6ff !important;
    border-color: #8bc8ef !important;
}

html[data-theme="dark"] .tl-badge--transfer-awaiting,
body[data-theme="dark"] .tl-badge--transfer-awaiting,
body.dark-mode .tl-badge--transfer-awaiting,
.theme-dark .tl-badge--transfer-awaiting {
    color: #facc15 !important;
    background: rgba(245,158,11,.16) !important;
    border-color: rgba(250,204,21,.36) !important;
}

html[data-theme="dark"] .tl-badge--transfer-review,
body[data-theme="dark"] .tl-badge--transfer-review,
body.dark-mode .tl-badge--transfer-review,
.theme-dark .tl-badge--transfer-review {
    color: #8fd3ff !important;
    background: rgba(14,116,144,.20) !important;
    border-color: rgba(56,189,248,.38) !important;
}

/* TL_ORDER_CYCLE_NO_RED_END */


/* TL_ORDER_HEADER_ONE_LINE_START */
body.customer-account-section .customer-account-section-header__identity {
    width: min(72vw, 680px);
}

body.customer-account-section .customer-account-section-header__identity strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

body.customer-account-section .customer-account-section-header__identity small:empty {
    display: none;
}
/* TL_ORDER_HEADER_ONE_LINE_END */


/* TL_SUMMARY_FINAL_INLINE_ROW_START */

/* Final amount should read like the other summary rows, not as a separate card. */
.tl-order-detail-page .tl-summary-card .tl-summary-hero {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;

    margin: 0 !important;
    padding: 12px 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;

    color: var(--text) !important;
}

/* Restore the divider between the last normal calculation and final amount. */
.tl-order-detail-page .tl-summary-list .order-meta-row:last-child {
    border-bottom: 1px solid var(--line) !important;
}

.tl-order-detail-page .tl-summary-card .tl-summary-hero__label {
    color: var(--muted) !important;
    font-size: var(--tl-type-200) !important;
    font-weight: 600 !important;
}

.tl-order-detail-page .tl-summary-card .tl-summary-hero__value {
    color: var(--text) !important;
    font-size: var(--tl-type-300) !important;
    font-weight: 900 !important;
}

/* No status area should create spacing inside the final amount row. */
.tl-order-detail-page .tl-summary-card .tl-summary-hero .tl-order-badges {
    display: none !important;
    margin: 0 !important;
}

html[data-theme="dark"] .tl-order-detail-page .tl-summary-list .order-meta-row:last-child,
body[data-theme="dark"] .tl-order-detail-page .tl-summary-list .order-meta-row:last-child,
body.dark-mode .tl-order-detail-page .tl-summary-list .order-meta-row:last-child,
.theme-dark .tl-order-detail-page .tl-summary-list .order-meta-row:last-child {
    border-bottom-color: rgba(218,228,243,.10) !important;
}

html[data-theme="dark"] .tl-order-detail-page .tl-summary-card .tl-summary-hero,
body[data-theme="dark"] .tl-order-detail-page .tl-summary-card .tl-summary-hero,
body.dark-mode .tl-order-detail-page .tl-summary-card .tl-summary-hero,
.theme-dark .tl-order-detail-page .tl-summary-card .tl-summary-hero {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #f5f8fc !important;
}

html[data-theme="dark"] .tl-order-detail-page .tl-summary-card .tl-summary-hero__label,
body[data-theme="dark"] .tl-order-detail-page .tl-summary-card .tl-summary-hero__label,
body.dark-mode .tl-order-detail-page .tl-summary-card .tl-summary-hero__label,
.theme-dark .tl-order-detail-page .tl-summary-card .tl-summary-hero__label {
    color: #9fb0c4 !important;
}

html[data-theme="dark"] .tl-order-detail-page .tl-summary-card .tl-summary-hero__value,
body[data-theme="dark"] .tl-order-detail-page .tl-summary-card .tl-summary-hero__value,
body.dark-mode .tl-order-detail-page .tl-summary-card .tl-summary-hero__value,
.theme-dark .tl-order-detail-page .tl-summary-card .tl-summary-hero__value {
    color: #f5f8fc !important;
}

/* TL_SUMMARY_FINAL_INLINE_ROW_END */


/* TL_ORDER_HEADER_SPLIT_STATUS_V2_START */
body.customer-account-section .customer-account-section-header__identity--order-detail {
    width: min(70vw, 680px) !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    direction: rtl !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    text-align: initial !important;
}

body.customer-account-section .customer-account-section-header__identity--order-detail > strong {
    width: auto !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
    text-align: right !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body.customer-account-section .customer-account-section-header__identity--order-detail > .customer-account-order-status {
    width: auto !important;
    max-width: 48% !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 5px 10px !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    font-size: var(--tl-type-100) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-shadow: none !important;
}

body.customer-account-section .customer-account-order-status--warning {
    color: #8a5a00 !important;
    background: #fff7df !important;
    border-color: #efc45a !important;
}

body.customer-account-section .customer-account-order-status--info {
    color: #155e8a !important;
    background: #eaf6ff !important;
    border-color: #8bc8ef !important;
}

body.customer-account-section .customer-account-order-status--progress {
    color: #6941c6 !important;
    background: #f3efff !important;
    border-color: #c9b8ff !important;
}

body.customer-account-section .customer-account-order-status--shipping {
    color: #0f6b78 !important;
    background: #e8f8fa !important;
    border-color: #9bd9df !important;
}

body.customer-account-section .customer-account-order-status--success {
    color: #0f6b46 !important;
    background: #e8f8ef !important;
    border-color: #9fd8b8 !important;
}

body.customer-account-section .customer-account-order-status--danger {
    color: #b42318 !important;
    background: #feeceb !important;
    border-color: #f4b4ad !important;
}

body.customer-account-section .customer-account-order-status--neutral {
    color: #475467 !important;
    background: #f2f4f7 !important;
    border-color: #d0d5dd !important;
}

html[data-theme="dark"] body.customer-account-section .customer-account-order-status--warning {
    color: #facc15 !important;
    background: rgba(245,158,11,.16) !important;
    border-color: rgba(250,204,21,.36) !important;
}

html[data-theme="dark"] body.customer-account-section .customer-account-order-status--info {
    color: #8fd3ff !important;
    background: rgba(14,116,144,.20) !important;
    border-color: rgba(56,189,248,.38) !important;
}

html[data-theme="dark"] body.customer-account-section .customer-account-order-status--progress {
    color: #c4b5fd !important;
    background: rgba(124,58,237,.18) !important;
    border-color: rgba(167,139,250,.34) !important;
}

html[data-theme="dark"] body.customer-account-section .customer-account-order-status--shipping {
    color: #8ee7ef !important;
    background: rgba(8,145,178,.18) !important;
    border-color: rgba(103,232,249,.34) !important;
}

html[data-theme="dark"] body.customer-account-section .customer-account-order-status--success {
    color: #86efac !important;
    background: rgba(22,163,74,.16) !important;
    border-color: rgba(134,239,172,.32) !important;
}

html[data-theme="dark"] body.customer-account-section .customer-account-order-status--danger {
    color: #fda4af !important;
    background: rgba(225,29,72,.18) !important;
    border-color: rgba(253,164,175,.32) !important;
}

html[data-theme="dark"] body.customer-account-section .customer-account-order-status--neutral {
    color: #cbd5e1 !important;
    background: rgba(148,163,184,.12) !important;
    border-color: rgba(203,213,225,.22) !important;
}

@media (max-width: 700px) {
    body.customer-account-section .customer-account-section-header__identity--order-detail {
        width: min(70vw, 310px) !important;
        gap: 7px !important;
    }

    body.customer-account-section .customer-account-section-header__identity--order-detail > strong {
        font-size: var(--tl-type-200) !important;
    }

    body.customer-account-section .customer-account-section-header__identity--order-detail > .customer-account-order-status {
        max-width: 49% !important;
        padding: 4px 7px !important;
        font-size: 10px !important;
    }
}
/* TL_ORDER_HEADER_SPLIT_STATUS_V2_END */


/* TL_ORDERS_HEADER_SPACING_THEME_MOBILE_START */

/*
   Keep the order-detail identity completely inside the free middle track.
   This prevents the title from sliding under the right-side account/back control.
*/
body.customer-account-section:has(.tl-order-detail-page) .customer-account-official-header {
    grid-template-columns: max-content minmax(0, 1fr) max-content !important;
    grid-template-areas: "right identity left" !important;
    column-gap: 16px !important;
}

body.customer-account-section:has(.tl-order-detail-page) .customer-account-section-header__identity--order-detail {
    grid-area: identity !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;

    display: flex !important;
    flex-direction: row !important;
    direction: rtl !important;
    align-items: center !important;
    justify-content: space-between !important;

    gap: 18px !important;
    padding-inline: 10px !important;
    margin: 0 !important;
}

body.customer-account-section:has(.tl-order-detail-page) .customer-account-section-header__identity--order-detail > strong {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;

    text-align: right !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body.customer-account-section:has(.tl-order-detail-page) .customer-account-section-header__identity--order-detail > .customer-account-order-status {
    flex: 0 0 auto !important;
    max-width: 44% !important;
    margin: 0 !important;
}

/*
   Orders list and order-detail pages do not need the light/dark toggle on mobile.
   The toggle remains available on the other account pages.
*/
@media (max-width: 700px) {
    body.customer-account-section:has(.orders-page-card) .customer-account-theme-toggle,
    body.customer-account-section:has(.tl-order-detail-page) .customer-account-theme-toggle {
        display: none !important;
    }

    body.customer-account-section:has(.orders-page-card) .customer-account-official-header,
    body.customer-account-section:has(.tl-order-detail-page) .customer-account-official-header {
        grid-template-columns: 42px minmax(0, 1fr) 42px !important;
        grid-template-areas: "right identity left" !important;
        column-gap: 7px !important;
    }

    body.customer-account-section:has(.orders-page-card) .customer-account-official-header__side--left,
    body.customer-account-section:has(.tl-order-detail-page) .customer-account-official-header__side--left {
        min-width: 42px !important;
    }

    body.customer-account-section:has(.tl-order-detail-page) .customer-account-section-header__identity--order-detail {
        width: 100% !important;
        max-width: none !important;
        gap: 7px !important;
        padding-inline: 2px !important;
    }

    body.customer-account-section:has(.tl-order-detail-page) .customer-account-section-header__identity--order-detail > strong {
        font-size: var(--tl-type-200) !important;
    }

    body.customer-account-section:has(.tl-order-detail-page) .customer-account-section-header__identity--order-detail > .customer-account-order-status {
        max-width: 47% !important;
        padding: 4px 7px !important;
        font-size: 10px !important;
    }
}

/* TL_ORDERS_HEADER_SPACING_THEME_MOBILE_END */

/* TL_ORDER_SUMMARY_REQUESTED_ORDER_START */
.tl-order-detail-page .tl-summary-card .tl-summary-list {
    display: flex !important;
    flex-direction: column !important;
}

.tl-order-detail-page .tl-summary-card .tl-summary-list > .order-meta-row {
    order: 50;
}

.tl-order-detail-page .tl-summary-card .tl-summary-list > .tl-summary-row--items {
    order: 1 !important;
}

.tl-order-detail-page .tl-summary-card .tl-summary-list > .tl-summary-row--discount {
    order: 2 !important;
}

.tl-order-detail-page .tl-summary-card .tl-summary-list > .tl-summary-row--packaging {
    order: 3 !important;
}

.tl-order-detail-page .tl-summary-card .tl-summary-list > .tl-summary-row--shipping {
    order: 4 !important;
}

/* Final amount remains below the list and is only slightly stronger. */
.tl-order-detail-page .tl-summary-card .tl-summary-hero__label {
    font-size: calc(var(--tl-type-200, 0.875rem) + 1px) !important;
    font-weight: 700 !important;
}

.tl-order-detail-page .tl-summary-card .tl-summary-hero__value {
    font-size: calc(var(--tl-type-300, 1rem) + 1px) !important;
    font-weight: 900 !important;
}
/* TL_ORDER_SUMMARY_REQUESTED_ORDER_END */

/* TL_PACKAGE_PHOTO_CUSTOMER_START */
.tl-order-detail-page .tl-package-photo-card {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid rgba(75,169,217,.22);
    border-radius: 18px;
    background: rgba(75,169,217,.045);
}
.tl-package-photo-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.tl-package-photo-card__head > div {
    display: grid;
    gap: 3px;
}
.tl-package-photo-card__head strong {
    font-size: var(--tl-type-500);
}
.tl-package-photo-card__head small,
.tl-package-photo-card__head > span,
.tl-package-photo-card__hint {
    color: var(--muted, #64748b);
    font-size: var(--tl-type-100);
}
.tl-package-photo-card__image {
    display: block;
    width: min(100%, 520px);
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid rgba(20,32,51,.08);
    border-radius: 14px;
    background: #fff;
}
.tl-package-photo-card__image img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
}
.tl-package-photo-card__hint {
    text-align: center;
}
html[data-theme="dark"] .tl-package-photo-card,
body[data-theme="dark"] .tl-package-photo-card,
body.dark-mode .tl-package-photo-card,
.theme-dark .tl-package-photo-card {
    border-color: rgba(255,255,255,.10);
    background: rgba(255,255,255,.035);
}
html[data-theme="dark"] .tl-package-photo-card__image,
body[data-theme="dark"] .tl-package-photo-card__image,
body.dark-mode .tl-package-photo-card__image,
.theme-dark .tl-package-photo-card__image {
    border-color: rgba(255,255,255,.08);
    background: rgba(255,255,255,.025);
}
@media (max-width: 700px) {
    .tl-order-detail-page .tl-package-photo-card {
        padding: 12px;
        border-radius: 16px;
    }

    .tl-package-photo-card__image img {
        max-height: 320px;
    }
}
/* TL_PACKAGE_PHOTO_CUSTOMER_END */


/* TL_PACKAGE_PHOTO_PER_SHIPMENT_CUSTOMER_START */
.tl-order-detail-page .tl-group-card .tl-package-photo-card--shipment {
    margin: 12px 0 14px;
    padding: 12px;
}

.tl-order-detail-page .tl-group-card .tl-package-photo-card--shipment .tl-package-photo-card__image {
    width: min(100%, 440px);
}

@media (max-width: 700px) {
    .tl-order-detail-page .tl-group-card .tl-package-photo-card--shipment {
        margin: 10px 0 12px;
        padding: 10px;
    }

    .tl-order-detail-page .tl-group-card .tl-package-photo-card--shipment .tl-package-photo-card__head {
        display: grid;
        gap: 6px;
    }
}
/* Compact shipment thumbnails; the original file opens through the existing link. */
.tl-order-detail-page .tl-group-card .tl-package-photo-card--shipment {
    gap: 8px;
}
.tl-order-detail-page .tl-group-card .tl-package-photo-card__gallery {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}
.tl-order-detail-page .tl-group-card .tl-package-photo-card--shipment .tl-package-photo-card__gallery .tl-package-photo-card__image {
    width: 88px;
    height: 88px;
    margin: 0;
    flex: 0 0 88px;
    border-radius: 10px;
}
.tl-order-detail-page .tl-group-card .tl-package-photo-card--shipment .tl-package-photo-card__gallery .tl-package-photo-card__image img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
}
@media (max-width: 700px) {
    .tl-order-detail-page .tl-group-card .tl-package-photo-card--shipment .tl-package-photo-card__gallery .tl-package-photo-card__image {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
    }
}
.tl-order-detail-page .tl-group-card .tl-package-photo-card--shipment .tl-package-photo-card__head > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
}
.tl-order-detail-page .tl-group-card .tl-package-photo-card--shipment .tl-package-photo-card__head strong {
    font-size: var(--tl-type-200, .875rem);
}
/* TL_PACKAGE_PHOTO_PER_SHIPMENT_CUSTOMER_END */


/* Customer order desktop item columns and invoice actions */
.tl-order-detail-page .tl-order-line__desktop-sku,
.tl-order-detail-page .tl-order-line__desktop-unit,
.tl-order-detail-page .tl-order-line__desktop-quantity,
.tl-order-detail-page .tl-order-line__desktop-variant { display: none; }

@media (min-width: 981px) {
    .tl-order-detail-page .tl-order-line {
        grid-template-columns: 64px minmax(0, 1fr) minmax(72px, 105px) minmax(90px, 125px) 58px minmax(90px, 125px);
        gap: 12px;
    }
    .tl-order-detail-page .tl-order-line__meta { display: none; }
    .tl-order-detail-page .tl-order-line__desktop-sku,
    .tl-order-detail-page .tl-order-line__desktop-unit,
    .tl-order-detail-page .tl-order-line__desktop-quantity {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: var(--muted);
        font-size: var(--tl-type-100);
    }
    .tl-order-detail-page .tl-order-line__desktop-sku { direction: ltr; text-align: right; }
    .tl-order-detail-page .tl-order-line__desktop-variant { display: inline; }
    .tl-order-detail-page .tl-order-line__price { min-width: 0; }
}

.tl-order-detail-page .tl-customer-invoice-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(20,32,51,.08);
    border-radius: 16px;
    background: #f7f9fc;
}
.tl-order-detail-page .tl-customer-invoice-actions > div { display: flex; flex-wrap: wrap; gap: 8px; }


/* Compact product preview in customer orders */
.customer-account-body .orders-page-card .tl-order-number-content {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    white-space: nowrap;
}
.customer-account-body .orders-page-card .tl-order-product-preview {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    direction: rtl;
    flex: 0 0 auto;
}
.customer-account-body .orders-page-card .tl-order-product-preview img,
.customer-account-body .orders-page-card .tl-order-product-preview__more {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    border: 1px solid rgba(20,32,51,.14);
    background: #fff;
    object-fit: cover;
    display: inline-grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
}
@media (max-width: 700px) {
    .customer-account-body .orders-page-card .customer-orders td[data-label="شماره سفارش"] {
        min-height: 31px !important;
        padding-top: 0 !important;
        padding-bottom: 5px !important;
    }
    .customer-account-body .orders-page-card .tl-order-number-content { gap: 7px; }
    .customer-account-body .orders-page-card .tl-order-product-preview { gap: 2px; }
    .customer-account-body .orders-page-card .tl-order-product-preview img,
    .customer-account-body .orders-page-card .tl-order-product-preview__more {
        width: 25px;
        height: 25px;
        border-radius: 6px;
        font-size: 10px;
    }
}


/* Keep order dates on one line and use the freed space for larger previews */
.customer-account-body .orders-page-card .tl-order-product-preview__mobile-more { display: none; }
@media (max-width: 700px) {
    .customer-account-body .orders-page-card .customer-orders td[data-label="تاریخ"],
    .customer-account-body .orders-page-card .customer-orders td[data-label="ساعت"] {
        min-height: 33px !important;
        margin-top: 5px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 4px !important;
        white-space: nowrap;
    }
    .customer-account-body .orders-page-card .tl-order-product-preview__desktop-extra,
    .customer-account-body .orders-page-card .tl-order-product-preview__desktop-more { display: none !important; }
    .customer-account-body .orders-page-card .tl-order-product-preview__mobile-more { display: inline-grid; }
    .customer-account-body .orders-page-card .tl-order-product-preview img,
    .customer-account-body .orders-page-card .tl-order-product-preview__more {
        width: 32px;
        height: 32px;
        border-radius: 7px;
    }
    .customer-account-body .orders-page-card .customer-orders td[data-label="شماره سفارش"] {
        min-height: 36px !important;
    }
}


/* Order number stays next to its label; five previews share the same row */
@media (min-width: 701px) {
    .customer-account-body .orders-page-card .customer-orders td[data-label="شماره سفارش"] {
        white-space: nowrap;
        padding-block: 6px;
    }
    .customer-account-body .orders-page-card .tl-order-product-preview {
        margin-inline-start: 12px;
        vertical-align: middle;
    }
    .customer-account-body .orders-page-card .tl-order-product-preview img,
    .customer-account-body .orders-page-card .tl-order-product-preview__more {
        width: 38px;
        height: 38px;
    }
}
@media (max-width: 700px) {
    .customer-account-body .orders-page-card .customer-orders td[data-label="شماره سفارش"] {
        justify-content: flex-start !important;
        gap: 5px !important;
        white-space: nowrap;
    }
    .customer-account-body .orders-page-card .customer-orders td[data-label="شماره سفارش"]::before { margin: 0 !important; }
    .customer-account-body .orders-page-card .tl-order-number-value { text-align: right !important; }
    .customer-account-body .orders-page-card .tl-order-product-preview {
        margin-inline-start: auto;
        min-width: 0;
        gap: 2px;
    }
    .customer-account-body .orders-page-card .tl-order-product-preview__desktop-extra { display: inline-block !important; }
    .customer-account-body .orders-page-card .tl-order-product-preview img,
    .customer-account-body .orders-page-card .tl-order-product-preview__more {
        width: clamp(24px, 8vw, 32px);
        height: clamp(24px, 8vw, 32px);
        flex: 0 0 auto;
    }
}
@media (max-width: 700px) {
    .customer-account-body .orders-page-card .tl-order-product-preview__desktop-more { display: inline-grid !important; }
}

/* Product previews use the order surface without a tile background */
.customer-account-body .orders-page-card .tl-order-product-preview img {
    border: 0;
    background: transparent;
    border-radius: 0;
    object-fit: contain;
}
.customer-account-body .orders-page-card .tl-order-product-preview__more {
    background: transparent;
}

/* Customer invoice actions in dark order details */
:is(html[data-theme="dark"], body[data-theme="dark"], body.dark-mode, .theme-dark) .tl-order-detail-page .tl-customer-invoice-actions {
    color: #eaf2fb !important;
    border-color: rgba(255,255,255,.12) !important;
    background: rgba(255,255,255,.045) !important;
}
:is(html[data-theme="dark"], body[data-theme="dark"], body.dark-mode, .theme-dark) .tl-order-detail-page .tl-customer-invoice-actions > strong {
    color: #eaf2fb !important;
}
:is(html[data-theme="dark"], body[data-theme="dark"], body.dark-mode, .theme-dark) .tl-order-detail-page .tl-customer-invoice-actions .btn {
    color: #eaf2fb !important;
    border-color: rgba(255,255,255,.16) !important;
    background: #1b2a3c !important;
}
:is(html[data-theme="dark"], body[data-theme="dark"], body.dark-mode, .theme-dark) .tl-order-detail-page .tl-customer-invoice-actions .btn:hover {
    background: #263c56 !important;
}


/* Reorder next to order details */
.customer-account-body .orders-page-card .tl-order-row-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.customer-account-body .orders-page-card .tl-order-row-actions form { margin: 0; }
.customer-account-body .orders-page-card .tl-order-row-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    white-space: nowrap;
    font: inherit;
    cursor: pointer;
}
.customer-account-body .orders-page-card .tl-order-row-actions .tl-order-row-actions__reorder {
    color: #fff !important;
    border-color: #087d96 !important;
    background: #087d96 !important;
}
.customer-account-body .orders-page-card .tl-order-row-actions .tl-order-row-actions__reorder:hover {
    background: #06657b !important;
}
.customer-account-body .orders-page-card .tl-order-row-actions .tl-confirm-delivery-button {
    color: #fff !important;
    border-color: #16834a !important;
    background: #16834a !important;
}
.customer-account-body .orders-page-card .tl-order-row-actions .tl-confirm-delivery-button:hover {
    background: #116b3c !important;
}
@media (max-width: 700px) {
    .customer-account-body .orders-page-card .tl-order-row-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
    .customer-account-body .orders-page-card .tl-order-row-actions form,
    .customer-account-body .orders-page-card .tl-order-row-actions .btn { width: 100% !important; margin: 0 !important; }
}
:is(html[data-theme="dark"], body[data-theme="dark"], body.dark-mode, .theme-dark) .customer-account-body .orders-page-card .tl-order-row-actions .tl-order-row-actions__reorder {
    color: #06212c !important;
    border-color: #67d4e7 !important;
    background: #67d4e7 !important;
}
:is(html[data-theme="dark"], body[data-theme="dark"], body.dark-mode, .theme-dark) .customer-account-body .orders-page-card .tl-order-row-actions .tl-order-row-actions__reorder:hover {
    background: #8be1ef !important;
}
:is(html[data-theme="dark"], body[data-theme="dark"], body.dark-mode, .theme-dark) .customer-account-body .orders-page-card .tl-order-row-actions .tl-confirm-delivery-button {
    color: #fff !important;
    border-color: #16834a !important;
    background: #16834a !important;
}
.tl-cart-reorder-notice {
    padding: 10px 14px;
    margin-bottom: 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.7;
}
.tl-cart-reorder-notice--success { color: #14532d; background: #dcfce7; }
.tl-cart-reorder-notice--error { color: #991b1b; background: #fee2e2; }

/* Place invoice after the ordered summary on desktop and keep mobile compact */
@media (min-width: 981px) {
    .tl-order-detail-page .customer-order-detail > .tl-customer-invoice-actions { order: 3; }
}
@media (max-width: 700px) {
    .tl-order-detail-page .customer-order-detail > .tl-customer-invoice-actions {
        padding: 7px 9px;
        gap: 6px;
        border-radius: 13px;
    }
    .tl-order-detail-page .tl-customer-invoice-actions > strong { font-size: 12px; }
    .tl-order-detail-page .tl-customer-invoice-actions > div { gap: 5px; }
    .tl-order-detail-page .tl-customer-invoice-actions .btn {
        min-height: 34px !important;
        padding: 5px 8px !important;
        border-radius: 9px;
        font-size: 11px;
        line-height: 1.3;
    }
}

/* Customer orders four-way filter */
.customer-account-body .orders-page-card .tl-orders-filter {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
    padding: 5px;
    border: 1px solid rgba(20,32,51,.10);
    border-radius: 14px;
    background: #f3f6fa;
}
.customer-account-body .orders-page-card .tl-orders-filter a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 37px;
    border-radius: 10px;
    color: #465b73;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}
.customer-account-body .orders-page-card .tl-orders-filter a.is-active {
    color: #fff;
    background: #173f69;
}
@media (max-width: 700px) {
    .customer-account-body .orders-page-card .tl-orders-filter {
        gap: 2px;
        padding: 3px;
        margin-bottom: 10px;
        border-radius: 10px;
    }
    .customer-account-body .orders-page-card .tl-orders-filter a {
        min-height: 32px;
        padding: 0 2px;
        font-size: clamp(9px, 2.7vw, 11px);
        letter-spacing: -.15px;
    }
}
:is(html[data-theme="dark"], body[data-theme="dark"], body.dark-mode, .theme-dark) .customer-account-body .orders-page-card .tl-orders-filter {
    border-color: rgba(255,255,255,.12);
    background: #111e2f;
}
:is(html[data-theme="dark"], body[data-theme="dark"], body.dark-mode, .theme-dark) .customer-account-body .orders-page-card .tl-orders-filter a { color: #bdcada; }
:is(html[data-theme="dark"], body[data-theme="dark"], body.dark-mode, .theme-dark) .customer-account-body .orders-page-card .tl-orders-filter a.is-active {
    color: #071d2b;
    background: #77c7e9;
}

/* Distinct order filter colors */
.customer-account-body .orders-page-card .tl-orders-filter a.tl-orders-filter__current {
    color: #075985;
    background: #e0f2fe;
}
.customer-account-body .orders-page-card .tl-orders-filter a.tl-orders-filter__delivered {
    color: #166534;
    background: #dcfce7;
}
.customer-account-body .orders-page-card .tl-orders-filter a.tl-orders-filter__cancelled {
    color: #991b1b;
    background: #fee2e2;
}
.customer-account-body .orders-page-card .tl-orders-filter a.tl-orders-filter__current.is-active {
    color: #fff;
    background: #0369a1;
}
.customer-account-body .orders-page-card .tl-orders-filter a.tl-orders-filter__delivered.is-active {
    color: #fff;
    background: #15803d;
}
.customer-account-body .orders-page-card .tl-orders-filter a.tl-orders-filter__cancelled.is-active {
    color: #fff;
    background: #b91c1c;
}
:is(html[data-theme="dark"], body[data-theme="dark"], body.dark-mode, .theme-dark) .customer-account-body .orders-page-card .tl-orders-filter a.tl-orders-filter__current {
    color: #93dcff;
    background: rgba(2,132,199,.20);
}
:is(html[data-theme="dark"], body[data-theme="dark"], body.dark-mode, .theme-dark) .customer-account-body .orders-page-card .tl-orders-filter a.tl-orders-filter__delivered {
    color: #86efac;
    background: rgba(22,163,74,.19);
}
:is(html[data-theme="dark"], body[data-theme="dark"], body.dark-mode, .theme-dark) .customer-account-body .orders-page-card .tl-orders-filter a.tl-orders-filter__cancelled {
    color: #fca5a5;
    background: rgba(220,38,38,.18);
}
:is(html[data-theme="dark"], body[data-theme="dark"], body.dark-mode, .theme-dark) .customer-account-body .orders-page-card .tl-orders-filter a.tl-orders-filter__current.is-active {
    color: #fff;
    background: #0369a1;
}
:is(html[data-theme="dark"], body[data-theme="dark"], body.dark-mode, .theme-dark) .customer-account-body .orders-page-card .tl-orders-filter a.tl-orders-filter__delivered.is-active {
    color: #fff;
    background: #15803d;
}
:is(html[data-theme="dark"], body[data-theme="dark"], body.dark-mode, .theme-dark) .customer-account-body .orders-page-card .tl-orders-filter a.tl-orders-filter__cancelled.is-active {
    color: #fff;
    background: #b91c1c;
}

/* Keep the reorder button teal over the mobile order-card button rule */
.customer-account-body .orders-page-card .customer-orders td:last-child .tl-order-row-actions .btn.tl-order-row-actions__reorder {
    color: #fff !important;
    border-color: #087d96 !important;
    background: #087d96 !important;
    box-shadow: none !important;
}
.customer-account-body .orders-page-card .customer-orders td:last-child .tl-order-row-actions .btn.tl-order-row-actions__reorder:hover {
    color: #fff !important;
    background: #06657b !important;
}
:is(html[data-theme="dark"], body[data-theme="dark"], body.dark-mode, .theme-dark) .customer-account-body .orders-page-card .customer-orders td:last-child .tl-order-row-actions .btn.tl-order-row-actions__reorder {
    color: #06212c !important;
    border-color: #67d4e7 !important;
    background: #67d4e7 !important;
}
:is(html[data-theme="dark"], body[data-theme="dark"], body.dark-mode, .theme-dark) .customer-account-body .orders-page-card .customer-orders td:last-child .tl-order-row-actions .btn.tl-order-row-actions__reorder:hover {
    background: #8be1ef !important;
}

/* The order layout is a grid, not a card behind summary and invoice */
.tl-order-detail-page .customer-order-detail,
html[data-theme="dark"] .tl-order-detail-page .customer-order-detail {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

/* Shipment cards provide their own surface; remove the redundant item shell */
.tl-order-detail-page .order-items-card.tl-detail-card--group-shell,
html[data-theme="dark"] .tl-order-detail-page .order-items-card.tl-detail-card--group-shell {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}
.tl-order-detail-page .order-items-card.tl-detail-card--group-shell > .tl-group-card {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* Compact optional customer profile details */
.tl-profile-edit .tl-profile-avatar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 13px;
}
.tl-profile-edit .tl-profile-avatar-row img {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(20,32,51,.12);
}
.tl-profile-edit .tl-profile-avatar-choice {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 10px;
}
.tl-profile-edit .tl-profile-avatar-choice .btn { min-height: 34px; }
.tl-profile-edit .tl-profile-avatar-choice small { color: var(--muted); font-size: 11px; }
.tl-profile-edit .tl-profile-photo-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}
@media (max-width: 700px) {
    .account-page:has(.tl-profile-edit) { padding-top: 8px; }
    .account-page:has(.tl-profile-edit) .account-heading { margin-bottom: 8px; }
    .account-page:has(.tl-profile-edit) .account-heading p { display: none; }
    .tl-profile-edit { width: 100%; max-width: none; padding: 11px 12px; }
    .tl-profile-edit .customer-address-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 8px; }
    .tl-profile-edit .customer-address-grid .span-2 { grid-column: 1 / -1; }
    .tl-profile-edit .auth-field { min-width: 0; gap: 3px; margin-bottom: 0; }
    .tl-profile-edit .auth-field label { font-size: 11px; }
    .tl-profile-edit .auth-field input { min-height: 34px; padding: 5px 8px; font-size: 12px; }
    .tl-profile-edit .tl-profile-avatar-row { margin-bottom: 8px; gap: 8px; }
    .tl-profile-edit .tl-profile-avatar-row img { width: 44px; height: 44px; }
    .tl-profile-edit .tl-profile-avatar-choice .btn { min-height: 30px; padding: 5px 8px; font-size: 11px; }
    .tl-profile-edit .tl-profile-avatar-choice small { font-size: 9px; }
    .tl-profile-edit .profile-phone-box { padding: 6px 8px; gap: 5px; flex-wrap: nowrap; min-height: 36px; }
    .tl-profile-edit .profile-phone-box strong { font-size: 12px; }
    .tl-profile-edit .profile-phone-box span { font-size: 10px; }
    .tl-profile-edit .profile-phone-box .btn { min-height: 30px; padding: 5px 7px; font-size: 10px; white-space: nowrap; }
    .tl-profile-edit .profile-security-actions { margin-top: 8px; }
    .tl-profile-edit .profile-security-actions .btn { min-height: 37px; }
}
.customer-account-body .orders-page-card .tl-order-row-actions .btn.tl-order-row-actions__track{color:#fff!important;background:#1655b5!important;border-color:#154b9e!important}
.customer-account-body .orders-page-card .tl-order-row-actions .btn.tl-order-row-actions__track:hover{background:#104492!important;color:#fff!important}
@media(max-width:700px){.customer-account-body .orders-page-card .tl-order-row-actions:has(.tl-order-row-actions__track){grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}.customer-account-body .orders-page-card .tl-order-row-actions .btn.tl-order-row-actions__track{grid-column:auto!important}.customer-account-body .orders-page-card .tl-order-row-actions:has(.tl-order-row-actions__track) .btn{min-width:0!important;padding:7px 4px!important;font-size:11px!important;white-space:nowrap!important}}
.customer-account-body .orders-page-card .customer-orders td:last-child .tl-order-row-actions .btn.tl-order-row-actions__track,
:is(html[data-theme="dark"],body[data-theme="dark"],body.dark-mode,.theme-dark) .customer-account-body .orders-page-card .customer-orders td:last-child .tl-order-row-actions .btn.tl-order-row-actions__track{color:#172033!important;border-color:#f97316!important;background:#f97316!important;box-shadow:none!important}
.customer-account-body .orders-page-card .customer-orders td:last-child .tl-order-row-actions .btn.tl-order-row-actions__track:hover,
:is(html[data-theme="dark"],body[data-theme="dark"],body.dark-mode,.theme-dark) .customer-account-body .orders-page-card .customer-orders td:last-child .tl-order-row-actions .btn.tl-order-row-actions__track:hover{color:#172033!important;background:#fb923c!important;border-color:#fb923c!important}

/* TL_CONFIRM_DELIVERY_MOBILE_V2 */
.customer-account-body .orders-page-card .customer-orders td:last-child .tl-order-row-actions .btn.tl-confirm-delivery-button {
    color: #fff !important;
    background: #11643e !important;
    border: 1px solid #0c5031 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-weight: 800 !important;
    text-align: center !important;
}
.customer-account-body .orders-page-card .customer-orders td:last-child .tl-order-row-actions .btn.tl-confirm-delivery-button:hover {
    color: #fff !important;
    background: #0b5332 !important;
    border-color: #09452b !important;
}
:is(html[data-theme="dark"], body[data-theme="dark"], body.dark-mode, .theme-dark) .customer-account-body .orders-page-card .customer-orders td:last-child .tl-order-row-actions .btn.tl-confirm-delivery-button {
    color: #073022 !important;
    background: #86efac !important;
    border-color: #86efac !important;
    box-shadow: none !important;
}
:is(html[data-theme="dark"], body[data-theme="dark"], body.dark-mode, .theme-dark) .customer-account-body .orders-page-card .customer-orders td:last-child .tl-order-row-actions .btn.tl-confirm-delivery-button:hover {
    color: #06271b !important;
    background: #a7f3c5 !important;
    border-color: #a7f3c5 !important;
}
.customer-account-body .orders-page-card .customer-orders td:last-child .tl-order-row-actions .btn.tl-confirm-delivery-button:focus-visible {
    outline: 3px solid #f59e0b !important;
    outline-offset: 3px !important;
}
@media (max-width: 700px) {
    .customer-account-body .orders-page-card .customer-orders td:last-child .tl-order-row-actions .tl-confirm-delivery-form {
        order: 99 !important;
        grid-column: 1 / -1 !important;
        display: block !important;
        width: 100% !important;
        margin: 8px 0 0 !important;
        min-width: 0 !important;
    }
    .customer-account-body .orders-page-card .customer-orders td:last-child .tl-order-row-actions .tl-confirm-delivery-form .btn.tl-confirm-delivery-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 48px !important;
        padding: 11px 16px !important;
        margin: 0 !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
        white-space: normal !important;
    }
}


/* TL_WALLET_UI_V2_START */
.tl-wallet-ui-v2 .wallet-message {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: var(--tl-type-100);
    line-height: 1.8;
}

.tl-wallet-ui-v2 .wallet-message--success {
    background: rgba(22, 121, 79, .10);
    color: #12643f;
    border: 1px solid rgba(22, 121, 79, .18);
}

.tl-wallet-ui-v2 .wallet-message--info {
    background: rgba(12, 102, 228, .08);
    color: #175cd3;
    border: 1px solid rgba(12, 102, 228, .16);
}

.tl-wallet-ui-v2 .wallet-message--error {
    background: rgba(180, 35, 24, .08);
    color: #b42318;
    border: 1px solid rgba(180, 35, 24, .16);
}

.tl-wallet-ui-v2 .wallet-balance-card {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 8px;
    padding: 20px 16px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: #fff;
}

.tl-wallet-ui-v2 .wallet-balance-card--asset {
    background:
        linear-gradient(135deg, rgba(22,121,79,.08), rgba(22,121,79,.02)),
        #fff;
    border-color: rgba(22,121,79,.16);
}

.tl-wallet-ui-v2 .wallet-balance-card--debt {
    background:
        linear-gradient(135deg, rgba(180,35,24,.08), rgba(180,35,24,.02)),
        #fff;
    border-color: rgba(180,35,24,.16);
}

.tl-wallet-ui-v2 .wallet-balance-title {
    font-size: var(--tl-type-200);
    font-weight: 900;
    line-height: 1.6;
}

.tl-wallet-ui-v2 .wallet-balance-amount {
    font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.7rem);
    font-weight: 950;
    line-height: 1.25;
    direction: ltr;
}

.tl-wallet-ui-v2 .wallet-balance-amount--asset,
.tl-wallet-ui-v2 .wallet-balance-card--asset .wallet-balance-title {
    color: #16794f;
}

.tl-wallet-ui-v2 .wallet-balance-amount--debt,
.tl-wallet-ui-v2 .wallet-balance-card--debt .wallet-balance-title {
    color: #b42318;
}

.tl-wallet-ui-v2 .wallet-topup-card,
.tl-wallet-ui-v2 .wallet-history-card {
    padding: 14px;
}

.tl-wallet-ui-v2 .wallet-topup-form {
    margin-top: 8px;
}

.tl-wallet-ui-v2 .wallet-topup-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.tl-wallet-ui-v2 .wallet-topup-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-0, #fff);
}

.tl-wallet-ui-v2 .wallet-topup-input-row input {
    border: 0;
    outline: none;
    background: transparent;
    width: 100%;
    min-width: 0;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    appearance: none;
    -webkit-appearance: none;
}

.tl-wallet-ui-v2 .wallet-topup-input-row input:focus {
    font-size: 16px;
}

.tl-wallet-ui-v2 .wallet-topup-input-row input::placeholder {
    color: var(--muted);
}

.tl-wallet-ui-v2 .wallet-topup-currency {
    color: var(--muted);
    font-size: var(--tl-type-100);
    font-weight: 800;
    white-space: nowrap;
}

.tl-wallet-ui-v2 .wallet-topup-submit {
    min-height: 52px;
    padding-inline: 18px;
    white-space: nowrap;
}

.tl-wallet-ui-v2 .wallet-transaction-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
}

.tl-wallet-ui-v2 .wallet-transaction-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    min-height: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(16,24,40,.03);
}

.tl-wallet-ui-v2 .wallet-transaction-card--credit {
    border-color: rgba(22,121,79,.22);
    background:
        linear-gradient(135deg, rgba(22,121,79,.075), rgba(22,121,79,.015)),
        #fff;
}

.tl-wallet-ui-v2 .wallet-transaction-card--debit {
    border-color: rgba(180,35,24,.22);
    background:
        linear-gradient(135deg, rgba(180,35,24,.07), rgba(180,35,24,.015)),
        #fff;
}

.tl-wallet-ui-v2 .wallet-transaction-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.tl-wallet-ui-v2 .wallet-transaction-row--secondary {
    align-items: flex-start;
}

.tl-wallet-ui-v2 .wallet-transaction-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.tl-wallet-ui-v2 .wallet-transaction-title > strong {
    font-size: var(--tl-type-300);
    line-height: 1.45;
}

.tl-wallet-ui-v2 .wallet-transaction-kind {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: var(--tl-type-100);
    font-weight: 900;
    flex: 0 0 auto;
}

.tl-wallet-ui-v2 .wallet-transaction-kind--credit {
    color: #12643f;
    background: rgba(22,121,79,.12);
}

.tl-wallet-ui-v2 .wallet-transaction-kind--debit {
    color: #9a2118;
    background: rgba(180,35,24,.12);
}

.tl-wallet-ui-v2 .wallet-transaction-amount {
    flex: 0 0 auto;
    font-size: var(--tl-type-300);
    font-weight: 950;
    line-height: 1.35;
    white-space: nowrap;
}

.tl-wallet-ui-v2 .wallet-credit {
    color: #16794f;
}

.tl-wallet-ui-v2 .wallet-debit {
    color: #b42318;
}

.tl-wallet-ui-v2 .wallet-transaction-details {
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.tl-wallet-ui-v2 .wallet-transaction-description,
.tl-wallet-ui-v2 .wallet-transaction-details small,
.tl-wallet-ui-v2 .wallet-transaction-meta span {
    color: var(--muted);
    font-size: var(--tl-type-100);
    line-height: 1.5;
}

.tl-wallet-ui-v2 .wallet-transaction-description {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tl-wallet-ui-v2 .wallet-transaction-subrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 18px;
}

.tl-wallet-ui-v2 .wallet-transaction-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px 9px;
    flex: 0 0 auto;
    max-width: 48%;
    text-align: left;
}

.tl-wallet-ui-v2 .wallet-transaction-meta a {
    color: var(--accent-strong);
    text-decoration: none;
    font-size: var(--tl-type-100);
    font-weight: 850;
    line-height: 1.45;
    white-space: nowrap;
}

.tl-wallet-ui-v2 .wallet-transaction-reason {
    position: relative;
    margin: 0;
    padding: 0;
}

.tl-wallet-ui-v2 .wallet-transaction-reason summary {
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-strong);
    font-size: var(--tl-type-100);
    font-weight: 850;
    line-height: 1.45;
}

.tl-wallet-ui-v2 .wallet-transaction-reason summary::-webkit-details-marker {
    display: none;
}

.tl-wallet-ui-v2 .wallet-transaction-reason > div {
    margin-top: 5px;
    padding: 7px 9px;
    border-radius: 9px;
    background: rgba(255,255,255,.58);
    color: var(--muted);
    font-size: var(--tl-type-100);
    line-height: 1.7;
    white-space: normal;
}

html[data-theme="dark"] .tl-wallet-ui-v2 .wallet-topup-input-row,
html[data-theme="dark"] .tl-wallet-ui-v2 .wallet-transaction-card,
html[data-theme="dark"] .tl-wallet-ui-v2 .wallet-balance-card {
    box-shadow: none;
    background: rgba(255,255,255,.04);
}

html[data-theme="dark"] .tl-wallet-ui-v2 .wallet-balance-card--asset {
    border-color: rgba(67,191,132,.28);
    background:
        linear-gradient(135deg, rgba(22,121,79,.18), rgba(22,121,79,.045)),
        rgba(255,255,255,.035);
}

html[data-theme="dark"] .tl-wallet-ui-v2 .wallet-balance-card--debt {
    border-color: rgba(231,92,79,.28);
    background:
        linear-gradient(135deg, rgba(180,35,24,.18), rgba(180,35,24,.045)),
        rgba(255,255,255,.035);
}

html[data-theme="dark"] .tl-wallet-ui-v2 .wallet-transaction-card--credit {
    border-color: rgba(67,191,132,.28);
    background:
        linear-gradient(135deg, rgba(22,121,79,.18), rgba(22,121,79,.045)),
        rgba(255,255,255,.035);
}

html[data-theme="dark"] .tl-wallet-ui-v2 .wallet-transaction-card--debit {
    border-color: rgba(231,92,79,.28);
    background:
        linear-gradient(135deg, rgba(180,35,24,.18), rgba(180,35,24,.045)),
        rgba(255,255,255,.035);
}

html[data-theme="dark"] .tl-wallet-ui-v2 .wallet-transaction-kind--credit {
    color: #7ad7a9;
}

html[data-theme="dark"] .tl-wallet-ui-v2 .wallet-transaction-kind--debit {
    color: #ff9a90;
}

html[data-theme="dark"] .tl-wallet-ui-v2 .wallet-transaction-reason > div {
    background: rgba(255,255,255,.06);
}

@media (max-width: 700px) {
    .tl-wallet-ui-v2 .wallet-topup-card,
    .tl-wallet-ui-v2 .wallet-history-card {
        padding: 12px;
    }

    .tl-wallet-ui-v2 .wallet-balance-card {
        padding: 16px 14px;
        gap: 6px;
    }

    .tl-wallet-ui-v2 .wallet-balance-title {
        font-size: var(--tl-type-100);
    }

    .tl-wallet-ui-v2 .wallet-balance-amount {
        font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.2rem);
    }

    .tl-wallet-ui-v2 .wallet-topup-inline {
        grid-template-columns: 1fr;
        gap: 10px;
        align-items: stretch;
    }

    .tl-wallet-ui-v2 .wallet-topup-submit {
        width: 100%;
    }

    .tl-wallet-ui-v2 .wallet-transaction-list {
        gap: 7px;
        margin-top: 8px;
    }

    .tl-wallet-ui-v2 .wallet-transaction-card {
        gap: 4px;
        padding: 8px 10px;
        border-radius: 13px;
    }

    .tl-wallet-ui-v2 .wallet-transaction-row {
        gap: 8px;
    }

    .tl-wallet-ui-v2 .wallet-transaction-title {
        gap: 5px;
    }

    .tl-wallet-ui-v2 .wallet-transaction-title > strong,
    .tl-wallet-ui-v2 .wallet-transaction-amount {
        font-size: var(--tl-type-200);
    }

    .tl-wallet-ui-v2 .wallet-transaction-kind {
        min-height: 20px;
        padding: 0 7px;
    }

    .tl-wallet-ui-v2 .wallet-transaction-details {
        gap: 1px;
    }

    .tl-wallet-ui-v2 .wallet-transaction-meta {
        max-width: 50%;
        gap: 3px 7px;
    }

    .tl-wallet-ui-v2 .wallet-transaction-subrow {
        gap: 5px;
        min-height: 16px;
    }

    .tl-wallet-ui-v2 .wallet-transaction-reason > div {
        min-width: min(250px, 74vw);
    }
}
/* TL_WALLET_UI_V2_END */
