/* TBA palette for the updated plugin. Existing parent/child styles remain authoritative. */
body {
    --tm24-theme-main: #358c2b;
    --tm24-theme-dark: #246f22;
    --tm24-theme-deep: #174f1c;
    --tm24-theme-light: #eaf7e7;
    --tm24-theme-border: #d5e8d1;
    --tm24-theme-action-hover: #246f22;
    --tm24-theme-content-action: #358c2b;
    --tm24-neutral-surface-muted: #f2f8f0;
    --tm24-neutral-text-secondary: #718071;
    --tm24-neutral-border: #e8e8e8;
}
.tba-booking-progress__back {
    display: flex; flex-direction: column; align-items: center;
    width: 100%; padding: 0; border: 0; background: transparent;
    font: inherit; cursor: pointer; color: inherit;
}
.tba-booking-progress__back:focus-visible {
    outline: 2px solid #358c2b; outline-offset: 4px; border-radius: 8px;
}
.tba-booking-progress .tm24-step-navigation { margin: 0; width: 100%; }

.tm24-calendar.qs-datepicker-container { background: #f8fcf7; border-color: #d5e8d1; box-shadow: 0 14px 32px rgba(43,103,44,.16); }
.tm24-calendar .qs-arrow:hover { background: #eaf7e7; }
.tm24-calendar .qs-num:not(.qs-disabled):hover { background: #358c2b; }

/* Legacy shortcodes keep their markup; the upgraded public flow is distance-only.
 * jQuery UI no longer hides these unused panels for us.
 */
#booking-tabs > #tab-hourly,
#booking-tabs > #tab-flat {
    display: none !important;
}

/* Isolate navigation controls from the legacy theme's green submit buttons. */
body .tba-booking-progress button.tba-booking-progress__back {
    width: 100% !important; min-width: 0 !important;
    height: auto !important; min-height: 0 !important;
    padding: 0 !important; margin: 0 !important;
    border: 0 !important; border-radius: 0 !important;
    background: transparent !important; box-shadow: none !important;
    font: inherit !important; color: inherit !important;
    text-transform: none !important;
}
body .tba-booking-progress button.tba-booking-progress__back::before,
body .tba-booking-progress button.tba-booking-progress__back::after {
    display: none !important;
}
/* TBA's white submit-button text must not hide select values and chevrons. */
.trip-details-wrapper .chauffeur-count .chauffeur-count-control,
.trip-details-wrapper .chauffeur-count .chauffeur-count-control > .chauffeur-count-value,
.trip-details-wrapper .chauffeur-count .chauffeur-count-control > .chauffeur-count-arrow {
    color: var(--count-color, #242424) !important;
}
