/**
 * Customer account pages & modals — readable text on light surfaces.
 * Overrides themes (e.g. fashion/theme3) that set body text to white.
 */

.customer-account-page {
    --customer-ink: #1a1a1a;
    --customer-muted: #6b6560;
    --customer-surface: #ffffff;
    --customer-border: rgba(0, 0, 0, 0.08);
    --customer-hero-ink: #f5f3ef;
}

.customer-account-page .customer-dashboard-shell {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.customer-account-page .customer-dashboard-hero {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
    color: var(--customer-hero-ink);
}

.customer-account-page .customer-dashboard-hero h1 {
    margin: 0 0 6px;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--customer-hero-ink) !important;
}

.customer-account-page .customer-dashboard-eyebrow {
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    color: rgba(245, 243, 239, 0.75) !important;
}

.customer-account-page .customer-dashboard-subtitle {
    margin: 0;
    color: rgba(245, 243, 239, 0.85) !important;
}

.customer-account-page .customer-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.customer-account-page .customer-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.customer-account-page .customer-stat-card,
.customer-account-page .customer-dashboard-section,
.customer-account-page .customer-order-card {
    background: var(--customer-surface);
    border: 1px solid var(--customer-border);
    color: var(--customer-ink) !important;
}

.customer-account-page .customer-stat-card {
    border-radius: 14px;
    padding: 16px;
}

.customer-account-page .customer-stat-card span,
.customer-account-page .customer-stat-card strong,
.customer-account-page .customer-dashboard-section h2,
.customer-account-page .customer-dashboard-section h3,
.customer-account-page .customer-dashboard-section p,
.customer-account-page .customer-order-card strong,
.customer-account-page .customer-order-card p,
.customer-account-page .customer-order-card span,
.customer-account-page .customer-empty-state h3,
.customer-account-page .customer-empty-state p {
    color: var(--customer-ink) !important;
}

.customer-account-page .customer-stat-card span,
.customer-account-page .customer-order-card__top p,
.customer-account-page .customer-order-card__meta span,
.customer-account-page .customer-empty-state p {
    color: var(--customer-muted) !important;
    opacity: 1 !important;
}

.customer-account-page .customer-stat-card span {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}

.customer-account-page .customer-stat-card strong {
    font-size: 1.35rem;
}

.customer-account-page .customer-dashboard-section {
    border-radius: 16px;
    padding: 20px;
}

.customer-account-page .customer-dashboard-section__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.customer-account-page .customer-dashboard-section__head h2 {
    margin: 0;
    font-size: 1.25rem;
}

.customer-account-page .customer-dashboard-section__head a {
    color: var(--customer-ink) !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.customer-account-page .customer-orders-list {
    display: grid;
    gap: 12px;
}

.customer-account-page .customer-order-card {
    border-radius: 12px;
    padding: 16px;
}

.customer-account-page .customer-order-card__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.customer-account-page .customer-order-card__top p {
    margin: 4px 0 0;
    font-size: 13px;
}

.customer-account-page .customer-order-card__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.customer-account-page .customer-order-card__meta span {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.customer-account-page .customer-order-card__actions {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.customer-account-page .customer-order-status {
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #f2f2f2;
    color: #333 !important;
}

.customer-account-page .customer-order-status--delivered,
.customer-account-page .customer-order-status--completed {
    background: #e8f7ee;
    color: #167a3b !important;
}

.customer-account-page .customer-order-status--pending,
.customer-account-page .customer-order-status--processing {
    background: #fff5e6;
    color: #9a6700 !important;
}

.customer-account-page .customer-empty-state {
    text-align: center;
    padding: 32px 16px;
}

.customer-account-page .customer-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    -webkit-text-fill-color: currentColor !important;
    cursor: pointer;
}

.customer-account-page .customer-btn--sm {
    min-height: 36px;
    padding: 8px 12px !important;
    font-size: 13px !important;
}

.customer-account-page .customer-btn--hero-outline {
    color: #ffffff !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.92) !important;
}

.customer-account-page .customer-btn--hero-outline:hover,
.customer-account-page .customer-btn--hero-outline:focus {
    color: #1a1a1a !important;
    background: #ffffff !important;
    border-color: #ffffff !important;
}

.customer-account-page .customer-btn--hero-solid {
    color: #1a1a1a !important;
    background: #ffffff !important;
    border: 1px solid #ffffff !important;
}

.customer-account-page .customer-btn--hero-solid:hover,
.customer-account-page .customer-btn--hero-solid:focus {
    color: #ffffff !important;
    background: transparent !important;
    border-color: #ffffff !important;
}

.customer-account-page .customer-btn--surface-solid {
    color: #ffffff !important;
    background: #1a1a1a !important;
    border: 1px solid #1a1a1a !important;
}

.customer-account-page .customer-btn--surface-solid:hover,
.customer-account-page .customer-btn--surface-solid:focus {
    color: #1a1a1a !important;
    background: #ffffff !important;
}

.customer-account-page .customer-btn--surface-outline {
    color: #1a1a1a !important;
    background: #ffffff !important;
    border: 1px solid #1a1a1a !important;
}

.customer-account-page .customer-btn--surface-outline:hover,
.customer-account-page .customer-btn--surface-outline:focus {
    color: #ffffff !important;
    background: #1a1a1a !important;
}

.customer-account-page .customer-dashboard-section a.customer-btn,
.customer-account-page .customer-empty-state a.customer-btn,
.customer-account-page .customer-order-card__actions a.customer-btn {
    -webkit-text-fill-color: currentColor !important;
}

.customer-account-page a.customer-btn.customer-btn--surface-solid,
.customer-account-page a.customer-btn.customer-btn--hero-outline:hover,
.customer-account-page a.customer-btn.customer-btn--hero-outline:focus,
.customer-account-page a.customer-btn.customer-btn--surface-outline:hover,
.customer-account-page a.customer-btn.customer-btn--surface-outline:focus {
    color: #ffffff !important;
}

.customer-account-page a.customer-btn.customer-btn--surface-solid:hover,
.customer-account-page a.customer-btn.customer-btn--surface-solid:focus,
.customer-account-page a.customer-btn.customer-btn--hero-solid,
.customer-account-page a.customer-btn.customer-btn--surface-outline {
    color: #1a1a1a !important;
}

body[class*="theme3-v"] .customer-account-page a.customer-btn,
body[class*="theme3-v"] .customer-account-page .customer-btn {
    font-family: inherit !important;
}

@media (max-width: 768px) {
    .customer-account-page .customer-dashboard-hero,
    .customer-account-page .customer-dashboard-section__head,
    .customer-account-page .customer-order-card__top {
        flex-direction: column;
    }

    .customer-account-page .customer-dashboard-stats,
    .customer-account-page .customer-order-card__meta {
        grid-template-columns: 1fr;
    }

    .customer-account-page .customer-dashboard-actions .customer-btn {
        width: 100%;
    }
}

/* Profile & order modals (ajax popups) */
.common-modal .modal-inner,
.common-modal .modal-wrapper .modal-body,
#profileview-modal .modal-body,
#orderview-modal .modal-body,
#quickview-modal .product-view-body,
#quickview-modal .order-view-body,
.common-modal .product-view-body,
.common-modal .order-view-body {
    color: #1a1a1a !important;
    background: #ffffff !important;
}

#profileview-modal .modal-body label:not(.btn),
#profileview-modal .modal-body h5,
#profileview-modal .modal-body p,
#profileview-modal .modal-body span,
#profileview-modal .modal-body .form-container-title,
#orderview-modal .modal-body h2,
#orderview-modal .modal-body h3,
#orderview-modal .modal-body p,
#orderview-modal .modal-body span,
#orderview-modal .modal-body th,
#orderview-modal .modal-body td,
#orderview-modal .modal-body a,
.common-modal .product-view-body label:not(.btn),
.common-modal .product-view-body h5,
.common-modal .product-view-body .form-container-title,
.common-modal .order-view-body h2,
.common-modal .order-view-body th,
.common-modal .order-view-body td,
.common-modal .order-view-body p,
.common-modal .order-view-body span,
.common-modal .order-view-body a:not(.btn) {
    color: #1a1a1a !important;
}

.common-modal .product-view-body .btn,
.common-modal .product-view-body label.btn,
.common-modal .order-view-body .btn,
#profileview-modal .btn,
#profileview-modal label.btn,
#profileview-modal .file-upload.btn,
#profileview-modal button.btn[type="submit"] {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: #1a1a1a !important;
    border-color: #1a1a1a !important;
}

#profileview-modal .file-upload.btn:hover,
#profileview-modal .file-upload.btn:focus,
#profileview-modal button.btn[type="submit"]:hover,
#profileview-modal button.btn[type="submit"]:focus,
.common-modal .product-view-body label.btn:hover,
.common-modal .product-view-body label.btn:focus {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

#profileview-modal .form-control,
#orderview-modal .form-control,
.common-modal .product-view-body .form-control {
    color: #1a1a1a !important;
    background: #fff !important;
    border-color: #d9d4cd !important;
}

#profileview-modal .form-control::placeholder,
.common-modal .product-view-body .form-control::placeholder {
    color: #8a8580 !important;
}

.common-modal .order-view-body .badge,
#orderview-modal .badge {
    color: #1a1a1a !important;
}
