/* Customer design tokens and controls shared with the approved homepage.
   Loaded only by customer layouts; operational/admin screens retain app.css. */
body.customer-theme {
    --brand-primary: #00a651;
    --brand-primary-dark: #008744;
    --brand-primary-light: #e8f8ef;
    --brand-text: #3b4251;
    --brand-text-muted: #56616f;
    --brand-navy: #3b4251;
    --brand-footer: #3b4251;
    --brand-surface: #f8f9fa;
    --brand-border: #e5e7eb;
    --brand-white: #fff;
    --ink: var(--brand-text);
    --muted: var(--brand-text-muted);
    --cream: var(--brand-surface);
    --paper: var(--brand-white);
    --line: var(--brand-border);
    --green: var(--brand-primary);
    --green-hover: var(--brand-primary-dark);
    --forest: var(--brand-primary-dark);
    --lime: var(--brand-primary-light);
    --font-sans: 'DM Sans', system-ui, sans-serif;
    --font-heading: 'Manrope', system-ui, sans-serif;
    --font: var(--font-sans);
    --heading: var(--font-heading);
    --radius: 10px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow: 0 2px 6px rgb(59 66 81 / 3%);
    --shadow-md: 0 12px 32px rgb(59 66 81 / 8%);
    --shadow-lg: 0 20px 50px rgb(59 66 81 / 12%);
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 16px/1.6 var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

body.customer-theme :where(button, input, select, textarea) {
    font-family: var(--font-sans);
}

body.customer-theme :where(h1, h2, h3, h4) {
    color: var(--ink);
    font-family: var(--font-heading);
    font-weight: 700;
}

body.customer-theme h1 {
    font-size: clamp(28px, 3.1vw, 42px);
    line-height: 1.15;
    letter-spacing: -1.2px;
    font-weight: 750;
}

body.customer-theme :where(h2, h3, h4) {
    letter-spacing: -.35px;
    line-height: 1.3;
}

body.customer-theme :where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid var(--brand-primary-dark);
    outline-offset: 3px;
}

body.customer-theme :where(a, button, summary) {
    -webkit-tap-highlight-color: transparent;
}

body.customer-theme a {
    color: #007a3d;
}

body.customer-theme :where(main, .account-page, .seller-fulfilment-layout__main) a:not([class]) {
    color: #007a3d;
    text-underline-offset: 3px;
}

body.customer-theme :where(main, .account-page, .seller-fulfilment-layout__main) a:not([class]):hover {
    text-decoration: underline;
}

body.customer-theme .btn {
    min-height: 46px;
    border-radius: var(--radius);
    padding: 11px 20px;
    font: 650 14px/1.4 var(--font-sans);
    text-transform: none;
    letter-spacing: 0;
    text-align: center;
    white-space: normal;
}

body.customer-theme .btn-sm {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 14px;
}

body.customer-theme .btn-lg {
    min-height: 50px;
    padding: 13px 24px;
    font-size: 15px;
}

body.customer-theme .btn-primary {
    background: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    color: #fff;
    box-shadow: none;
}

body.customer-theme .btn-primary:hover {
    background: #00753b;
    border-color: #00753b;
    color: #fff;
}

body.customer-theme .btn-outline:not(.is-danger) {
    color: var(--brand-primary-dark);
    background: var(--paper);
    border-color: var(--brand-primary-dark);
}

body.customer-theme .btn-outline:not(.is-danger):hover {
    background: var(--brand-primary-light);
    color: #007a3d;
}

body.customer-theme .btn-continue {
    border-width: 1px;
    color: var(--ink);
    border-color: #bdc3ca;
    background: var(--paper);
}

body.customer-theme .btn-continue:hover,
body.customer-theme .btn-secondary:hover {
    color: var(--ink);
    background: var(--cream);
    border-color: #9ca3af;
}

body.customer-theme button:disabled,
body.customer-theme input:disabled,
body.customer-theme select:disabled {
    cursor: not-allowed;
}

body.customer-theme .btn:disabled {
    opacity: .5;
}

body.customer-theme small,
body.customer-theme .form-help {
    font-size: 14px;
    line-height: 1.5;
}

body.customer-theme .form-label {
    margin-bottom: 7px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 650;
}

body.customer-theme .form-input {
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #d7dbe0;
    border-radius: var(--radius);
    background-color: var(--paper);
    color: var(--ink);
    font: 400 16px/1.5 var(--font-sans);
    transition: border-color .15s ease, box-shadow .15s ease;
}

body.customer-theme .form-input::placeholder {
    color: var(--muted);
    opacity: 1;
}

body.customer-theme .form-input:focus {
    border-color: var(--brand-primary-dark);
    box-shadow: 0 0 0 3px rgb(0 166 81 / 10%);
    outline: none;
}

body.customer-theme .form-input.is-invalid,
body.customer-theme .form-input[aria-invalid="true"] {
    border-color: #b91c1c;
}

body.customer-theme .form-input.is-invalid:focus,
body.customer-theme .form-input[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 3px rgb(185 28 28 / 10%);
}

body.customer-theme .form-input:disabled {
    background: var(--cream);
    color: var(--muted);
}

body.customer-theme textarea.form-input {
    min-height: 124px;
    resize: vertical;
}

body.customer-theme :where(input[type="checkbox"], input[type="radio"]) {
    accent-color: var(--brand-primary-dark);
}

body.customer-theme .card {
    border-radius: var(--radius-lg);
    border-color: var(--line);
    box-shadow: var(--shadow);
}

body.customer-theme .alert {
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    padding: 15px 18px;
}

body.customer-theme .status-pill {
    padding: 5px 10px;
    font-size: 14px;
    line-height: 1.5;
    font-family: var(--font-sans);
    font-weight: 650;
    letter-spacing: 0;
}

body.customer-theme .table-scroll {
    border: 1px solid var(--line);
    border-radius: 14px;
}

body.customer-theme .data-table {
    box-shadow: none;
    font-size: 14px;
}

body.customer-theme .data-table th {
    background: var(--cream);
    color: var(--muted);
    font: 650 14px/1.5 var(--font-sans);
    text-transform: none;
    letter-spacing: .1px;
}

body.customer-theme .data-table :where(th, td) {
    padding: 16px;
}

body.customer-theme .pagination-bar-link {
    min-height: 44px;
    min-width: 44px;
    border-radius: 10px;
}

body.customer-theme .pagination-bar-link.is-current {
    background: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    color: #fff;
}

body.customer-theme [hidden] {
    display: none !important;
}

@media (max-width: 767px) {
    body.customer-theme h1 {
        letter-spacing: -.8px;
    }

    body.customer-theme .btn-sm {
        min-height: 44px;
    }

    body.customer-theme .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.customer-theme .data-table :where(th, td) {
        padding: 12px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.customer-theme .form-input,
    body.customer-theme .btn {
        transition: none;
    }
}
