/**
 * Customer profile + cart/checkout — modern red / white / black theme.
 */

body.ls-customer-hub-active,
body.ls-customer-profile-page,
body.ls-rep-hub-page,
body.ls-cart-flow-page {
    --ls-brand-red: #e50914;
    --ls-brand-red-dark: #b8070f;
    --ls-brand-black: #0a0a0a;
    --ls-brand-white: #ffffff;
    --ls-brand-gray: #737373;
    --ls-ui-text: var(--ls-brand-black);
    --ls-ui-muted: var(--ls-brand-gray);
    --ls-ui-border: #d4d4d4;
    --ls-ui-surface: var(--ls-brand-white);
    --ls-ui-surface-muted: #f5f5f5;
    --ls-ui-accent: var(--ls-brand-red);
    --ls-ui-accent-soft: rgba(229, 9, 20, 0.12);
    --ls-ui-radius-sm: 8px;
    --ls-ui-radius-md: 12px;
    --ls-ui-radius-lg: 16px;
    --ls-ui-shadow: 0 12px 40px rgba(10, 10, 10, 0.08);
    --ls-ui-font: 'Vazirmatn', Tahoma, sans-serif;
    --ls-ui-title: clamp(1.05rem, 1.8vw, 1.25rem);
    --ls-ui-body: 0.9375rem;
    --ls-ui-small: 0.8125rem;
    --ls-ui-label: 0.875rem;
    font-family: var(--ls-ui-font);
    color: var(--ls-ui-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    background: #fafafa;
}

/* ── Red surfaces: white text + white icons ── */
.ls-cart-seller-hint__text,
.ls-customer-hub__nav-link.is-active,
.ls-hub-section__icon,
.ls-cart-section__icon,
.ls-checkout-section__icon,
.ls-checkout-progress__item.is-current .ls-checkout-progress__step,
.ls-checkout-progress__item.is-current .ls-checkout-progress__icon,
.ls-checkout-progress__item.is-done .ls-checkout-progress__icon,
.ls-checkout-page-header__icon,
.ls-status-pill,
body.ls-cart-flow-page .woocommerce-message,
body.ls-cart-flow-page .woocommerce-info,
body.ls-cart-flow-page .woocommerce-error,
body.ls-cart-flow-page .woocommerce-notices-wrapper .woocommerce-message,
body.ls-cart-flow-page .woocommerce-notices-wrapper .woocommerce-info,
body.ls-cart-flow-page .woocommerce-notices-wrapper .woocommerce-error,
.ls-customer-quick-link:hover {
    color: var(--ls-brand-white) !important;
}

.ls-cart-seller-hint__text :not(input),
.ls-customer-hub__nav-link.is-active :not(input),
.ls-hub-section__icon,
.ls-hub-section__icon i,
.ls-cart-section__icon,
.ls-cart-section__icon i,
.ls-checkout-section__icon,
.ls-checkout-section__icon i,
.ls-checkout-progress__item.is-current .ls-checkout-progress__step,
.ls-checkout-progress__item.is-current .ls-checkout-progress__icon,
.ls-checkout-progress__item.is-current .ls-checkout-progress__icon i,
.ls-checkout-progress__item.is-done .ls-checkout-progress__icon,
.ls-checkout-progress__item.is-done .ls-checkout-progress__icon i,
.ls-checkout-page-header__icon,
.ls-checkout-page-header__icon i,
.ls-cart-seller-hint__text i,
.ls-customer-hub__nav-link.is-active i,
.ls-customer-quick-link:hover i,
body.ls-cart-flow-page .woocommerce-message i,
body.ls-cart-flow-page .woocommerce-info i,
body.ls-cart-flow-page .woocommerce-error i {
    color: var(--ls-brand-white) !important;
}

.ls-cart-sidebar__deal,

.ls-cart-seller-panel {
    background: var(--ls-brand-white) !important;
    border: 2px solid var(--ls-brand-black);
    box-shadow: var(--ls-ui-shadow);
    color: var(--ls-brand-black);
    padding: 0 !important;
    overflow: hidden;
}

.ls-cart-seller-panel__head--brand {
    background: #e50914 !important;
    color: #fff !important;
    padding: 1.15rem 1.25rem !important;
    margin: 0 !important;
    border-bottom: 2px solid #0a0a0a !important;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.ls-cart-seller-panel__head--brand *,
.ls-cart-seller-panel__head--brand .ls-cart-seller-panel__title {
    color: #fff !important;
}

.ls-cart-seller-panel__head--brand .ls-cart-seller-panel__icon {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--ls-ui-radius-sm);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.ls-cart-seller-panel__head--brand .ls-cart-seller-panel__icon i {
    color: #fff !important;
}

.ls-cart-seller-panel__head--brand .ls-cart-seller-panel__badge {
    background: #0a0a0a;
    color: #fff !important;
}

.ls-cart-seller-panel__body {
    padding: 1rem 1.25rem 1.15rem;
}

.ls-cart-seller-panel__store,
.ls-cart-seller-panel__code,
.ls-cart-seller-panel__desc,
.ls-cart-seller-panel__help,
.ls-cart-seller-panel__field label {
    color: var(--ls-brand-black) !important;
}

.ls-cart-seller-panel__help a {
    color: var(--ls-brand-red) !important;
    text-decoration: underline;
    font-weight: 700;
}

.ls-cart-seller-panel.is-active {
    border-color: var(--ls-brand-black);
    box-shadow: var(--ls-ui-shadow);
}

.ls-cart-seller-panel__fields--dual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ls-cart-seller-panel__field label {
    display: block;
    font-size: var(--ls-ui-small);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.ls-cart-seller-panel__fields input {
    background: var(--ls-brand-white);
    color: var(--ls-brand-black) !important;
    border: 2px solid #e50914 !important;
    border-radius: var(--ls-ui-radius-sm);
    min-height: 44px;
    font-weight: 600;
}

.ls-cart-seller-panel__fields input::placeholder {
    color: var(--ls-brand-gray) !important;
    opacity: 1;
}

.ls-cart-seller-panel__fields input:focus {
    outline: none;
    border-color: #0a0a0a !important;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.18);
}

.ls-cart-seller-panel .ls-btn-outline {
    border-color: var(--ls-brand-black) !important;
    color: var(--ls-brand-black) !important;
    background: transparent !important;
}

.ls-cart-seller-panel .ls-btn-outline:hover {
    background: var(--ls-brand-black) !important;
    color: var(--ls-brand-white) !important;
}

.ls-cart-seller-panel__submit {
    width: 100%;
    background: var(--ls-brand-red) !important;
    color: var(--ls-brand-white) !important;
    border: 2px solid var(--ls-brand-black) !important;
}

.ls-cart-seller-panel__submit:hover {
    background: var(--ls-brand-black) !important;
    color: var(--ls-brand-white) !important;
}

.ls-cart-seller-panel__feedback.is-success {
    color: #15803d !important;
}

.ls-cart-seller-panel__feedback.is-error {
    color: #b91c1c !important;
}

.ls-cart-seller-hint__text {
    background: var(--ls-brand-red);
    border: 2px solid var(--ls-brand-black);
    border-radius: var(--ls-ui-radius-sm);
    padding: 0.75rem 1rem;
    font-weight: 600;
}

/* WooCommerce notices in purchase flow */
body.ls-cart-flow-page .woocommerce-message,
body.ls-cart-flow-page .woocommerce-info,
body.ls-cart-flow-page .woocommerce-error,
body.ls-cart-flow-page .woocommerce-notices-wrapper .woocommerce-message,
body.ls-cart-flow-page .woocommerce-notices-wrapper .woocommerce-info,
body.ls-cart-flow-page .woocommerce-notices-wrapper .woocommerce-error {
    background: var(--ls-brand-red) !important;
    border: 2px solid var(--ls-brand-black) !important;
    border-right: 2px solid var(--ls-brand-black) !important;
    border-radius: var(--ls-ui-radius-sm) !important;
    font-weight: 600;
}

body.ls-cart-flow-page .woocommerce-message a,
body.ls-cart-flow-page .woocommerce-info a,
body.ls-cart-flow-page .woocommerce-error a {
    color: var(--ls-brand-white) !important;
    text-decoration: underline;
}

.ls-checkout-page-header__icon {
    background: var(--ls-brand-red) !important;
    border: 2px solid var(--ls-brand-black);
}

.ls-checkout-progress__item.is-done .ls-checkout-progress__icon {
    background: var(--ls-brand-red) !important;
    border-color: var(--ls-brand-black) !important;
}

/* ── Buttons ── */
.ls-customer-hub .ls-btn,
.ls-customer-profile-wrap .ls-btn,
body.ls-cart-flow-page .ls-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.6rem 1.15rem;
    border-radius: var(--ls-ui-radius-sm);
    border: 2px solid transparent;
    font-family: inherit;
    font-size: var(--ls-ui-label);
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    box-sizing: border-box;
}

.ls-customer-hub .ls-btn-primary,
.ls-customer-profile-wrap .ls-btn-primary,
body.ls-cart-flow-page .ls-btn-primary {
    background: var(--ls-brand-red);
    color: var(--ls-brand-white);
    border-color: var(--ls-brand-red);
}

.ls-customer-hub .ls-btn-primary:hover,
.ls-customer-profile-wrap .ls-btn-primary:hover,
body.ls-cart-flow-page .ls-btn-primary:hover {
    background: var(--ls-brand-black);
    border-color: var(--ls-brand-black);
    color: var(--ls-brand-white);
}

.ls-customer-hub .ls-btn-outline,
.ls-customer-profile-wrap .ls-btn-outline,
body.ls-cart-flow-page .ls-btn-outline {
    background: var(--ls-brand-white);
    border-color: var(--ls-brand-black);
    color: var(--ls-brand-black);
}

.ls-customer-hub .ls-btn-outline:hover,
.ls-customer-profile-wrap .ls-btn-outline:hover,
body.ls-cart-flow-page .ls-btn-outline:hover {
    background: var(--ls-brand-black);
    border-color: var(--ls-brand-black);
    color: var(--ls-brand-white);
}

.ls-customer-hub .ls-btn-sm,
.ls-customer-profile-wrap .ls-btn-sm {
    min-height: 38px;
    padding: 0.45rem 0.9rem;
    font-size: var(--ls-ui-small);
}

.ls-customer-hub .ls-btn-block {
    width: 100%;
}

/* ── Profile shell ── */
.ls-customer-profile-wrap {
    max-width: var(--ls-shop-container, 1240px);
    margin-inline: auto;
    padding: clamp(1rem, 2.5vw, 2rem) clamp(0.75rem, 2vw, 1.25rem) 3rem;
}

.ls-customer-profile-page .ls-customer-hub {
    min-height: 55vh;
}

/* ── Hub layout ── */
.ls-customer-hub {
    gap: clamp(1rem, 2vw, 1.5rem);
}

.ls-customer-hub__sidebar,
.ls-hub-section,
.ls-cart-section,
.ls-cart-empty,
.ls-checkout-section,
.ls-checkout-order-card {
    border: 2px solid var(--ls-brand-black);
    border-radius: var(--ls-ui-radius-lg);
    box-shadow: var(--ls-ui-shadow);
    background: var(--ls-brand-white);
}

.ls-customer-hub__sidebar {
    background: var(--ls-brand-white);
}

.ls-customer-hub__name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ls-brand-black);
}

.ls-customer-hub__role,
.ls-customer-hub__phone {
    font-size: var(--ls-ui-small);
    color: var(--ls-ui-muted);
}

.ls-customer-hub__nav-link {
    font-size: var(--ls-ui-label);
    font-weight: 700;
    border-radius: var(--ls-ui-radius-sm);
    color: var(--ls-brand-black);
    border: 1px solid transparent;
}

.ls-customer-hub__nav-link:hover {
    background: var(--ls-ui-surface-muted);
    color: var(--ls-brand-red);
}

.ls-customer-hub__nav-link.is-active {
    background: var(--ls-brand-red);
    color: var(--ls-brand-white);
    border-color: var(--ls-brand-black);
}

.ls-customer-hub__nav-link i {
    color: inherit;
}

/* Section headers */
.ls-hub-section__title,
.ls-cart-section__title,
.ls-checkout-section__title,
.ls-cart-summary__head h2,
.ls-checkout-order-card__title {
    font-size: var(--ls-ui-title);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ls-brand-black);
    line-height: 1.35;
}

.ls-hub-section__desc,
.ls-cart-section__desc,
.ls-checkout-section__desc,
.ls-checkout-order-card__desc {
    font-size: var(--ls-ui-small);
    color: var(--ls-ui-muted);
}

.ls-hub-section__icon,
.ls-cart-section__icon,
.ls-checkout-section__icon {
    background: var(--ls-brand-red);
    border-radius: var(--ls-ui-radius-sm);
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
}

.ls-hub-section,
.ls-cart-section,
.ls-checkout-section {
    padding: clamp(1.25rem, 2.5vw, 1.65rem);
}

.ls-hub-section__head,
.ls-cart-section__head,
.ls-checkout-section__head {
    border-bottom: 2px solid var(--ls-ui-surface-muted);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}

/* Forms */
.ls-hub-form label {
    font-size: var(--ls-ui-small);
    font-weight: 700;
    color: var(--ls-brand-black);
}

.ls-hub-form input[type="text"],
.ls-hub-form input[type="email"],
.ls-hub-form input[type="tel"],
.ls-hub-form textarea,
.ls-hub-form select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 2px solid var(--ls-ui-border);
    border-radius: var(--ls-ui-radius-sm);
    font: inherit;
    font-size: var(--ls-ui-body);
    color: var(--ls-brand-black);
    background: var(--ls-brand-white);
}

.ls-hub-form input:focus,
.ls-hub-form textarea:focus,
.ls-hub-form select:focus {
    outline: none;
    border-color: var(--ls-brand-red);
    box-shadow: 0 0 0 3px var(--ls-ui-accent-soft);
}

.ls-hub-readonly {
    background: var(--ls-ui-surface-muted);
    color: var(--ls-brand-black);
    font-weight: 600;
    border: 2px solid var(--ls-ui-border);
    border-radius: var(--ls-ui-radius-sm);
    padding: 0.65rem 0.9rem;
}

/* Stats — horizontal row, red values */
.ls-customer-stats-grid,
.ls-customer-stats-grid--horizontal {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.ls-customer-stat {
    background: var(--ls-brand-white);
    border: 2px solid var(--ls-brand-black);
    border-radius: var(--ls-ui-radius-sm);
    padding: 1rem 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
}

.ls-customer-stat span {
    font-size: var(--ls-ui-small);
    color: var(--ls-brand-gray);
    font-weight: 600;
}

.ls-customer-stat__value,
.ls-customer-stat strong {
    font-size: 1.25rem;
    font-weight: 800;
    color: #e50914 !important;
}

.ls-customer-stat--incomplete .ls-customer-stat__value {
    color: #e50914 !important;
}

.ls-customer-quick-link {
    border: 2px solid var(--ls-brand-black);
    border-radius: var(--ls-ui-radius-sm);
    color: var(--ls-brand-black);
    font-weight: 700;
    background: var(--ls-brand-white);
}

.ls-customer-quick-link:hover {
    background: var(--ls-brand-red);
    border-color: var(--ls-brand-red);
    color: var(--ls-brand-white);
}

.ls-customer-quick-link i {
    color: var(--ls-brand-red);
}

.ls-customer-quick-link:hover i {
    color: var(--ls-brand-white);
}

/* Tables */
.ls-hub-orders__table th {
    font-weight: 800;
    color: var(--ls-brand-black);
    background: var(--ls-ui-surface-muted);
    border-bottom: 2px solid var(--ls-brand-black);
}

.ls-hub-orders__view {
    color: var(--ls-brand-red);
    font-weight: 700;
}

/* Cart flow */
body.ls-cart-flow-page .woocommerce.ls-cart-page {
    background: var(--ls-brand-white);
    border: 2px solid var(--ls-brand-black);
}

.ls-cart-summary {
    border: 2px solid var(--ls-brand-black);
    border-radius: var(--ls-ui-radius-md);
    background: var(--ls-brand-white);
}

.ls-storefront.woocommerce-cart .ls-cart-layout--flow table.shop_table {
    border: 2px solid var(--ls-brand-black);
}

.ls-storefront.woocommerce-cart .ls-cart-layout--flow table.shop_table th {
    font-weight: 800;
    color: var(--ls-brand-black);
    background: var(--ls-ui-surface-muted);
    border-bottom: 2px solid var(--ls-brand-black);
}

.ls-storefront.woocommerce-cart .ls-cart-layout--flow .product-name a {
    color: var(--ls-brand-black);
    font-weight: 700;
}

.ls-storefront.woocommerce-cart .ls-cart-layout--flow .product-name a:hover {
    color: var(--ls-brand-red);
}

.ls-storefront.woocommerce-cart .ls-cart-layout--flow .wc-proceed-to-checkout .checkout-button,
.ls-storefront.woocommerce-cart .ls-cart-layout--flow .wc-proceed-to-checkout .ls-checkout-button {
    background: var(--ls-brand-red) !important;
    border: 2px solid var(--ls-brand-black) !important;
    border-radius: var(--ls-ui-radius-sm) !important;
    font-family: var(--ls-ui-font) !important;
    font-weight: 800 !important;
    color: var(--ls-brand-white) !important;
}

.ls-storefront.woocommerce-cart .ls-cart-layout--flow .wc-proceed-to-checkout .checkout-button:hover,
.ls-storefront.woocommerce-cart .ls-cart-layout--flow .wc-proceed-to-checkout .ls-checkout-button:hover {
    background: var(--ls-brand-black) !important;
}

.ls-checkout-button--locked {
    background: var(--ls-brand-black) !important;
    opacity: 0.85;
}

/* Checkout progress */
.ls-checkout-progress__item.is-current .ls-checkout-progress__step,
.ls-checkout-progress__item.is-current .ls-checkout-progress__icon {
    background: var(--ls-brand-red);
    border-color: var(--ls-brand-black);
}

.ls-checkout-progress__item.is-done .ls-checkout-progress__icon {
    background: var(--ls-brand-black);
    color: var(--ls-brand-white);
    border-color: var(--ls-brand-black);
}

.ls-checkout-progress__label {
    font-weight: 700;
    color: var(--ls-brand-black);
}

/* Checkout profile summary */
.ls-checkout-profile-card {
    background: var(--ls-ui-surface-muted);
    border: 2px solid var(--ls-brand-black);
    border-radius: var(--ls-ui-radius-md);
    padding: 1rem 1.15rem;
}

.ls-checkout-profile-card__list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.ls-checkout-profile-card__list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: var(--ls-ui-small);
}

.ls-checkout-profile-card__list span {
    color: var(--ls-ui-muted);
    font-weight: 600;
}

.ls-checkout-profile-card__list strong {
    color: var(--ls-brand-black);
    font-weight: 800;
}

.ls-checkout-hidden-fields {
    display: none !important;
}

.ls-checkout-sidebar-note {
    background: var(--ls-brand-black);
    border: 2px solid var(--ls-brand-black);
    border-radius: var(--ls-ui-radius-sm);
    padding: 0.85rem 1rem;
    margin-top: 1rem;
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    color: var(--ls-brand-white) !important;
}

.ls-checkout-sidebar-note i {
    color: var(--ls-brand-white) !important;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.ls-checkout-sidebar-note p {
    margin: 0;
    font-size: var(--ls-ui-small);
    font-weight: 600;
    color: var(--ls-brand-white) !important;
}

.ls-checkout-main__deal {
    margin-top: 1rem;
}

.ls-checkout-main__deal .ls-cart-seller-panel {
    width: 100%;
}

.ls-checkout-layout__sidebar--summary {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ls-checkout-form #place_order {
    background: var(--ls-brand-red) !important;
    border: 2px solid var(--ls-brand-black) !important;
    color: var(--ls-brand-white) !important;
    font-weight: 800 !important;
    border-radius: var(--ls-ui-radius-sm) !important;
}

.ls-checkout-form #place_order:hover {
    background: var(--ls-brand-black) !important;
}

.ls-checkout-form .order-total .amount {
    color: var(--ls-brand-red) !important;
    font-weight: 800;
}

.ls-checkout-order-card {
    padding: 1.25rem;
}

.ls-cart-empty__title {
    font-weight: 800;
    color: var(--ls-brand-black);
}

.ls-checkout-page-header h1,
.ls-cart-page-header h1 {
    font-weight: 900;
    color: var(--ls-brand-black);
    letter-spacing: -0.03em;
}

.ls-status-pill {
    background: var(--ls-brand-red);
    color: var(--ls-brand-white);
    font-weight: 700;
}

@media (max-width: 900px) {
    .ls-customer-hub__nav ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ls-cart-seller-panel__fields--dual {
        grid-template-columns: 1fr;
    }

    .ls-checkout-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .ls-customer-quick-links {
        grid-template-columns: 1fr;
    }
}

/* ── Full red section headers (#e50914) + white text/icons ── */
.ls-hub-section,
.ls-cart-section,
.ls-checkout-section,
.ls-cart-summary,
.ls-checkout-order-card {
    padding: 0 !important;
    overflow: hidden;
}

.ls-hub-section__head,
.ls-cart-section__head,
.ls-checkout-section__head,
.ls-cart-summary__head,
.ls-checkout-order-card__head {
    background: #e50914 !important;
    color: #fff !important;
    padding: 1.15rem 1.5rem !important;
    margin: 0 !important;
    border-bottom: 2px solid #0a0a0a !important;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.ls-hub-section__head *,
.ls-cart-section__head *,
.ls-checkout-section__head *,
.ls-cart-summary__head *,
.ls-checkout-order-card__head * {
    color: #fff !important;
}

.ls-hub-section__icon,
.ls-cart-section__icon,
.ls-checkout-section__icon {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
    border-radius: var(--ls-ui-radius-sm);
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.ls-hub-section__icon i,
.ls-cart-section__icon i,
.ls-checkout-section__icon i {
    color: #fff !important;
}

.ls-hub-section__title,
.ls-cart-section__title,
.ls-checkout-section__title,
.ls-cart-summary__head h2,
.ls-checkout-order-card__title {
    margin: 0 !important;
    font-size: var(--ls-ui-title) !important;
    font-weight: 800 !important;
    color: #fff !important;
}

.ls-hub-section__desc,
.ls-cart-section__desc,
.ls-checkout-section__desc,
.ls-cart-summary__head p,
.ls-checkout-order-card__desc {
    margin: 0.25rem 0 0 !important;
    font-size: var(--ls-ui-small) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

.ls-hub-section__body,
.ls-hub-section > :not(.ls-hub-section__head),
.ls-cart-section > :not(.ls-cart-section__head),
.ls-checkout-section > :not(.ls-checkout-section__head) {
    padding: 1.25rem 1.5rem;
}

.ls-cart-summary .cart_totals {
    padding: 0 !important;
    margin: 0 !important;
}

.ls-cart-summary .ls-cart-totals-list,
.ls-cart-summary .wc-proceed-to-checkout,
.ls-cart-summary .ls-cart-seller-hint {
    padding: 1rem 1.25rem !important;
}

.ls-checkout-order-card {
    padding: 0 !important;
}

.ls-checkout-order-card #order_review,
.ls-checkout-order-card .woocommerce-checkout-payment {
    padding: 1rem 1.25rem !important;
}

.ls-checkout-deal-bar--prominent {
    margin-bottom: 1.25rem;
}

.ls-hub-field-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: var(--ls-ui-small);
    color: var(--ls-ui-muted);
    line-height: 1.5;
}

.ls-hub-form select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 2px solid var(--ls-ui-border);
    border-radius: var(--ls-ui-radius-sm);
    font: inherit;
    font-size: var(--ls-ui-body);
    color: var(--ls-brand-black);
    background: var(--ls-brand-white);
    min-height: 44px;
}

.ls-hub-form select:focus {
    outline: none;
    border-color: var(--ls-brand-red);
    box-shadow: 0 0 0 3px var(--ls-ui-accent-soft);
}

/* Override auth-checkout gray titles on cart flow */
body.ls-cart-flow-page .ls-cart-section__title,
body.ls-cart-flow-page .ls-cart-section__desc,
body.ls-cart-flow-page .ls-cart-summary__head h2,
body.ls-cart-flow-page .ls-cart-summary__head p,
body.ls-customer-hub-active .ls-hub-section__title,
body.ls-customer-hub-active .ls-hub-section__desc {
    color: #fff !important;
}

/* Checkout: summary horizontal rows in main column */
.ls-checkout-order-card--horizontal {
    margin-top: 1.25rem;
}

.ls-checkout-order-card--horizontal .woocommerce-checkout-review-order-table thead {
    display: none;
}

.ls-checkout-order-card--horizontal .woocommerce-checkout-review-order-table tbody tr,
.ls-checkout-order-card--horizontal .woocommerce-checkout-review-order-table tfoot tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.ls-checkout-order-card--horizontal .woocommerce-checkout-review-order-table tbody tr:last-child,
.ls-checkout-order-card--horizontal .woocommerce-checkout-review-order-table tfoot tr:last-child {
    border-bottom: none;
}

.ls-checkout-order-card--horizontal .woocommerce-checkout-review-order-table td,
.ls-checkout-order-card--horizontal .woocommerce-checkout-review-order-table th {
    display: block;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.ls-checkout-order-card--horizontal .woocommerce-checkout-review-order-table tfoot th {
    font-weight: 700;
    color: var(--ls-brand-black);
}

.ls-checkout-order-card--horizontal .woocommerce-checkout-review-order-table .order-total .amount {
    color: #e50914 !important;
    font-weight: 800;
}


.ls-cart-layout__sidebar--stacked .ls-cart-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Cart summary — horizontal total rows */
.ls-cart-summary--horizontal .ls-cart-totals-item {
    flex-direction: row;
    align-items: center;
}

.ls-cart-summary--horizontal .ls-cart-totals-item__label {
    text-align: right;
}

.ls-cart-summary--horizontal .ls-cart-totals-item__value {
    text-align: left;
    color: #e50914;
    font-weight: 800;
}

.ls-cart-summary--horizontal .ls-cart-totals-item--total .ls-cart-totals-item__label,
.ls-cart-summary--horizontal .ls-cart-totals-item--total .ls-cart-totals-item__value {
    font-size: 1.05rem;
}

@media (max-width: 640px) {
    .ls-customer-stats-grid--horizontal {
        grid-template-columns: 1fr;
    }
}

/* Cart — full-width deal panel + summary below products */
.ls-cart-fullwidth {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.25rem;
}

.ls-cart-fullwidth .ls-cart-seller-panel,
.ls-cart-summary--fullwidth {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.ls-cart-layout--flow {
    grid-template-columns: 1fr !important;
}

.ls-checkout-section--delivery {
    margin-top: 1rem;
}

.ls-checkout-profile-card__empty {
    margin: 0 0 1rem;
    color: var(--ls-brand-gray);
    font-size: var(--ls-ui-small);
}

.ls-checkout-section--delivery .ls-checkout-profile-card__list li {
    justify-content: flex-start;
}

.ls-checkout-section--delivery .ls-checkout-profile-card__list li strong {
    text-align: right;
    font-weight: 700;
}

/* ── Representative hub (same theme as customer profile) ── */
.ls-rep-hub .ls-customer-hub__role {
    color: var(--ls-ui-muted);
    font-weight: 600;
}

.ls-customer-hub__code {
    margin: 0.45rem 0 0;
    font-size: var(--ls-ui-small);
    color: var(--ls-ui-muted);
    line-height: 1.5;
}

.ls-customer-hub__code span {
    display: block;
    font-weight: 600;
}

.ls-customer-hub__code code {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.35rem 0.65rem;
    background: var(--ls-ui-surface-muted);
    border: 2px solid var(--ls-brand-black);
    border-radius: var(--ls-ui-radius-sm);
    font-weight: 800;
    color: var(--ls-brand-red);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.ls-customer-stats-grid--rep {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.ls-customer-stats-grid--compact {
    margin-bottom: 1.25rem;
}

.ls-rep-hub .ls-hub-section__head {
    flex-wrap: wrap;
    align-items: center;
}

.ls-rep-hub .ls-hub-section__head > div {
    flex: 1;
    min-width: 0;
}

.ls-rep-hub .ls-hub-section__head > .ls-btn {
    margin-inline-start: auto;
    flex-shrink: 0;
    align-self: center;
}

.ls-rep-hub .ls-hub-section__head .ls-btn-primary {
    background: var(--ls-brand-white) !important;
    color: var(--ls-brand-red) !important;
    border: 2px solid var(--ls-brand-black) !important;
}

.ls-rep-hub .ls-hub-section__head .ls-btn-primary:hover {
    background: var(--ls-brand-black) !important;
    color: var(--ls-brand-white) !important;
}

.ls-rep-hub .ls-hub-section__body h4,
.ls-rep-recent h4,
.ls-rep-discount-panel h4,
.ls-rep-form-panel h4 {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ls-brand-black);
}

.ls-rep-form-panel {
    background: var(--ls-ui-surface-muted);
    border: 2px solid var(--ls-brand-black);
    border-radius: var(--ls-ui-radius-md);
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
}

.ls-rep-form-panel--inline {
    margin-bottom: 1rem;
}

.ls-rep-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.65rem 1rem;
}

.ls-rep-input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
}

.ls-rep-input-group input {
    flex: 1;
    min-width: 140px;
}

.ls-rep-service-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--ls-ui-border);
}

.ls-rep-form-message {
    padding: 0.65rem 0.85rem;
    border-radius: var(--ls-ui-radius-sm);
    margin: 0.75rem 0 0;
    font-size: var(--ls-ui-small);
    font-weight: 600;
}

.ls-rep-form-message.is-success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #86efac;
}

.ls-rep-form-message.is-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.ls-rep-store-link {
    margin: 0 0 1.25rem;
    padding: 1rem 1.15rem;
    background: var(--ls-ui-surface-muted);
    border: 2px solid var(--ls-brand-black);
    border-radius: var(--ls-ui-radius-sm);
}

.ls-rep-store-link h4 {
    margin: 0 0 0.5rem;
}

.ls-rep-store-link a {
    word-break: break-all;
    color: var(--ls-brand-red);
    font-weight: 700;
}

.ls-rep-recent {
    margin-top: 1.25rem;
}

.ls-rep-recent + .ls-rep-recent {
    margin-top: 1.5rem;
}

.ls-rep-discount-panel {
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    background: var(--ls-brand-white);
    border: 2px solid var(--ls-brand-black);
    border-radius: var(--ls-ui-radius-md);
}

.ls-rep-discount-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: stretch;
}

.ls-rep-discount-form input[type="number"] {
    flex: 1;
    min-width: 140px;
    padding: 0.7rem 0.9rem;
    border: 2px solid var(--ls-ui-border);
    border-radius: var(--ls-ui-radius-sm);
    font: inherit;
    font-size: var(--ls-ui-body);
    color: var(--ls-brand-black);
    background: var(--ls-brand-white);
}

.ls-rep-discount-form input[type="number"]:focus {
    outline: none;
    border-color: var(--ls-brand-red);
    box-shadow: 0 0 0 3px var(--ls-ui-accent-soft);
}

.ls-hub-empty {
    padding: 1.25rem;
    text-align: center;
    color: var(--ls-ui-muted);
    background: var(--ls-ui-surface-muted);
    border: 2px dashed var(--ls-ui-border);
    border-radius: var(--ls-ui-radius-sm);
    margin: 0;
}

.ls-hub-empty p {
    margin: 0;
    font-size: var(--ls-ui-body);
    font-weight: 600;
}

.ls-hub-notice {
    padding: 0.75rem 1rem;
    border-radius: var(--ls-ui-radius-sm);
    margin-bottom: 1rem;
    font-size: var(--ls-ui-small);
    font-weight: 600;
    background: var(--ls-ui-surface-muted);
    color: var(--ls-brand-black);
    border: 2px solid var(--ls-ui-border);
}

.ls-hub-notice--success {
    background: #ecfdf5;
    color: #166534;
    border-color: #86efac;
}

.ls-hub-notice--info {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.ls-hub-notice--info a {
    color: #1e40af;
    font-weight: 700;
    margin-inline-start: 0.35rem;
}

.ls-rep-hub .ls-hub-orders__table code {
    background: var(--ls-ui-surface-muted);
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    font-weight: 700;
    color: var(--ls-brand-red);
}

@media (max-width: 640px) {
    .ls-customer-stats-grid--rep {
        grid-template-columns: 1fr 1fr;
    }

    .ls-rep-hub .ls-hub-section__head > .ls-btn {
        width: 100%;
        margin-top: 0.65rem;
        margin-inline-start: 0;
    }
}

@media (max-width: 420px) {
    .ls-customer-stats-grid--rep {
        grid-template-columns: 1fr;
    }
}

/* Lead Protection pills (rep hub) */
.ls-lead-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: var(--ls-ui-small);
    font-weight: 700;
    white-space: nowrap;
}

.ls-lead-pill--active {
    background: var(--ls-brand-red);
    color: var(--ls-brand-white);
    border: 1px solid var(--ls-brand-black);
}

.ls-lead-pill--free {
    background: var(--ls-ui-surface-muted);
    color: var(--ls-brand-black);
    border: 1px solid var(--ls-ui-border);
}
