/* EBADI 3.19.15 — unified LIGHT customer UI.
   Last customer-app style: neutral ivory/white surfaces, warm-gold actions,
   readable slate text. Scoped to the chosen LIGHT theme; WordPress admin,
   purposeful image artwork and the optional dark mode are not modified. */
html[data-theme="light"] body:not(.wp-admin) {
  --eb-unified-surface: #fff;
  --eb-unified-soft: #f7f8f9;
  --eb-unified-warm: #fff7eb;
  --eb-unified-warm-border: #e8d3b0;
  --eb-unified-line: #e1e5e8;
  --eb-unified-ink: #222b32;
  --eb-unified-muted: #65727c;
  --eb-unified-gold: #a66b24;
  --eb-unified-green: #287746;
  color-scheme: light;
}

/* Previously dark notice panels appear on branches, inspections, tow,
   wallet and feedback routes. Feedback must never be white on near-black. */
html[data-theme="light"] body:not(.wp-admin) :is(.feature-notice,.inspection-coming-note,.wallet-settlement__empty,.tow-request-notice,.account-success) {
  border: 1px solid var(--eb-unified-warm-border) !important;
  border-radius: 13px;
  background: linear-gradient(135deg,#fff8ec,#fffcf7) !important;
  color: #79521d !important;
  box-shadow: 0 4px 12px rgba(91,69,37,.06) !important;
}
html[data-theme="light"] body:not(.wp-admin) :is(.feature-notice,.account-success,.inspection-coming-note) :is(b,strong,small,p,span) {color:inherit!important}
html[data-theme="light"] body:not(.wp-admin) :is(.account-page-header>a,.branches-head>a,.vehicles-header>a,.repairs-page-header>a,.reminders-header>a,.vehicle-editor-back,.repair-wizard-header>a,.inspection-page-head>a:first-child,.inquiries-page-header>a) {
  border: 1px solid var(--eb-unified-line) !important;
  background: #fff !important;
  color: var(--eb-unified-ink) !important;
}

/* BRANCH DIRECTORY, BRANCH DETAIL AND RATING FORMS */
html[data-theme="light"] body :is(.branches-app,.branch-detail-app) :is(.branch-card,.branch-hero,.branch-info-panel,.branch-gallery,.branch-reviews,.branch-review-list>article) {
  border-color: var(--eb-unified-line) !important;
  background: #fff !important;
  color: var(--eb-unified-ink) !important;
  box-shadow: 0 6px 18px rgba(34,45,54,.065) !important;
}
html[data-theme="light"] body :is(.branches-app,.branch-detail-app) .branch-hero {
  border-color:#e6cfaa!important;
  background: linear-gradient(145deg,#fffaf2,#fff 66%,#faf7f1) !important;
}
html[data-theme="light"] body :is(.branch-card__image,.branch-hero__image):not(:has(img)) {background:#f7f1e8!important;color:#a16e28!important}
html[data-theme="light"] body :is(.branch-card__image>small,.branch-nearest-badge) {border-color:#e8d1aa!important;background:rgba(255,250,241,.96)!important;color:#805618!important}
html[data-theme="light"] body :is(.branch-card h2,.branch-hero h2,.branch-info-panel h2,.branch-gallery h2,.branch-reviews h2,.branch-review-list article strong,.branch-facts strong,.branch-facts a,.branch-rating>strong) {color:var(--eb-unified-ink)!important}
html[data-theme="light"] body :is(.branch-card p,.branch-description,.branch-facts>div>span,.branch-reviews>header p,.branch-review-list article p,.branch-review-list article small,.branch-rating>small) {color:var(--eb-unified-muted)!important}
html[data-theme="light"] body .branch-facts>div {border:1px solid #edf0f1;background:var(--eb-unified-soft)!important}
html[data-theme="light"] body .branch-card footer {border-top-color:var(--eb-unified-line)!important}
html[data-theme="light"] body .branch-rating>span {color:#bb852f!important}
html[data-theme="light"] body :is(.branch-facts .branch-phone-action,.branch-map-actions a,.branch-review-form>a.feature-primary) {
  border:1px solid #e6cc9f!important;
  background:linear-gradient(145deg,#fff5e5,#fff9f0)!important;
  color:#815416!important;
  box-shadow:0 3px 9px rgba(131,88,27,.07)!important;
}
html[data-theme="light"] body .branch-facts .branch-phone-action :is(strong,small,svg) {color:inherit!important;stroke:currentColor!important}
html[data-theme="light"] body :is(.branch-review-form fieldset,.branch-rating-input span) {border-color:var(--eb-unified-line)!important;background:#fff!important;color:var(--eb-unified-muted)!important}
html[data-theme="light"] body .branch-rating-input label:has(input:checked) span {border-color:#d9b16c!important;background:#fff2d9!important;color:#8d5817!important}
html[data-theme="light"] body .branch-review-form :is(input,textarea,select) {border-color:var(--eb-unified-line)!important;background:#fff!important;color:var(--eb-unified-ink)!important}

/* WALLET: the screenshot's six near-black cards and invisible balance.
   App-pages-v2 previously forced white text inside a now-light balance card. */
html[data-theme="light"] body.ebadi-wallet-page .wallet-balance {
  border:1px solid #dec39c!important;
  background:radial-gradient(circle at 9% 11%,#faecd6 0,transparent 29%),linear-gradient(135deg,#fffaf0,#fff 58%,#fff9ef)!important;
  color:var(--eb-unified-ink)!important;
}
html[data-theme="light"] body.ebadi-wallet-page .wallet-balance__copy>small {color:var(--eb-unified-muted)!important}
html[data-theme="light"] body.ebadi-wallet-page .wallet-balance__amount :is(strong,bdi) {color:#283139!important;text-shadow:none!important;opacity:1!important}
html[data-theme="light"] body.ebadi-wallet-page .wallet-balance__amount em {color:#8e5919!important}
html[data-theme="light"] body.ebadi-wallet-page .wallet-balance>p {border-top-color:#eadfce!important;color:#6a757c!important}
html[data-theme="light"] body.ebadi-wallet-page .wallet-balance__status {border-color:#c8e3d1!important;background:#edf8f1!important;color:var(--eb-unified-green)!important}
html[data-theme="light"] body.ebadi-wallet-page .wallet-balance__icon {border-color:#e6d0aa!important;background:#fff0d6!important;color:#292e33!important}
html[data-theme="light"] body.ebadi-wallet-page .wallet-balance__icon svg {stroke:#292e33!important}
html[data-theme="light"] body.ebadi-wallet-page .wallet-overview article {
  border:1px solid var(--eb-unified-line)!important;
  background:linear-gradient(155deg,#fff,#f8fafb)!important;
  color:var(--eb-unified-ink)!important;
  box-shadow:0 5px 15px rgba(35,47,57,.07)!important;
}
html[data-theme="light"] body.ebadi-wallet-page .wallet-overview :is(strong,b) {color:var(--eb-unified-ink)!important}
html[data-theme="light"] body.ebadi-wallet-page .wallet-overview :is(small,em) {color:var(--eb-unified-muted)!important}
html[data-theme="light"] body.ebadi-wallet-page .wallet-overview .is-credit>span {background:#e5f5eb!important;color:#278451!important}
html[data-theme="light"] body.ebadi-wallet-page .wallet-overview .is-debit>span {background:#fff0ed!important;color:#b85450!important}
html[data-theme="light"] body.ebadi-wallet-page .wallet-overview .is-cashback>span {background:#fff3df!important;color:#a66b24!important}
html[data-theme="light"] body.ebadi-wallet-page .wallet-quick-actions button {
  border:1px solid #e6ddce!important;
  background:linear-gradient(140deg,#fffaf1,#fff)!important;
  color:var(--eb-unified-ink)!important;
  box-shadow:0 4px 14px rgba(93,67,34,.07)!important;
}
html[data-theme="light"] body.ebadi-wallet-page .wallet-quick-actions button>span {border-color:#e8cb9b!important;background:#fff0d8!important;color:#946018!important}
html[data-theme="light"] body.ebadi-wallet-page .wallet-quick-actions strong {color:var(--eb-unified-ink)!important}
html[data-theme="light"] body.ebadi-wallet-page .wallet-quick-actions small {color:var(--eb-unified-muted)!important}
html[data-theme="light"] body.ebadi-wallet-page :is(.wallet-settlement,.wallet-settlement-history,.wallet-topup,.wallet-history) {
  border:1px solid var(--eb-unified-line)!important;
  background:#fff!important;
  color:var(--eb-unified-ink)!important;
  box-shadow:0 7px 19px rgba(40,50,60,.065)!important;
}
html[data-theme="light"] body.ebadi-wallet-page :is(.wallet-settlement,.wallet-settlement-history,.wallet-topup,.wallet-history) :is(h2,strong) {color:var(--eb-unified-ink)!important}
html[data-theme="light"] body.ebadi-wallet-page :is(.wallet-settlement,.wallet-settlement-history,.wallet-topup,.wallet-history) :is(p,small,label) {color:var(--eb-unified-muted)!important}
html[data-theme="light"] body.ebadi-wallet-page :is(.wallet-settlement__step,.wallet-settlement__saved,.wallet-settlement-history article,.wallet-topup form) {
  border:1px solid var(--eb-unified-line)!important;
  background:#f8fafb!important;
  color:var(--eb-unified-ink)!important;
}
html[data-theme="light"] body.ebadi-wallet-page :is(.wallet-settlement__iban,.wallet-settlement__form label>div,.wallet-topup label>div,.wallet-settlement__form input) {border-color:#dce3e8!important;background:#fff!important;color:var(--eb-unified-ink)!important}
html[data-theme="light"] body.ebadi-wallet-page :is(.wallet-settlement__edit summary,.wallet-settlement__saved button) {color:var(--eb-unified-gold)!important}
html[data-theme="light"] body.ebadi-wallet-page .wallet-transaction__amount {color:#277748!important}
html[data-theme="light"] body.ebadi-wallet-page .is-withdrawal .wallet-transaction__amount {color:#a4514a!important}
html[data-theme="light"] body.ebadi-wallet-result-page .wallet-result-details {background:#fff!important}

/* CUSTOMER CLUB, CREDIT, REWARDS / FINANCIAL HISTORY */
html[data-theme="light"] body.customer-club-page :is(.club-score-card,.club-earn,.club-history,.club-spend,.club-rewards-button) {box-shadow:0 7px 19px rgba(42,51,59,.07)!important}
html[data-theme="light"] body.customer-club-page :is(.club-history,.club-history__list article,.club-benefits span) {border-color:var(--eb-unified-line)!important;background:#fff!important;color:var(--eb-unified-ink)!important}
html[data-theme="light"] body.customer-club-page .club-history__list article>span {background:#e7f7eb!important;color:#34794c!important}
html[data-theme="light"] body.customer-club-page .club-level-medal>span {background:radial-gradient(circle,#fff3df,#fbebce)!important;border-color:#e8ce9e!important}
html[data-theme="light"] body.customer-club-page .club-progress>div {background:#ecf0f2!important}
html[data-theme="light"] body :is(.financial-summary article,.financial-transactions,.financial-row,.financial-activity-log,.financial-table-head,.financial-toolbar label) {border-color:var(--eb-unified-line)!important;background:#fff!important;color:var(--eb-unified-ink)!important}
html[data-theme="light"] body :is(.financial-tabs,.financial-actions :is(button,a)) {border-color:#e2e6e9!important;background:#fff!important;color:var(--eb-unified-ink)!important}
html[data-theme="light"] body .financial-tabs :is(button,a).is-active {border-color:#e6c894!important;background:#fff3df!important;color:#925d16!important}
html[data-theme="light"] body :is(.financial-row em,.financial-summary__total) {border-color:#d2e8da!important;background:#f0f9f2!important;color:#2c7749!important}

/* NOTIFICATIONS + DRAWER + MODALS. Preserve readable unread highlights. */
html[data-theme="light"] body.ebadi-notifications-page :is(.notifications-header,.notifications-overview>div,.notifications-toolbar,.notification-list,.notification-item,.notifications-empty,.notifications-filter-empty,.notification-detail-modal__dialog),
html[data-theme="light"] body .notification-drawer .notification-item {
  border-color:var(--eb-unified-line)!important;
  background:#fff!important;
  color:var(--eb-unified-ink)!important;
  box-shadow:0 5px 17px rgba(34,47,57,.06)!important;
}
html[data-theme="light"] body.ebadi-notifications-page :is(.notification-item.is-unread,.notifications-toolbar button.is-active) {border-color:#ebd1a4!important;background:#fff7e9!important}
html[data-theme="light"] body.ebadi-notifications-page :is(.notifications-overview__icon,.notification-item__icon,.notifications-header__bell,.notification-detail-modal__icon,.notifications-empty>span) {border-color:#e9d4b0!important;background:#fff1dc!important;color:#92611e!important}
html[data-theme="light"] body.ebadi-notifications-page :is(.notifications-overview__icon--all,.notification-item.is-service .notification-item__icon,.notifications-filter-empty>span) {border-color:#d0e9d8!important;background:#ebf8ef!important;color:#387f51!important}
html[data-theme="light"] body.ebadi-notifications-page :is(.notifications-header__back,.notification-detail-modal__dialog header>button,.notifications-toolbar button) {border-color:var(--eb-unified-line)!important;background:#f8f9fa!important;color:var(--eb-unified-ink)!important}
html[data-theme="light"] body.ebadi-notifications-page :is(.notification-item,.notification-detail-modal__dialog) :is(h2,h3,strong,b) {color:var(--eb-unified-ink)!important}
html[data-theme="light"] body.ebadi-notifications-page :is(.notification-item,.notification-detail-modal__dialog) :is(p,small,time) {color:var(--eb-unified-muted)!important}

/* PROFILE, VEHICLES, REMINDERS, REPAIRS AND SETTINGS — legacy mini-cards. */
html[data-theme="light"] body :is(.profile-page,.profile-route) :is(.profile-quick-access__grid>a,.profile-insight-card,.profile-garage__card,.profile-garage__add-card,.profile-order,.profile-club__list>div,.profile-settings__grid>a) {border-color:var(--eb-unified-line)!important;background:#fff!important;color:var(--eb-unified-ink)!important}
html[data-theme="light"] body :is(.profile-page,.profile-route) .profile-summary-card {border-color:#e7cd9d!important;background:linear-gradient(145deg,#fff9ee,#fff)!important}
html[data-theme="light"] body :is(.profile-page,.profile-route) .profile-status-strip {border-color:var(--eb-unified-line)!important;background:#fff!important}
html[data-theme="light"] body :is(.reminders-app,.repairs-app,.vehicle-editor-app,.repair-editor-app) :is(.reminder-list-card,.reminders-list article,.repair-summary article,.repair-chart-card,.repair-record,.repair-form,.repair-form-step,.reminder-form-section,.reminder-quick-vehicle,.vehicle-form-section,.vehicle-list-card,.vehicles-add,.vehicle-default-toggle,.repair-wizard-field,.repair-wizard-progress b,.repair-type-picker label>span,.repair-confirmation div,.repair-garage-choices button) {
  border-color:var(--eb-unified-line)!important;
  background:#fff!important;
  color:var(--eb-unified-ink)!important;
  box-shadow:0 4px 14px rgba(35,49,59,.045)!important;
}
html[data-theme="light"] body :is(.reminders-app,.repairs-app,.vehicle-editor-app,.repair-editor-app) :is(.repair-tools,.reminder-filters,.reminder-more-filters,.vehicle-default-picker__item,.vehicle-actions-dialog,.vehicle-delete-dialog,.repair-empty,.repair-chart-tabs,.repair-upload-previews i) {border-color:var(--eb-unified-line)!important;background:#fff!important;color:var(--eb-unified-ink)!important}
html[data-theme="light"] body :is(.reminders-app,.repairs-app,.vehicle-editor-app,.repair-editor-app) :is(.repair-field input,.repair-field select,.repair-field textarea,.vehicle-input,.vehicle-input input,.vehicle-input select,.reminder-field,.repair-tools select,.repair-tools label) {border-color:var(--eb-unified-line)!important;background:var(--eb-unified-soft)!important;color:var(--eb-unified-ink)!important}
html[data-theme="light"] body :is(.vehicle-list-card__actions,.repair-record__actions,.vehicle-actions-dialog__head) :is(a,button) {border-color:var(--eb-unified-line)!important;background:#fff!important;color:var(--eb-unified-ink)!important}
html[data-theme="light"] body :is(.settings-card,.settings-sessions,.settings-session,.settings-sessions__notice,.settings-session__meta span,.settings-session__meta time,.settings-calendar-button,.settings-inline-link) {border-color:var(--eb-unified-line)!important;background:#fff!important;color:var(--eb-unified-ink)!important}
html[data-theme="light"] body .settings-session.is-current {border-color:#bfdcc9!important;background:#f0faf3!important}
html[data-theme="light"] body .settings-session__icon {border-color:#e4d0aa!important;background:#fff2dc!important}
html[data-theme="light"] body .settings-session button {border-color:#ebcdcd!important;background:#fff5f5!important;color:#a04b46!important}

/* INSPECTIONS, INQUIRIES, BOOKING AND IN-APP DIALOGS */
html[data-theme="light"] body :is(.feature-app,.inspection-list,.inspection-review-app) :is(.feature-form,.feature-list>article,.inspection-card,.inspection-approved-reviews article,.inspection-review-form,.inspection-rating,.inspection-cards article) {
  border-color:var(--eb-unified-line)!important;
  background:#fff!important;
  color:var(--eb-unified-ink)!important;
  box-shadow:0 5px 16px rgba(33,48,57,.055)!important;
}
html[data-theme="light"] body :is(.feature-app,.inspection-list,.inspection-review-app) :is(.feature-tabs button,.vehicle-context-tabs a,.inspection-filters button) {border-color:var(--eb-unified-line)!important;background:#fff!important;color:var(--eb-unified-ink)!important}
html[data-theme="light"] body :is(.feature-app,.inspection-list,.inspection-review-app) :is(.feature-form input,.feature-list textarea,.feature-list select,.inspection-review-form select,.inspection-review-form textarea) {border-color:var(--eb-unified-line)!important;background:#f9fafb!important;color:var(--eb-unified-ink)!important}
html[data-theme="light"] body :is(.feature-app,.inspection-list,.inspection-review-app) :is(.inspection-rating label:has(input:checked) span,.inspection-rating__options label:has(input:checked)>span,.inspection-filters button.is-active) {border-color:#dfbc81!important;background:#fff0d7!important;color:#90601b!important}
html[data-theme="light"] body :is(.feature-app,.inspection-list,.inspection-review-app) :is(.inspection-hero) {border-color:#e7d4b4!important;background:linear-gradient(140deg,#fff7e9,#fff)!important;color:var(--eb-unified-ink)!important}
html[data-theme="light"] body :is(.booking-app-shell,.booking-app-shell .ebadi-5step-root) {color:var(--eb-unified-ink)!important}
html[data-theme="light"] body .booking-app-shell :is(.ebadi-step,.card,.panel,.right,.gw,.kv,.priceBox,.booking-vehicle-choice,.booking-save-vehicle,.branchNotice,.branchFilter,.branchToday) {border-color:var(--eb-unified-line)!important;background:#fff!important;color:var(--eb-unified-ink)!important}
html[data-theme="light"] body .booking-app-shell :is(input,select,textarea,.control,.btnGhost,.btnCircle,.iconBtn,.miniBtn) {border-color:#dfe5e8!important;background:#f8fafb!important;color:var(--eb-unified-ink)!important}

/* Generic customer dialogs and final action areas, excluding transparent
   scrims and intentional photographic media. */
html[data-theme="light"] body :is(.privacy-dialog,.privacy-dialog__head,.notification-detail-modal__dialog,.vehicle-actions-dialog,.vehicle-delete-dialog) {border-color:var(--eb-unified-line)!important;background:#fff!important;color:var(--eb-unified-ink)!important}
html[data-theme="light"] body :is(.privacy-dialog__head button,.vehicle-actions-dialog__head>button) {border-color:var(--eb-unified-line)!important;background:#f4f6f7!important;color:var(--eb-unified-ink)!important}
html[data-theme="light"] body :is(.repair-footer-actions,.vehicle-form-actions,.reminder-form-actions,.financial-actions) {background:linear-gradient(to top,#f3f5f6 72%,rgba(243,245,246,.88),transparent)!important}

/* Accessible interaction focus/hover without restoring dark tiles. */
html[data-theme="light"] body :is(.wallet-quick-actions button,.wallet-overview article,.branch-map-actions a,.branch-facts .branch-phone-action):focus-visible {outline:2px solid #c28a35!important;outline-offset:3px}
@media (hover:hover) {
  html[data-theme="light"] body :is(.wallet-quick-actions button,.branch-map-actions a,.branch-facts .branch-phone-action):hover {border-color:#d5b47e!important;background:#fff2de!important}
}

/* CARTIK partner-service booking and order summary still had deliberately
   charcoal headers/cards under the light app. */
html[data-theme="light"] body.ebadi-cartik-booking-page :is(.cartik-detail-header,.cartik-time-header) {
  border-bottom:1px solid #e8d0a5!important;
  background:linear-gradient(135deg,#fff6e6,#fffaf2)!important;
  color:var(--eb-unified-ink)!important;
  box-shadow:0 6px 18px rgba(40,49,55,.06)!important;
}
html[data-theme="light"] body.ebadi-cartik-booking-page :is(.cartik-detail-header,.cartik-time-header) :is(h1,h2,strong,p,small),
html[data-theme="light"] body.ebadi-cartik-booking-page :is(.cartik-detail-back,.cartik-time-header .cartik-detail-back) {color:var(--eb-unified-ink)!important}
html[data-theme="light"] body .cartik-app-orders .cartik-dashboard-summary {
  border-color:#e4c999!important;
  background:linear-gradient(145deg,#fff6e7,#fff 65%)!important;
  color:var(--eb-unified-ink)!important;
  box-shadow:0 9px 23px rgba(58,55,47,.075)!important;
}
html[data-theme="light"] body .cartik-app-orders .cartik-dashboard-summary h2 {color:var(--eb-unified-ink)!important}
html[data-theme="light"] body .cartik-app-orders .cartik-dashboard-summary__eyebrow {color:#996117!important}
html[data-theme="light"] body .cartik-app-orders .cartik-dashboard-summary__phone,
html[data-theme="light"] body .cartik-app-orders .cartik-dashboard-summary__stats span {color:var(--eb-unified-muted)!important}
html[data-theme="light"] body .cartik-app-orders .cartik-dashboard-summary__total {border-color:#e4ca9d!important;background:#fff!important}
html[data-theme="light"] body .cartik-app-orders .cartik-dashboard-summary__total strong {color:#8d5d1b!important}
html[data-theme="light"] body .cartik-app-orders .cartik-dashboard-summary__total span {color:var(--eb-unified-muted)!important}
html[data-theme="light"] body .cartik-app-orders .cartik-dashboard-summary__stats {border-top-color:#e7dcc9!important}

/* Car-market's secondary action must match the same gold-outline vocabulary. */
html[data-theme="light"] body.ebadi-car-market-page .market-button--dark {
  border:1px solid #e5ca9d!important;
  background:#fff4e3!important;
  color:#875818!important;
  box-shadow:0 5px 14px rgba(116,85,43,.08)!important;
}
