/**
 * Buyer Account Module CSS
 * Authentic 1688 B2B Buyer Console Architecture & Design Parity
 */

.account-page-wrapper {
    background-color: #f4f5f7;
    min-height: calc(100dvh - 120px);
    padding: 20px 0 60px;
}

.account-container {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* =====================================================================
   SIDEBAR (1688 B2B Console Signature)
   ===================================================================== */
.account-sidebar-backdrop,
.account-sidebar-toggle,
.account-sidebar-close {
    display: none;
}

.account-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e6e8eb;
    border-radius: 4px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
}

@media (min-width: 901px) {
    .account-sidebar {
        position: sticky;
        top: 88px;
        max-height: calc(100dvh - 104px);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .account-user-card,
    .account-sidebar-footer {
        flex-shrink: 0;
    }

    .account-sidebar-nav {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .account-nav-list {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
    }

    .account-nav-list::-webkit-scrollbar {
        width: 4px;
    }

    .account-nav-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .account-nav-list::-webkit-scrollbar-thumb {
        background: transparent;
        border-radius: 999px;
    }

    .account-sidebar:hover .account-nav-list::-webkit-scrollbar-thumb,
    .account-nav-list:hover::-webkit-scrollbar-thumb {
        background: #cbd5e1;
    }

    .account-nav-list::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
}

.account-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #f0f2f5;
    background: #fafbfc;
}

.account-avatar {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    background: #ff5b00;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    flex-shrink: 0;
    overflow: hidden;
}

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

.account-user-meta {
    flex: 1;
    min-width: 0;
}

.account-user-name {
    font-size: 13px;
    font-weight: 400;
    color: #1d1d1f;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-user-phone {
    font-size: 12px;
    color: #888888;
    font-family: var(--font-accent);
}

.account-badge-b2b {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 400;
    color: #e85300;
    background: #fff5ef;
    border: 1px solid #ffd1b8;
    padding: 1px 6px;
    border-radius: 2px;
}

.account-nav-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.account-nav-group-label {
    margin: 4px 14px 2px;
    padding: 7px 4px 2px;
    border-top: 1px solid #f0f2f5;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9ca3af;
    line-height: 1.3;
    user-select: none;
}

.account-nav-item {
    margin: 0;
}

.account-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8.5px 18px;
    font-size: 13px;
    font-weight: 400;
    color: #4b5563;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.account-nav-link:hover {
    background-color: #f9fafb;
    color: #e85300;
}

.account-nav-link.active {
    background-color: rgba(255, 91, 0, 0.07);
    color: #e85300;
    font-weight: 500;
    border-left-color: #ff5b00;
}

.account-nav-label-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-nav-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-nav-badge {
    background: var(--brand-orange, #ff5000);
    color: #ffffff;
    font-family: var(--font-accent, 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 11px;
    font-weight: 400;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    border: 1.5px solid #ffffff;
    box-shadow: 0 1px 3px rgba(255, 80, 0, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    letter-spacing: -0.2px;
    box-sizing: border-box;
}

.account-sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid #f0f2f5;
}

.account-logout-btn {
    width: 100%;
    padding: 8px;
    border: 1px solid #e6e8eb;
    background: #ffffff;
    border-radius: 4px;
    color: #666666;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.account-logout-btn:hover {
    border-color: #ffa39e;
    color: #ff4d4f;
    background: #fff1f0;
}

/* =====================================================================
   MAIN CONTENT AREA (Cards, Headers, Metrics)
   ===================================================================== */
.account-main-content {
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
}

.account-card {
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #e6e8eb;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
    max-width: 100%;
    box-sizing: border-box;
}

.account-welcome-banner {
    background: #ffffff;
    border: 1px solid #e6e8eb;
    border-left: 3px solid #ff5b00;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.account-welcome-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    color: #1d1d1f;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-welcome-desc {
    margin: 0;
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
}

.account-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid #f0f2f5;
}

.account-card-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    color: #1d1d1f;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =====================================================================
   ACCOUNT FILTER PILLS / CHIPS TABS (Auto-Wrap, Zero Scrollbar)
   ===================================================================== */
.account-orders-filter-card,
.account-tx-header-card {
    padding: 16px 20px;
}

.account-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #f0f2f5;
    overflow: visible;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.account-tabs-nav::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.account-tabs-nav.account-delivery-zone-tabs {
    padding-top: 0;
    border-top: none;
}

.account-tab-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 13px;
    font-family: var(--font-sans, 'DM Sans', sans-serif);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    color: #4b5563;
    background: #f4f6f8;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.account-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #4b5563;
    font-size: 11px;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    line-height: 1.45;
}

.account-tab-pill:hover {
    color: #ff5000;
    background: #fff8f5;
    border-color: #ffd8bf;
    text-decoration: none;
}

.account-tab-pill:hover .account-tab-count {
    background: #ffe4d5;
    color: #e04400;
}

.account-tab-pill.is-active {
    color: #ff5000;
    background: #fff3ed;
    border-color: #ff5000;
    font-weight: 400;
    box-shadow: 0 1px 2px rgba(255, 80, 0, 0.08);
}

.account-tab-pill.is-active .account-tab-count {
    background: rgba(255, 80, 0, 0.14);
    color: #ff5000;
}

.account-tabs-more-wrap,
.account-tabs-more-menu {
    display: contents;
}

@media (min-width: 769px) {
    .account-tabs-nav.has-mobile-popover .account-tab-pill {
        order: var(--tab-orig-order, 0);
    }
}

.account-tabs-more-btn {
    display: none;
}

/* Metrics Grid (2x2 Layout) */
.account-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.account-delivery-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 100%;
}

.account-delivery-form-grid > * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.account-delivery-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.account-delivery-two-col > * {
    min-width: 0;
    max-width: 100%;
}

.account-delivery-control {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
    background-color: #ffffff;
    color: #111827;
    text-overflow: ellipsis;
}

.account-delivery-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    box-sizing: border-box;
}

.account-delivery-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.account-delivery-settle-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    background: #ffffff;
    border: 1px solid #fed7aa;
    border-radius: 4px;
    padding: 14px;
    box-sizing: border-box;
}

.account-delivery-settle-grid > * {
    min-width: 0;
    max-width: 100%;
}

.account-delivery-settle-qr {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    border-left: 1px solid #f1f5f9;
    padding-left: 14px;
    min-width: 0;
}

.account-metric-card {
    background: #ffffff;
    border: 1px solid #e6e8eb;
    border-radius: 4px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: border-color 0.15s ease, transform 0.15s ease;
    min-width: 0;
}

.account-metric-card:hover {
    border-color: #ff5b00;
    transform: translateY(-1px);
}

.metric-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f4f5f7;
    color: #ff5b00;
}

.metric-val {
    font-family: var(--font-price);
    font-size: 20px;
    font-weight: 400;
    color: #1d1d1f;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
}

.metric-label {
    font-size: 12.5px;
    color: #4b5563;
    margin-top: 2px;
    font-family: var(--font-accent);
}

.metric-sub {
    font-size: 11.5px;
    color: #6b7280;
    margin-top: 3px;
    line-height: 1.35;
}

/* Buttons */
.btn-1688-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    background: #ff5b00;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
}

.btn-1688-primary:hover {
    background: #e65200;
    color: #ffffff !important;
}

/* Order Item Row */
.account-order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #eaedf1;
    border-radius: 4px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.account-order-row:hover {
    border-color: #ff5b00;
    background-color: #fffcf8;
}

/* =====================================================================
   /account/orders — Shop-Split Order Cards & Clean Micro-UX
   ===================================================================== */
.account-orders-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.account-order-card {
    padding: 0;
    overflow: hidden;
    margin-bottom: 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.account-order-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 6px rgba(17, 24, 39, 0.04);
}

.account-order-card[data-detail-url] {
    cursor: pointer;
}

.account-order-card[data-detail-url]:hover {
    border-color: #fdba74;
    box-shadow: 0 4px 12px rgba(255, 80, 0, 0.06), 0 1px 3px rgba(17, 24, 39, 0.04);
}

.account-order-card-head {
    padding: 12px 18px;
    background: #fafbfc;
    border-bottom: 1px solid #eaedf1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-order-head-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
}

.account-order-shop-summary {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    flex: 1 1 0%;
    flex-wrap: nowrap;
    overflow: hidden;
}

.account-order-store-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    flex-shrink: 0;
}

.account-order-batch-checkbox {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: #ff5000;
    flex-shrink: 0;
}

.account-order-plat-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    border-radius: 3px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    flex-shrink: 0;
}

.account-order-plat-pill.is-compact {
    font-size: 10.5px;
    padding: 1px 6px;
}

.account-order-plat-pill.is-xs {
    font-size: 10px;
    padding: 1px 5px;
    margin-right: 4px;
    vertical-align: middle;
}

.account-order-plat-pill.is-1688 {
    background: #ff5b00;
}

.account-order-plat-pill.is-taobao {
    background: #ff5000;
}

.account-order-plat-pill.is-tmall {
    background: #e11d48;
}

.account-order-shop-name {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    max-width: 100%;
    min-width: 0;
}

.account-order-shop-name > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-order-shop-name.is-link {
    text-decoration: none;
    transition: color 0.15s ease;
}

.account-order-shop-name.is-link:hover {
    color: #ff5000;
}

.account-order-shop-ext {
    color: #9ca3af;
    flex-shrink: 0;
    transition: transform 0.15s ease, color 0.15s ease;
}

.account-order-shop-name.is-link:hover .account-order-shop-ext {
    color: #ff5000;
    transform: translateX(1px);
}

.account-order-shop-name.is-muted {
    color: #4b5563;
    font-weight: 500;
}

.account-order-multishop-tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    font-size: 11px;
    font-weight: 500;
}

.account-order-status-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.account-order-cancel-pill {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 3px;
    font-weight: 600;
}

.account-order-cancel-pill.is-pending {
    background: #fff1f0;
    color: #cf1322;
    border: 1px solid #ffa39e;
}

.account-order-cancel-pill.is-rejected {
    background: #fff2f0;
    color: #a8071a;
    border: 1px solid #ffccc7;
}

.account-order-status-pill {
    font-size: 12px;
    padding: 2px 9px;
    border-radius: 4px;
    background: var(--app-st-bg, #f3f4f6);
    color: var(--app-st-fg, #374151);
    font-weight: 400;
    border: 1px solid var(--app-st-border, #e5e7eb);
    white-space: nowrap;
}

.account-order-head-sub {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12.5px;
    color: #6b7280;
}

.account-order-code-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.account-order-copy-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 1px 6px;
    margin: -1px 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    color: inherit;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.account-order-copy-btn:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.account-order-code {
    color: #111827;
    font-family: monospace;
    font-size: 13px;
    font-weight: 600;
}

.account-order-copy-icon {
    color: #9ca3af;
    flex-shrink: 0;
}

.account-order-copied-icon {
    display: none;
    color: #059669;
    flex-shrink: 0;
}

.account-order-copy-btn:hover .account-order-copy-icon {
    color: #ff5000;
}

.account-order-copy-feedback {
    position: absolute;
    bottom: calc(100% + 5px);
    right: 0;
    padding: 2px 7px;
    border-radius: 4px;
    background: #111827;
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 5;
}

.account-order-copy-btn.is-copied {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.account-order-copy-btn.is-copied .account-order-copy-icon {
    display: none;
}

.account-order-copy-btn.is-copied .account-order-copied-icon {
    display: block;
}

.account-order-copy-btn.is-copied .account-order-copy-feedback {
    opacity: 1;
    transform: translateY(0);
}

.account-order-weight-chip {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 3px;
    background: #f3f4f6;
    color: #374151;
    font-size: 11.5px;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

.account-order-tracking-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    font-weight: 400;
    color: #4b5563;
}

.account-order-tracking-label {
    color: #6b7280;
    font-weight: 400;
}

.account-order-tracking-chip {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    border: 1px solid #dbeafe;
    border-radius: 4px;
    background: #f8fbff;
    max-width: 100%;
    min-width: 0;
}

.account-order-tracking-link,
.account-order-tracking-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
}

.account-order-tracking-link:hover {
    color: #ff5000;
    text-decoration: underline;
}

.account-order-tracking-carrier {
    padding: 0 4px;
    border-radius: 3px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
}

.account-order-tracking-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11.5px;
    font-weight: 400;
    word-break: break-all;
}

.account-order-tracking-ext {
    flex-shrink: 0;
    opacity: 0.78;
}

.account-order-tracking-more {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #4b5563;
    font-size: 11.5px;
    font-weight: 400;
    text-decoration: none;
}

.account-order-tracking-more:hover {
    border-color: #ffd1b8;
    color: #ff5000;
    background: #fff5ef;
}

.account-order-item-row.is-overflow-hidden {
    display: none;
}

.account-order-card.is-items-expanded .account-order-item-row.is-overflow-hidden {
    display: flex;
}

.account-order-show-more-btn {
    align-self: flex-start;
    padding: 4px 10px;
    border: 1px dashed #d1d5db;
    border-radius: 4px;
    background: #f9fafb;
    color: #4b5563;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.account-order-show-more-btn:hover {
    border-color: #ff5000;
    color: #ff5000;
    background: #fff8f4;
}

.account-order-meta-sep {
    color: #d1d5db;
}

.account-order-card-items {
    padding: 14px 18px;
    border-bottom: 1px solid #eaedf1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-order-shop-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-order-shop-group.has-subhead {
    padding-top: 10px;
    border-top: 1px dashed #e5e7eb;
}

.account-order-shop-group.has-subhead:first-child {
    padding-top: 0;
    border-top: none;
}

.account-order-shop-subhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 10px;
    background: #f9fafb;
    border: 1px solid #edf0f3;
    border-radius: 4px;
    font-size: 12px;
}

.account-order-shop-subhead-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.account-order-shop-subname {
    font-weight: 600;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-order-shop-subname.is-link {
    text-decoration: none;
}

.account-order-shop-subname.is-link:hover {
    color: #ff5000;
}

.account-order-shop-subhead-right {
    color: #6b7280;
    font-size: 11.5px;
    flex-shrink: 0;
    font-family: var(--font-price);
}

.account-order-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-order-item-thumb-link {
    display: inline-flex;
    flex-shrink: 0;
    border-radius: 4px;
}

.account-order-item-thumb {
    width: 90px;
    height: 90px;
    min-width: 90px;
    min-height: 90px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eaedf1;
    flex-shrink: 0;
    background: #f9fafb;
}

.account-order-item-info {
    flex: 1;
    min-width: 0;
}

.account-order-item-title {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.account-order-item-link:hover {
    color: #ff5000;
}

.account-order-item-meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 3px;
}

.account-order-item-sku {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-order-item-pricing {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-shrink: 0;
    text-align: right;
}

.account-order-item-calc {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 96px;
    font-size: 12.5px;
    color: #4b5563;
    font-family: var(--font-price);
    font-variant-numeric: tabular-nums;
}

.account-order-item-qty {
    font-weight: 600;
    color: #111827;
}

.account-order-item-times {
    color: #9ca3af;
}

.account-order-item-unit-cny {
    color: #4b5563;
}

.account-order-item-subtotal {
    min-width: 98px;
    font-weight: 600;
    font-size: 13.5px;
    color: #111827;
    font-family: var(--font-price);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.account-order-card-foot {
    padding: 12px 18px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.account-order-foot-totals {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    font-size: 13px;
    font-weight: 400;
    color: #4b5563;
}

.account-order-total-group {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    white-space: nowrap;
}

.account-order-total-vnd {
    color: #ff5000;
    font-size: 15.5px;
    font-family: var(--font-price);
    font-weight: 400;
    margin-left: 0;
}

.account-order-deposit-paid {
    color: #059669;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

.account-order-deposit-paid > span {
    font-family: var(--font-price);
    font-weight: 400;
}

.account-order-balance-remaining {
    color: #c2410c;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

.account-order-balance-remaining.is-settled {
    color: #6b7280;
}

.account-order-balance-remaining > span {
    font-family: var(--font-price);
    font-weight: 400;
}

.account-order-foot-sep {
    color: #d1d5db;
    font-weight: 400;
}

@media (max-width: 640px) {
    .account-order-foot-sep {
        display: none;
    }
}

.account-order-foot-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.account-order-btn-reorder,
.account-order-btn-chat,
.account-order-btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1.25;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.account-order-btn-reorder {
    background: #16a34a;
    color: #ffffff;
    border-color: #16a34a;
}

.account-order-btn-reorder:hover {
    background: #15803d;
    border-color: #15803d;
}

.account-order-btn-chat {
    background: #fff5ef;
    color: #ff5000;
    border-color: #ffd1b8;
}

.account-order-btn-chat:hover {
    background: #ff5000;
    color: #ffffff;
    border-color: #ff5000;
}

.account-order-btn-detail {
    background: #f3f4f6;
    color: #374151;
    border-color: #e5e7eb;
}

.account-order-btn-detail:hover {
    background: #e5e7eb;
    color: #111827;
}

.account-order-btn-reorder:active,
.account-order-btn-chat:active,
.account-order-btn-detail:active {
    transform: translateY(1px);
}

.account-order-btn-reorder:focus-visible,
.account-order-btn-chat:focus-visible,
.account-order-btn-detail:focus-visible {
    outline: 3px solid rgba(255, 91, 0, 0.25);
    outline-offset: 2px;
}

/* =====================================================================
   MOBILE OFFCANVAS SIDEBAR & RESPONSIVE ADAPTATIONS (<= 900px down to < 320px)
   ===================================================================== */
@media (max-width: 900px) {
    html:has(body.is-account-sidebar-open) {
        overflow: hidden !important;
    }

    .account-page-wrapper {
        padding: 12px 0 80px;
        overflow-x: clip;
    }

    .account-container {
        flex-direction: column;
        width: calc(100% - 24px);
        gap: 12px;
    }

    .account-main-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .account-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: var(--overlay-backdrop-bg, rgba(15, 23, 42, 0.28));
        backdrop-filter: blur(var(--overlay-backdrop-blur, 1px));
        -webkit-backdrop-filter: blur(var(--overlay-backdrop-blur, 1px));
        z-index: var(--z-drawer, 180);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.22s ease, visibility 0.22s ease;
    }

    .account-sidebar-backdrop.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .account-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(260px, calc(100dvw - 38px));
        max-width: calc(100dvw - 38px);
        padding-top: env(safe-area-inset-top, 0px);
        z-index: 54;
        background: #ffffff;
        border: none;
        border-right: 1px solid #e6e8eb;
        border-radius: 0 4px 4px 0;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        transform: translateX(-100%);
        transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s ease;
        overflow: visible;
    }

    .account-sidebar.is-open {
        transform: translateX(0);
        z-index: 182;
        box-shadow: 6px 0 24px rgba(15, 23, 42, 0.16);
    }

    /* Toggle button stuck to the left edge at the vertical center of the screen */
    .account-sidebar-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        position: absolute;
        right: -28px;
        top: 50%;
        transform: translateY(-50%);
        width: 28px;
        min-height: 74px;
        height: auto;
        padding: 8px 0;
        background: #ff5000;
        color: #ffffff;
        border: 1px solid #e64500;
        border-left: none;
        border-radius: 0 6px 6px 0;
        box-shadow: 2px 2px 10px rgba(255, 80, 0, 0.28);
        cursor: pointer;
        z-index: 2;
        transition: background 0.15s ease, box-shadow 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .account-sidebar-toggle-text {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        transform: rotate(180deg);
        font-size: 11px;
        font-weight: 400;
        letter-spacing: 0.4px;
        line-height: 1;
        white-space: nowrap;
        user-select: none;
    }

    .account-sidebar-toggle:hover,
    .account-sidebar-toggle:focus-visible {
        background: #e64500;
        outline: none;
    }

    .account-sidebar-toggle-icon {
        transition: transform 0.22s ease;
    }

    .account-sidebar.is-open .account-sidebar-toggle-icon {
        transform: rotate(180deg);
    }

    .account-sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        padding: 0;
        border: 1px solid #e5e7eb;
        border-radius: 4px;
        background: #ffffff;
        color: #6b7280;
        cursor: pointer;
        flex-shrink: 0;
        transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    }

    .account-sidebar-close:hover {
        color: #111827;
        border-color: #d1d5db;
        background: #f3f4f6;
    }

    .account-user-card {
        flex-shrink: 0;
        padding: 14px 14px;
        gap: 10px;
    }

    .account-sidebar-nav {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .account-nav-list {
        flex: 1 1 auto;
        min-height: 0;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding: 6px 0;
    }

    .account-nav-group-label {
        margin: 5px 12px 2px;
        padding: 8px 4px 2px;
        font-size: 10.5px;
    }

    .account-nav-link {
        white-space: nowrap;
        border-left: 3px solid transparent;
        border-bottom: none;
        padding: 9.5px 16px;
    }

    .account-nav-link.active {
        border-left-color: #ff5b00;
        border-bottom-color: transparent;
    }

    .account-sidebar-footer {
        flex-shrink: 0;
        padding: 12px 14px max(16px, env(safe-area-inset-bottom));
        background: #ffffff;
    }

    .account-metrics-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .account-delivery-form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .account-delivery-settle-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .account-delivery-settle-qr {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #f1f5f9;
        padding-top: 12px;
    }
}

@media (max-width: 600px) {
    .account-delivery-card {
        padding: 14px !important;
    }

    .account-delivery-two-col {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .account-delivery-submit-btn {
        padding: 9px 12px !important;
        white-space: normal !important;
        text-align: center;
        line-height: 1.35;
        height: auto;
    }
}

/* =====================================================================
   SEARCH SELECT COMPONENT (Standardized B2B)
   ===================================================================== */
.search-select-box {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.search-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    min-height: 35px;
    box-sizing: border-box;
    padding: 7px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
    color: #111827;
    background: #ffffff;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-select-trigger .search-select-display {
    flex: 1 1 0%;
    min-width: 0;
}

.search-select-trigger:hover {
    border-color: #9ca3af;
}

.search-select-box.is-open .search-select-trigger {
    border-color: #ff5000;
    box-shadow: none;
}

.search-select-trigger .search-select-placeholder {
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-select-trigger .search-select-value {
    color: #111827;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-select-trigger .search-select-chevron {
    color: #6b7280;
    flex-shrink: 0;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.search-select-box.is-open .search-select-chevron {
    transform: rotate(180deg);
}

.search-select-dropdown {
    position: fixed;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: var(--z-popover-in-modal, 320);
    display: none;
    padding: 6px;
    box-sizing: border-box;
}

.search-select-box.is-open .search-select-dropdown {
    display: block;
}

.search-select-search-wrap {
    position: relative;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.search-select-search-wrap svg {
    position: absolute;
    left: 10px;
    color: #9ca3af;
    pointer-events: none;
}

.search-select-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 10px 6px 30px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
    transition: border-color 0.15s ease;
}

.search-select-search-input:focus {
    border-color: #ff5000;
}

.search-select-options {
    max-height: 200px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-select-options::-webkit-scrollbar {
    width: 4px;
}

.search-select-options::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.search-select-options::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.search-select-option {
    padding: 8px 10px;
    font-size: 13px;
    color: #374151;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-select-option:hover,
.search-select-option.is-focused {
    background: #fff5ef;
    color: #ff5000;
}

.search-select-option.is-selected {
    background: #fff5ef;
    color: #ff5000;
    font-weight: 500;
}

.search-select-empty {
    padding: 12px;
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
}

.search-select-custom-btn {
    width: 100%;
    margin-top: 4px;
    padding: 7px 10px;
    background: #fffaf5;
    border: 1px dashed #ffd8bf;
    border-radius: 3px;
    color: #ea580c;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-select-custom-btn:hover {
    background: #fff5eb;
    border-color: #ff5000;
}

/* =====================================================================
   WALLET ACTION MODALS (Topup VietQR & Withdrawal)
   ===================================================================== */
.account-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-backdrop-bg, rgba(15, 23, 42, 0.22));
    backdrop-filter: blur(var(--overlay-backdrop-blur, 1px));
    -webkit-backdrop-filter: blur(var(--overlay-backdrop-blur, 1px));
    z-index: var(--z-modal-backdrop, 220);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.account-modal-box {
    background: #ffffff;
    border-radius: 4px;
    width: 100%;
    max-width: 540px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-height: 90dvh;
    display: flex;
    flex-direction: column;
}

.account-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eaedf1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.account-modal-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    margin: 0;
}

.account-modal-close-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #9ca3af;
    padding: 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.account-modal-close-btn:hover {
    color: #374151;
    background: #f3f4f6;
}

.account-modal-body {
    padding: 20px;
    overflow-y: auto;
}

.quick-amount-chip {
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.12s ease;
}

.quick-amount-chip:hover {
    border-color: #ff5000;
    color: #ff5000;
    background: #fff5ef;
}

.quick-amount-chip.is-active {
    border-color: #ff5000;
    background: #ff5000;
    color: #ffffff;
}

.copy-badge-btn {
    height: 26px;
    padding: 0 10px;
    box-sizing: border-box;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    font-size: 11px;
    line-height: 1;
    color: #374151;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.copy-badge-btn:hover {
    background: #ff5000;
    border-color: #ff5000;
    color: #ffffff;
}

.copy-badge-btn.is-copied,
.copy-badge-btn.is-copied:hover {
    background: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #047857 !important;
}

.wallet-qr-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    width: 100%;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}

.wallet-qr-util-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
    height: 28px;
    padding: 0 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    font-size: 11px;
    font-weight: 400;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    transition: all 0.15s ease;
}

.wallet-qr-util-btn svg,
.wallet-qr-util-btn span {
    flex: 0 0 auto;
}

.wallet-qr-util-btn:hover {
    color: #ff5000;
    border-color: #fed7aa;
    background: #fff7ed;
}

.wallet-qr-util-btn.is-copied {
    color: #16a34a !important;
    border-color: #86efac !important;
    background: #f0fdf4 !important;
}

/* Wallet dialogs: keep actions visible and allow the content to scroll on short screens. */
.account-modal-overlay {
    overscroll-behavior: contain;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
}

.wallet-dialog {
    width: min(100%, 600px);
    max-height: min(88dvh, 820px);
    border-radius: 12px;
}

.wallet-dialog-header {
    flex: 0 0 auto;
    padding: 20px 24px;
}

.wallet-dialog .account-modal-title {
    font-size: 20px;
    font-weight: 600;
    text-wrap: balance;
}

.wallet-dialog-form {
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wallet-dialog-content {
    min-height: 0;
    flex: 1 1 auto;
    padding: 20px 24px;
    overscroll-behavior: contain;
}

.wallet-available-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 14px;
}

.wallet-available-summary strong {
    color: #f15a24;
    font-size: 18px;
    font-variant-numeric: tabular-nums;
}

.wallet-form-field {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
}

.wallet-form-field label {
    color: #344054;
    font-size: 14px;
    font-weight: 600;
}

.wallet-form-field input,
.wallet-form-field select {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cfd4dc;
    border-radius: 7px;
    background-color: #fff;
    color: #101828;
    font: inherit;
}

.wallet-form-field input:focus-visible,
.wallet-form-field select:focus-visible,
.wallet-dialog button:focus-visible {
    outline: none;
    border-color: #ff5000;
    box-shadow: none;
    outline-offset: 2px;
}

.wallet-form-field small {
    color: #667085;
    font-size: 12px;
    line-height: 1.45;
}

.wallet-amount-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.wallet-inline-link {
    justify-self: start;
    padding: 2px 0;
    border: 0;
    background: none;
    color: #e94f14;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.wallet-inline-link:hover { text-decoration: underline; }

.wallet-withdraw-confirmation {
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 13px;
    line-height: 1.5;
}

.wallet-dialog-footer {
    position: sticky;
    z-index: 1;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
    padding: 14px 24px max(14px, env(safe-area-inset-bottom));
    border-top: 1px solid #eaedf1;
    background: #fff;
}

.wallet-button-primary,
.wallet-button-secondary {
    min-height: 44px;
    padding: 10px 16px;
    border: 0;
    border-radius: 7px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.wallet-button-primary { background: #f15a24; color: #fff; }
.wallet-button-primary:hover:not(:disabled) { background: #d94b18; }
.wallet-button-primary:disabled { cursor: not-allowed; opacity: .5; }
.wallet-button-secondary { background: #f2f4f7; color: #344054; }
.wallet-button-secondary:hover { background: #e4e7ec; }

.wallet-bank-list {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.wallet-bank-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
}

.wallet-bank-list li > div { display: grid; gap: 4px; min-width: 0; }
.wallet-bank-list li strong { color: #344054; font-size: 14px; }
.wallet-bank-list li span { color: #667085; font-size: 13px; overflow-wrap: anywhere; }
.wallet-default-badge { margin-left: 6px; color: #15803d !important; font-size: 11px !important; }
.wallet-remove-bank { border: 0; background: transparent; color: #b42318; font: inherit; font-size: 13px; cursor: pointer; }
.wallet-bank-add-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid #eaedf1; }
.wallet-bank-add-form h3 { margin: 0 0 14px; color: #344054; font-size: 15px; }
.wallet-save-bank { width: 100%; }
.wallet-bank-empty-note { margin: 0; padding: 12px; border-radius: 8px; background: #f8fafc; color: #667085; font-size: 13px; }
.wallet-empty-bank-state { display: grid; justify-items: start; gap: 8px; padding: 18px; border: 1px dashed #d0d5dd; border-radius: 8px; color: #667085; }
.wallet-empty-bank-state strong { color: #344054; }
.wallet-empty-bank-state button { border: 0; padding: 0; background: transparent; color: #e94f14; font: inherit; font-weight: 600; cursor: pointer; }

.quick-order-card {
    width: 100%;
    box-sizing: border-box;
}

.account-card-desc {
    margin: 0 0 18px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.quick-order-form {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.quick-order-form textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.quick-order-form textarea:focus {
    outline: 0;
    border-color: #ff5000;
    box-shadow: 0 0 0 3px rgba(255, 80, 0, .12);
}

.quick-order-form button {
    justify-self: start;
    min-height: 38px;
    padding: 0 24px;
    border: 0;
    border-radius: 4px;
    background: #ff5000;
    color: #fff;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s ease;
}

.quick-order-form button:hover {
    background: #e64500;
}

.quick-order-error {
    padding: 10px 14px;
    background: #fff1f0;
    border: 1px solid #ffd0cc;
    border-radius: 4px;
    color: #a12b20;
    font-size: 13px;
    margin-bottom: 12px;
}

.quick-order-status {
    min-height: 20px;
    margin-top: 14px;
    color: #147d4a;
    font-size: 13px;
    font-weight: 500;
}

.quick-order-status.is-error {
    color: #b42318;
}

.quick-order-history-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f0f2f5;
}

.quick-order-history-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.quick-order-history-bar h2 {
    margin: 0;
    color: #1d1d1f;
    font-size: 15px;
    font-weight: 500;
}

.quick-order-history-bar span {
    color: #6b7280;
    font-size: 12px;
}

.quick-order-clear-btn {
    flex: 0 0 auto;
    padding: 5px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    color: #4b5563;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: all .15s ease;
}

.quick-order-clear-btn:hover {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #dc2626;
}

.quick-order-results {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.quick-order-product {
    position: relative;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) minmax(210px, 240px);
    align-items: center;
    gap: 18px;
    min-width: 0;
    padding: 16px;
    padding-right: 38px;
    border: 1px solid #e6e8eb;
    border-radius: 4px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.quick-order-card-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    transition: background-color .15s ease, color .15s ease;
    z-index: 2;
}

.quick-order-card-remove-btn:hover {
    background: #fef2f2;
    color: #ef4444;
}

.quick-order-card-remove-btn:focus-visible {
    outline: 2px solid #ef4444;
    outline-offset: 1px;
}

.quick-order-product:hover {
    border-color: #ffd1b8;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .05);
}

.quick-order-product.is-added {
    border-color: #a7f3d0;
    background: #f0fdf4;
}

.quick-order-product-image-link {
    display: block;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f4f5f7;
    border: 1px solid #f0f2f5;
    text-decoration: none;
}

.quick-order-product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

.quick-order-product-image-link:hover .quick-order-product-image {
    transform: scale(1.05);
}

.quick-order-product-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.quick-order-product-title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.quick-order-product-title a {
    color: #1d1d1f;
    text-decoration: none;
    transition: color .15s ease;
}

.quick-order-product-title a:hover {
    color: #ff5000;
}

.quick-order-product-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.quick-order-price-cny {
    color: #ff5000;
    font-size: 17px;
    font-weight: 600;
}

.quick-order-price-vnd {
    color: #6b7280;
    font-size: 12.5px;
    font-weight: 400;
}

.quick-order-product-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-order-tag-spec {
    display: inline-block;
    padding: 2px 7px;
    background: #f4f5f7;
    border-radius: 3px;
    font-size: 11.5px;
    color: #4b5563;
}

.quick-order-company-name {
    font-size: 12px;
    color: #888888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
}

.quick-order-product-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

.quick-order-product-actions button,
.quick-order-detail-link {
    min-width: 0;
    min-height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ff5000;
    border-radius: 4px;
    background: #fff;
    color: #ff5000;
    font: inherit;
    font-size: 12.5px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all .15s ease;
}

.quick-order-product-actions .quick-order-buy-btn {
    background: #ff5000;
    color: #fff;
}

.quick-order-product-actions .quick-order-detail-link {
    grid-column: 1 / -1;
}

.quick-order-product-actions button:hover,
.quick-order-detail-link:hover {
    filter: brightness(.95);
}

.quick-order-product-actions button:focus-visible,
.quick-order-detail-link:focus-visible,
.quick-order-clear-btn:focus-visible {
    outline: 2px solid rgba(255, 80, 0, .3);
    outline-offset: 1px;
}

.quick-order-not-found {
    padding: 12px 14px;
    border: 1px solid #fecdca;
    border-radius: 4px;
    background: #fff7f6;
    color: #b42318;
    font-size: 12px;
    overflow-wrap: anywhere;
}
#modal-cart-sku .sku-modal-error-msg { margin-top: 12px; }
#modal-cart-sku .sku-modal-layout-container { max-height: min(44dvh, 360px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#modal-cart-sku .sku-single-row { min-height: 64px; }
#modal-cart-sku .sku-single-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
#modal-cart-sku .sku-single-price-stock { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#modal-cart-sku .sku-single-stock { color: #64748b; }
.support-card { padding: 24px; }
.support-card > p { color: #667085; }
.support-contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.support-contact-item { display: grid; gap: 5px; min-width: 0; padding: 14px; border: 1px solid #e4e7ec; color: inherit; text-decoration: none; }
.support-contact-item span { color: #667085; font-size: 12px; }
.support-contact-item strong { overflow-wrap: anywhere; }
.support-chat-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 24px 0; padding: 18px; background: #fff8f4; border: 1px solid #ffddca; }
.support-chat-panel h2 { margin: 0 0 4px; font-size: 17px; }
.support-chat-panel p { margin: 0; color: #667085; }
.support-empty-note { grid-column: 1 / -1; margin: 0; padding: 14px; border: 1px dashed #d0d5dd; color: #667085; }
.support-back-link { color: #e94f14; font-weight: 600; text-decoration: none; }

@media (max-width: 600px) {
    .quick-order-page { padding-top: 10px; padding-bottom: 28px; }
    .quick-order-card { padding: 16px; border-radius: 4px; }
    .quick-order-card h1 { font-size: 20px; }
    .quick-order-form button { width: 100%; }
    .quick-order-history-bar { align-items: flex-start; gap: 10px; margin-top: 22px; padding-top: 16px; }
    .quick-order-history-bar h2 { font-size: 15px; }
    .quick-order-history-bar span { font-size: 11px; }
    .quick-order-clear-btn { padding: 6px 8px; }
    .quick-order-product { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 12px; padding-right: 32px; }
    .quick-order-card-remove-btn { top: 6px; right: 6px; width: 24px; height: 24px; }
    .quick-order-product-image-link, .quick-order-product-image { width: 88px; height: 88px; }
    .quick-order-product-actions { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .quick-order-product-actions button, .quick-order-detail-link { min-height: 36px; padding: 0 6px; font-size: 11px; }
    .quick-order-product-actions .quick-order-detail-link { grid-column: auto; }
    .support-card { padding: 18px; }
    .support-contact-list { grid-template-columns: 1fr; }
    .support-chat-panel { align-items: stretch; flex-direction: column; padding: 14px; }
    .support-chat-panel > a { width: 100%; }
    .wallet-dialog { max-height: 92dvh; border-radius: 10px; }
    .wallet-dialog-header { padding: 16px; }
    .wallet-dialog .account-modal-title { font-size: 18px; }
    .wallet-dialog-content { padding: 16px; }
    .wallet-dialog-footer { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
    .wallet-dialog-footer > button { flex: 1 1 0; }

    .account-card-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .account-order-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 14px;
    }

    .account-orders-toolbar {
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .account-orders-search-form {
        width: 100%;
        flex-wrap: wrap;
    }

    .account-orders-search-input {
        flex: 1 1 140px;
        min-width: 0;
        width: auto !important;
    }

    .account-addr-form-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .account-addr-item-info {
        min-width: 0 !important;
        width: 100%;
    }

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

    .account-wallet-actions > button {
        flex: 1 1 auto;
        justify-content: center;
    }

    .account-wallet-qr-box {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 14px !important;
        gap: 14px !important;
    }

    .account-wallet-qr-col {
        width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .account-wallet-bank-col {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        width: 100% !important;
        gap: 8px !important;
    }

    #modal-wallet-topup .wallet-dialog-content {
        max-height: calc(88dvh - 72px) !important;
        padding: 12px 16px 14px !important;
    }

    #modal-wallet-topup #topup-vietqr-img {
        width: 128px !important;
    }
}

@media (min-width: 601px) and (max-width: 1100px) {
    .quick-order-product { grid-template-columns: 96px minmax(0, 1fr); gap: 14px 16px; }
    .quick-order-product-image-link, .quick-order-product-image { width: 96px; height: 96px; }
    .quick-order-product-actions { grid-column: 2; display: flex; justify-content: flex-start; }
    .quick-order-product-actions .quick-order-detail-link { grid-column: auto; }
}

/* =====================================================================
   STANDARD MOBILE (<= 480px) & SMALL MOBILE (<= 360px / <= 320px / 280px)
   ===================================================================== */
@media (max-width: 480px) {
    .account-page-wrapper {
        padding: 10px 0 76px;
    }

    .account-container {
        width: calc(100% - 16px);
        gap: 10px;
    }

    .account-page-wrapper .account-card:not(.buyer-chat-shell):not(.account-order-card):not(.buyer-notif-card) {
        padding: 14px 12px !important;
        margin-bottom: 12px !important;
    }

    .account-page-wrapper .account-orders-filter-card,
    .account-page-wrapper .account-tx-header-card {
        padding: 14px 12px 0 !important;
    }

    .account-welcome-banner {
        padding: 14px 12px;
        margin-bottom: 12px;
    }

    .account-welcome-title {
        font-size: 16px;
        flex-wrap: wrap;
        word-break: break-word;
    }

    .account-welcome-desc {
        font-size: 12.5px;
    }

    .account-metric-card {
        padding: 12px 14px;
        gap: 12px;
    }

    .metric-val {
        font-size: 18px;
        overflow-wrap: anywhere;
    }

    .account-order-card-head,
    .account-order-card-items,
    .account-order-card-foot {
        padding: 12px !important;
    }

    .account-addr-item {
        padding: 12px !important;
        gap: 12px !important;
    }

    .account-wallet-qr-box {
        padding: 12px !important;
        gap: 12px !important;
    }

    .account-wallet-bank-col {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .account-page-wrapper table th,
    .account-page-wrapper table td {
        padding: 8px 8px !important;
        font-size: 12px;
    }

    .account-tabs-nav {
        gap: 6px;
        padding-top: 12px;
    }

    .account-tab-pill {
        padding: 5px 10px;
        font-size: 12px;
    }

    .account-tabs-nav.has-mobile-popover {
        position: relative;
        overflow: visible;
    }

    .account-tabs-nav.has-mobile-popover .account-tabs-more-wrap {
        display: inline-flex;
        position: static;
    }

    .account-tabs-nav.has-mobile-popover .account-tabs-more-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 5px 10px;
        font-family: var(--font-sans, 'DM Sans', sans-serif);
        font-size: 12px;
        font-weight: 500;
        line-height: 1.35;
        color: #374151;
        background: #ffffff;
        border: 1px dashed #cbd5e1;
        border-radius: 4px;
        white-space: nowrap;
        cursor: pointer;
        max-width: 100%;
        transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .account-tabs-nav.has-mobile-popover .account-tabs-more-label {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .account-tabs-nav.has-mobile-popover .account-tabs-more-btn.is-active,
    .account-tabs-nav.has-mobile-popover .account-tabs-more-wrap.is-open .account-tabs-more-btn {
        color: #ff5000;
        background: #fff3ed;
        border-style: solid;
        border-color: #ff5000;
        font-weight: 600;
    }

    .account-tabs-more-chevron {
        flex-shrink: 0;
        transition: transform 0.18s ease;
    }

    .account-tabs-more-wrap.is-open .account-tabs-more-chevron {
        transform: rotate(180deg);
    }

    .account-tabs-nav.has-mobile-popover .account-tabs-more-menu {
        display: none;
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        z-index: 40;
        padding: 8px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        max-height: 55dvh;
        overflow-y: auto;
    }

    .account-tabs-nav.has-mobile-popover .account-tabs-more-wrap.is-open .account-tabs-more-menu {
        display: grid;
    }

    .account-tabs-nav.has-mobile-popover .account-tabs-more-menu .account-tab-pill {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
        white-space: normal;
        line-height: 1.3;
        padding: 7px 10px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .account-container {
        width: calc(100% - 12px);
    }

    .account-sidebar {
        width: min(244px, calc(100dvw - 34px));
        max-width: calc(100dvw - 34px);
    }

    .account-sidebar-toggle {
        width: 24px;
        min-height: 64px;
        height: auto;
        padding: 7px 0;
        right: -24px;
    }

    .account-sidebar-toggle-text {
        font-size: 10px;
    }

    #wallet-balance-display {
        font-size: 24px !important;
    }

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

    .account-order-item-row {
        flex-wrap: wrap;
        gap: 10px !important;
    }

    .account-order-item-pricing {
        width: 100%;
        justify-content: space-between;
        padding-top: 6px;
        border-top: 1px dashed #f0f2f5;
    }

    .account-order-item-calc,
    .account-order-item-subtotal {
        min-width: 0;
    }
}

@media (max-width: 340px) {
    .account-tabs-nav.has-mobile-popover .account-tabs-more-menu {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 320px) {
    .account-page-wrapper {
        padding: 8px 0 72px;
    }

    .account-container {
        width: calc(100% - 10px);
        gap: 8px;
    }

    .account-sidebar {
        width: calc(100dvw - 30px);
        max-width: calc(100dvw - 30px);
    }

    .account-sidebar-toggle {
        width: 22px;
        min-height: 58px;
        height: auto;
        padding: 6px 0;
        gap: 3px;
        right: -22px;
    }

    .account-sidebar-toggle-text {
        font-size: 9.5px;
    }

    .account-user-card {
        padding: 10px;
        gap: 8px;
    }

    .account-avatar {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .account-nav-group-label {
        margin: 4px 10px 2px;
        padding: 7px 2px 2px;
        font-size: 10px;
    }

    .account-nav-link {
        padding: 8.5px 12px;
        font-size: 12.5px;
    }

    .account-page-wrapper .account-card:not(.buyer-chat-shell):not(.account-order-card):not(.buyer-notif-card) {
        padding: 12px 10px !important;
        margin-bottom: 10px !important;
    }

    .account-page-wrapper .account-orders-filter-card,
    .account-page-wrapper .account-tx-header-card {
        padding: 12px 10px !important;
    }

    .account-tabs-nav {
        gap: 5px;
        padding-top: 10px;
    }

    .account-tab-pill {
        padding: 4px 8px;
        font-size: 11.5px;
        flex: 1 1 auto;
        text-align: center;
    }

    .account-welcome-banner {
        padding: 10px;
        margin-bottom: 10px;
    }

    .account-welcome-title {
        font-size: 15px;
    }

    .account-welcome-desc {
        font-size: 12px;
    }

    .account-card-title {
        font-size: 14.5px;
    }

    .account-metric-card {
        padding: 10px;
        gap: 10px;
    }

    .metric-icon-wrap {
        width: 34px;
        height: 34px;
    }

    .metric-val {
        font-size: 16px;
    }

    .metric-label {
        font-size: 11px;
    }

    .btn-1688-primary {
        width: 100%;
        padding: 8px 12px;
        font-size: 12.5px;
        box-sizing: border-box;
    }

    .account-orders-search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 6px !important;
    }

    .account-orders-search-input,
    .account-orders-search-btn {
        width: 100% !important;
        flex: none;
        box-sizing: border-box;
    }

    .account-order-card-head,
    .account-order-card-items,
    .account-order-card-foot {
        padding: 10px !important;
    }

    .account-order-card-meta {
        font-size: 12px !important;
        word-break: break-word;
    }

    #wallet-balance-display {
        font-size: 21px !important;
    }

    .account-tx-header-top {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .account-tx-header-top > div:last-child {
        text-align: left !important;
    }

    .account-addr-item {
        padding: 10px !important;
    }

    .account-addr-item-actions {
        width: 100%;
    }

    .account-addr-item-actions > button,
    .account-addr-item-actions > form {
        flex: 1 1 auto;
    }

    .account-addr-item-actions > form > button {
        width: 100%;
    }

    .account-profile-session-row {
        padding: 10px !important;
    }

    .wallet-dialog-header,
    .wallet-dialog-content {
        padding: 12px !important;
    }

    .wallet-dialog-footer {
        padding: 10px 12px max(10px, env(safe-area-inset-bottom)) !important;
        flex-wrap: wrap;
    }

    .wallet-available-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 12px;
    }

    .quick-order-card {
        padding: 12px;
    }

    .quick-order-card h1 {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .account-order-card-head,
    .account-order-card-items,
    .account-order-card-foot {
        padding: 12px;
    }

    .account-order-head-top {
        align-items: center;
    }

    .account-order-shop-name {
        font-size: 13.5px;
    }

    .account-order-head-sub {
        font-size: 12px;
        gap: 4px 6px;
    }

    .account-order-foot-actions {
        width: 100%;
    }

    .account-order-foot-actions > form,
    .account-order-foot-actions > button,
    .account-order-foot-actions > a {
        flex: 1 1 0;
        min-width: 0;
    }

    .account-order-foot-actions .account-order-btn-reorder,
    .account-order-foot-actions .account-order-btn-chat,
    .account-order-foot-actions .account-order-btn-detail {
        width: 100%;
        min-height: 38px;
        padding: 0 10px;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .account-order-item-row {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 10px;
    }

    .account-order-item-thumb {
        width: 90px;
        height: 90px;
        min-width: 90px;
        min-height: 90px;
    }

    .account-order-item-title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .account-order-item-pricing {
        width: 100%;
        justify-content: space-between;
        padding-top: 6px;
        border-top: 1px dashed #f0f2f5;
    }

    .account-order-item-calc,
    .account-order-item-subtotal {
        min-width: 0;
    }

    .account-order-shop-subhead {
        flex-wrap: wrap;
        gap: 4px;
    }
}

@media (max-width: 340px) {
    .account-order-head-top {
        flex-wrap: wrap;
        gap: 6px;
    }

    .account-order-foot-actions {
        flex-wrap: wrap;
    }

    .account-order-foot-actions > form,
    .account-order-foot-actions > button {
        flex: 1 1 calc(50% - 4px);
    }

    .account-order-foot-actions > a.account-order-btn-detail {
        flex: 1 1 100%;
    }

    .account-order-weight-chip {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .account-order-tracking-chip {
        max-width: 100%;
    }

    .account-order-tracking-code {
        overflow-wrap: anywhere;
        word-break: break-all;
    }
}

@media (max-width: 319px) {
    .account-delivery-card {
        padding: 12px 10px !important;
    }

    .account-order-card-head,
    .account-order-card-items,
    .account-order-card-foot {
        padding: 9px !important;
    }

    .account-order-item-row {
        gap: 8px;
    }

    .account-order-item-info {
        min-width: 0;
        flex: 1 1 110px;
    }

    .account-order-foot-totals {
        font-size: 12px;
        gap: 4px 8px;
    }
}
