/*
 * Easy Appointments — copie de la feuille « nouvelle interface »
 * =============================================================
 *
 * POURQUOI UNE COPIE. Le plugin sert sa propre version de ce fichier, et
 * elle commence par :
 *
 *   @import url('https://fonts.googleapis.com/css2?family=Source+Serif+4…');
 *
 * soit une requête vers Google à chaque affichage du formulaire de
 * réservation. Tout le reste du site s'en passe — les polices sont
 * embarquées dans assets/fonts/ et déclarées dans theme.json — et c'est
 * aussi ce qu'annonce la politique de confidentialité. On charge donc
 * cette copie à la place de la sienne (voir inc/rdv.php), import retiré,
 * et l'habillage EIRA est ajouté à la fin du fichier.
 *
 * VERSION D'ORIGINE : Easy Appointments 4.0.2.1
 *                     (css/eafront-bootstrap-new-ui.css)
 *
 * À LA MISE À JOUR DU PLUGIN : cette copie ne se met pas à jour toute
 * seule. Le thème affiche un avertissement dans l'administration dès que
 * la version installée n'est plus celle ci-dessus : il faut alors reprendre
 * le fichier du plugin, en retirer l'import, et recoller le bloc EIRA de
 * la fin. Rien d'autre du plugin n'est recopié.
 */

/**
 * Easy Appointments – New UI Frontend Booking Styles
 * Clean, High-Performance Design System matching https://easyappoint.testing1234.xyz/
 *
 * @package EasyAppointments
 */

/* --------------------------------------------------------------------------
   Tokens & Base Scope
   -------------------------------------------------------------------------- */
.ea-new-ui,
.ea-bootstrap.ea-new-ui {
    --ea-accent: #2563eb;
    --ea-accent-hover: #1d4ed8;
    --ea-accent-ink: #1d4ed8;
    --ea-accent-deep: #1e40af;
    --ea-accent-tint: #eff6ff;
    --ea-text: #201e1d;
    --ea-paper: #ffffff;
    --ea-surface: #f8f8f7;
    --ea-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --ea-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

    box-sizing: border-box;
    font-family: var(--ea-serif);
}

/* --------------------------------------------------------------------------
   Root Card Wrapper (Supports Shortcode width & layout_cols="2")
   -------------------------------------------------------------------------- */
.ea-bootstrap.ea-new-ui,
.ea-bootstrap-wrapper.ea-new-ui {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(32, 30, 29, 0.10), 0 2px 6px rgba(32, 30, 29, 0.05);
    padding: 32px 36px 28px 36px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    white-space: normal;
    border: 1px solid rgba(32, 30, 29, 0.10);
}

/* Default max-widths if no custom width inline style is specified */
.ea-bootstrap.ea-new-ui:not([style*="max-width"]),
.ea-bootstrap-wrapper.ea-new-ui:not([style*="max-width"]) {
    max-width: 800px;
}

.ea-bootstrap.ea-new-ui.ea-layout-cols-2:not([style*="max-width"]),
.ea-bootstrap-wrapper.ea-new-ui.ea-layout-cols-2:not([style*="max-width"]) {
    max-width: 960px;
}

/* RTL Support */
.ea-bootstrap.ea-new-ui.ea-rtl,
.ea-bootstrap.ea-new-ui[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

.ea-bootstrap.ea-new-ui.ea-rtl .ea-field-group select,
.ea-bootstrap.ea-new-ui[dir="rtl"] .ea-field-group select {
    background-position: left 14px center;
    padding: 10px 14px 10px 36px;
}

/* Prevent double borders and double padding on nested inner template wrappers */
.ea-new-ui .ea-bootstrap,
.ea-bootstrap.ea-new-ui .ea-bootstrap.ea-new-ui,
.ea-new-ui-container .ea-new-ui-container,
.ea-bootstrap .ea-new-ui-container,
.ea-new-ui .ea-new-ui-container {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0 auto;
    max-width: 100%;
    border-radius: 0;
}

/* Hide legacy .block overlays, legacy action button group, extra final actions, and Repeat Appointment */
.ea-new-ui .block,
.ea-new-ui .ea-actions-group,
.ea-bootstrap.ea-new-ui .ea-actions-group,
.ea-new-ui .ea-new-ui-final-actions,
.ea-new-ui #repeat_booking,
.ea-new-ui label[for="repeat_booking"],
.ea-new-ui #recurrence-summary,
.ea-new-ui .form-group:has(#repeat_booking) {
    display: none !important;
}

/* --------------------------------------------------------------------------
   2-COLUMN SHORTCODE LAYOUT (layout_cols="2")
   -------------------------------------------------------------------------- */
.ea-new-ui.ea-layout-cols-2 form.form-horizontal,
.ea-bootstrap.ea-new-ui.ea-layout-cols-2 form.form-horizontal,
.ea-layout-cols-2 form.form-horizontal {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
    width: 100%;
}

/* Left Column (Dropdown Filters, Calendar, Time Slots) */
.ea-new-ui.ea-layout-cols-2 form.form-horizontal > div.col-md-6:first-child,
.ea-bootstrap.ea-new-ui.ea-layout-cols-2 form.form-horizontal > div.col-md-6:first-child,
.ea-layout-cols-2 form.form-horizontal > div.col-md-6:first-child {
    flex: 1 1 calc(50% - 16px);
    width: calc(50% - 16px);
    min-width: 280px;
    padding: 0;
    margin: 0;
    float: none;
    display: block;
    box-sizing: border-box;
}

/* Right Column (Customer Personal Info & Booking Overview) */
.ea-new-ui.ea-layout-cols-2 .step.final,
.ea-new-ui.ea-layout-cols-2 .step.final.col-md-6,
.ea-bootstrap.ea-new-ui.ea-layout-cols-2 .step.final,
.ea-bootstrap.ea-new-ui.ea-layout-cols-2 .step.final.col-md-6,
.ea-layout-cols-2 .step.final {
    flex: 1 1 calc(50% - 16px);
    width: calc(50% - 16px);
    min-width: 280px;
    margin: 0;
    padding: 0 0 0 28px;
    border-top: none;
    border-left: 1px solid rgba(32, 30, 29, 0.10);
    float: none;
    display: block;
    box-sizing: border-box;
}

/* RTL Support for 2-Column Layout */
.ea-new-ui.ea-layout-cols-2.ea-rtl .step.final,
.ea-new-ui.ea-layout-cols-2.ea-rtl .step.final.col-md-6,
.ea-bootstrap.ea-new-ui.ea-layout-cols-2.ea-rtl .step.final.col-md-6 {
    border-left: none;
    border-right: 1px solid rgba(32, 30, 29, 0.10);
    padding: 0 28px 0 0;
}

/* Adjust Time Slots Grid inside 2-Column Mode to 3 Columns */
.ea-new-ui.ea-layout-cols-2 .time.well,
.ea-bootstrap.ea-new-ui.ea-layout-cols-2 .time.well,
.ea-layout-cols-2 .time.well {
    grid-template-columns: repeat(3, 1fr);
}

/* --------------------------------------------------------------------------
   STEP BLUR & DISABLE FUNCTIONALITY (CALENDAR & PERSONAL INFO STEP-BY-STEP)
   -------------------------------------------------------------------------- */
.ea-new-ui .step.disabled {
    opacity: 0.45;
    pointer-events: none;
    filter: grayscale(0.5);
    user-select: none;
    transition: opacity 0.25s ease, filter 0.25s ease;
}

.ea-new-ui .step:not(.disabled) {
    opacity: 1;
    pointer-events: auto;
    filter: none;
    transition: opacity 0.25s ease, filter 0.25s ease;
}

/* Disabled Field Groups (Sequential Dropdown Step Unlocking) */
.ea-new-ui .ea-field-group.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.ea-new-ui .ea-field-group.disabled select,
.ea-new-ui .ea-field-group.disabled .form-control {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

/* --------------------------------------------------------------------------
   Page Heading ("Book an appointment")
   -------------------------------------------------------------------------- */
.ea-new-ui .ea-booking-title {
    font-family: var(--ea-serif);
    font-size: 1.55rem;
    font-weight: 600;
    color: #201e1d;
    margin: 0 0 22px 0;
    letter-spacing: -0.018em;
    line-height: 1.25;
    width: 100%;
}

/* --------------------------------------------------------------------------
   Filters Grid (Location + Service side-by-side, Worker full row)
   -------------------------------------------------------------------------- */
.ea-new-ui .ea-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.ea-new-ui .ea-filters-grid-full {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.ea-new-ui .ea-new-ui-step-hidden {
    position: absolute;
    visibility: hidden;
    width: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    pointer-events: none;
}

.ea-new-ui .ea-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ea-new-ui .ea-field-group label,
.ea-new-ui .ea-label,
.ea-new-ui .ea-field-label {
    font-family: var(--ea-sans);
    font-size: 13px;
    font-weight: 500;
    color: rgba(32, 30, 29, 0.62);
    letter-spacing: 0.01em;
    text-transform: none;
    margin: 0;
    display: block;
    text-align: left;
}

.ea-new-ui .ea-field-group select,
.ea-new-ui .ea-field-group .form-control {
    width: 100%;
    padding: 10px 36px 10px 14px;
    border: 1px solid rgba(32, 30, 29, 0.14);
    border-radius: 8px;
    font-size: 14.5px;
    font-family: var(--ea-sans);
    font-weight: 400;
    color: #201e1d;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23201e1d' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
    height: auto;
    box-shadow: none;
}

.ea-new-ui .ea-field-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ea-new-ui #ea-service-description {
    font-size: 13.5px;
    color: #334155;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    padding: 10px 14px;
    white-space: pre-line;
    margin-top: 10px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ea-new-ui #ea-service-description:empty {
    display: none;
}

/* --------------------------------------------------------------------------
   Calendar Section & Overrides
   -------------------------------------------------------------------------- */
.ea-new-ui .ea-calendar-section,
.ea-new-ui .step.calendar {
    margin-top: 14px;
    margin-bottom: 0;
}

.ea-new-ui .ui-datepicker {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: block;
}

.ea-new-ui .ui-datepicker .ui-datepicker-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 6px 0 14px 0;
    background: transparent;
    border: none;
    position: relative;
}

.ea-new-ui .ui-datepicker .ui-datepicker-title {
    font-family: var(--ea-serif);
    font-size: 14px;
    font-weight: 500;
    color: rgba(32, 30, 29, 0.62);
    margin: 0;
    text-align: left;
}

.ea-new-ui .ui-datepicker .ui-datepicker-prev,
.ea-new-ui .ui-datepicker .ui-datepicker-next {
    position: absolute;
    top: 4px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.12s;
    margin: 0;
    color: #201e1d;
    border: none;
    background: transparent;
    text-decoration: none;
}

.ea-new-ui .ui-datepicker .ui-datepicker-prev {
    right: 32px;
    left: auto;
}

.ea-new-ui .ui-datepicker .ui-datepicker-next {
    right: 0;
}

.ea-new-ui .ui-datepicker .ui-datepicker-prev span,
.ea-new-ui .ui-datepicker .ui-datepicker-next span {
    display: none;
}

.ea-new-ui .ui-datepicker .ui-datepicker-prev:before {
    content: "‹";
    font-size: 1.5rem;
    line-height: 1;
}

.ea-new-ui .ui-datepicker .ui-datepicker-next:before {
    content: "›";
    font-size: 1.5rem;
    line-height: 1;
}

.ea-new-ui .ui-datepicker .ui-datepicker-prev:hover,
.ea-new-ui .ui-datepicker .ui-datepicker-next:hover {
    background: rgba(32, 30, 29, 0.05);
}

.ea-new-ui .ui-datepicker table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    margin: 0;
}

.ea-new-ui .ui-datepicker th {
    font-family: var(--ea-serif);
    font-size: 12px;
    font-weight: 500;
    color: rgba(32, 30, 29, 0.45);
    text-align: center;
    padding: 4px 0 10px 0;
    border: none;
    text-transform: uppercase;
    background: transparent;
}

/* Clear legacy cell backgrounds */
.ea-new-ui .date .free,
.ea-new-ui .date .busy,
.ea-new-ui .date .no-slots,
.ea-new-ui .ui-datepicker table td,
.ea-new-ui .ui-datepicker table td a,
.ea-new-ui .ui-datepicker table td span,
.ea-new-ui .ui-datepicker .ui-state-default,
.ea-new-ui .ui-datepicker .ui-widget-content .ui-state-default {
    background: transparent;
    background-color: transparent;
    border: none;
    box-shadow: none;
    outline: none;
}

.ea-new-ui .ui-datepicker td {
    padding: 2px;
    text-align: center;
}

.ea-new-ui .ui-datepicker td a,
.ea-new-ui .ui-datepicker td span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    margin: 0 auto;
    border-radius: 8px;
    font-family: var(--ea-serif);
    font-size: 13px;
    color: #201e1d;
    text-decoration: none;
    transition: background 0.12s ease, color 0.12s ease;
    cursor: pointer;
    padding: 10px;
}

.ea-new-ui .ui-datepicker td:hover a {
    background: rgba(32, 30, 29, 0.05);
    color: #201e1d;
}

.ea-new-ui .ui-datepicker td.ui-datepicker-current-day a,
.ea-new-ui .ui-datepicker .ui-datepicker-current-day a {
    background-color: #2563eb;
    color: #ffffff;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.26);
    padding: 10px;
}

.ea-new-ui .ui-datepicker .ui-state-disabled span,
.ea-new-ui .ui-datepicker .ui-state-disabled a {
    color: rgba(32, 30, 29, 0.30);
    font-weight: 400;
    cursor: default;
    padding: 10px;
}

/* --------------------------------------------------------------------------
   TIME SLOTS GRID SECTION
   -------------------------------------------------------------------------- */
.ea-new-ui .ea-times-section {
    margin-top: 22px;
}

.ea-new-ui .ea-times-header {
    font-family: var(--ea-sans);
    font-size: 13px;
    font-weight: 500;
    color: rgba(32, 30, 29, 0.62);
    margin: 20px 0 12px 0;
    letter-spacing: 0.01em;
    text-align: left;
}

.ea-new-ui .time-row td {
    padding: 14px 0 4px 0;
}

/* Fluid Responsive CSS Grid for Time Slots (auto-adapts cleanly to any container max-width like 400px) */
.time.well,
.time.well.col-50,
.time.well-lg,
.ea-bootstrap .time.well,
.ea-new-ui .time.well {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin: 16px 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    float: none;
    clear: both;
    flex-flow: unset;
    box-sizing: border-box;
}

/* Base Layout for All Time Slot Cards */
.time-value,
.time-disabled,
.ea-bootstrap .time-value,
.ea-bootstrap .time-disabled,
.ea-new-ui .time-value,
.ea-new-ui .time-disabled,
a.time-value,
a.time-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    padding: 0 6px;
    margin: 0;
    box-sizing: border-box;
    white-space: nowrap;
    word-break: keep-all;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.25px;
    line-height: 1;
    font-family: var(--ea-sans);
    flex: none;
    float: none;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

/* --------------------------------------------------------------------------
   STRICT AVAILABLE TIME SLOTS DESIGN (White card, crisp border, no grey hover)
   -------------------------------------------------------------------------- */
/* Unhovered Available Slots (Clean White Card with Grey Border) */
.ea-bootstrap .time-value:not(.time-disabled):not(.selected-time),
.ea-new-ui .time-value:not(.time-disabled):not(.selected-time),
.ea-bootstrap.ea-new-ui .time-value:not(.time-disabled):not(.selected-time),
.time-row .time-value:not(.time-disabled):not(.selected-time),
.time.well .time-value:not(.time-disabled):not(.selected-time),
.time.well-lg .time-value:not(.time-disabled):not(.selected-time),
a.time-value:not(.time-disabled):not(.selected-time) {
    background: #ffffff;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #111827;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    outline: none;
    opacity: 1;
}

/* Hovering OVER A SINGLE SPECIFIC AVAILABLE SLOT -> Soft Blue Fill & Accent Border */
.ea-bootstrap .time-value:not(.time-disabled):not(.selected-time):hover,
.ea-new-ui .time-value:not(.time-disabled):not(.selected-time):hover,
.ea-bootstrap.ea-new-ui .time-value:not(.time-disabled):not(.selected-time):hover,
.time-row .time-value:not(.time-disabled):not(.selected-time):hover,
.time.well .time-value:not(.time-disabled):not(.selected-time):hover,
.time.well-lg .time-value:not(.time-disabled):not(.selected-time):hover,
a.time-value:not(.time-disabled):not(.selected-time):hover,
a.time-value:not(.time-disabled):not(.selected-time):focus {
    background: #eff6ff;
    background-color: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.16);
    text-decoration: none;
    outline: none;
}

/* Force unhovered available slots to STAY white even if container/row/parent is hovered */
.time-row:hover .time-value:not(:hover):not(.time-disabled):not(.selected-time),
.time.well:hover .time-value:not(:hover):not(.time-disabled):not(.selected-time),
.time.well-lg:hover .time-value:not(:hover):not(.time-disabled):not(.selected-time),
.ea-bootstrap:hover .time-value:not(:hover):not(.time-disabled):not(.selected-time),
.ea-new-ui:hover .time-value:not(:hover):not(.time-disabled):not(.selected-time) {
    background: #ffffff;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-color: #d1d5db;
    color: #111827;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* STATE 2: Active Selected Slot */
.ea-bootstrap.ea-bootstrap .time-value.selected-time,
.ea-bootstrap.ea-bootstrap .selected-time,
.ea-bootstrap .time-value.selected-time,
.ea-new-ui .time-value.selected-time,
.ea-bootstrap .selected-time,
.ea-new-ui .selected-time,
.time-value.selected-time,
a.time-value.selected-time,
.selected-time {
    background-color: #2563eb;
    background-image: none;
    border: 1px solid #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    text-decoration: none;
}

/* STATE 3: Disabled / Booked Slot */
.ea-bootstrap.ea-bootstrap .time-disabled,
.ea-bootstrap .time-disabled,
.ea-new-ui .time-disabled,
.time-disabled,
a.time-disabled {
    background-color: #f8f8f7;
    background-image: none;
    border: 1px solid #e2e2e0;
    border-radius: 8px;
    color: #a1a1aa;
    font-weight: 400;
    font-size: 14px;
    font-family: var(--ea-sans);
    text-decoration: line-through;
    cursor: not-allowed;
    pointer-events: auto;
    box-shadow: none;
    opacity: 1;
    position: relative;
}

.ea-bootstrap.ea-bootstrap .time-disabled:hover,
.ea-bootstrap .time-disabled:hover,
.ea-new-ui .time-disabled:hover,
.time-disabled:hover,
a.time-disabled:hover {
    background-color: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
    text-decoration: line-through;
}

/* --------------------------------------------------------------------------
   Bottom Summary Bar & Actions
   -------------------------------------------------------------------------- */
.ea-new-ui .ea-booking-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 16px;
    margin-top: 20px;
    border-top: 1px solid rgba(32, 30, 29, 0.08);
    gap: 14px;
    width: 100%;
}

.ea-new-ui .ea-summary-text {
    font-family: var(--ea-serif);
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(32, 30, 29, 0.62);
    flex: 1;
    min-width: 0;
}

.ea-new-ui .ea-summary-text.empty {
    color: rgba(32, 30, 29, 0.45);
    font-style: italic;
}

.ea-new-ui .ea-new-ui-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ea-new-ui .ea-submit,
.ea-new-ui .booking-button {
    font-family: var(--ea-serif);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #ffffff;
    border: 1px solid #2563eb;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.26);
}

.ea-new-ui .ea-submit:hover:not(:disabled),
.ea-new-ui .booking-button:hover:not(:disabled) {
    background: #1d4ed8;
    border-color: #1d4ed8;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.ea-new-ui .ea-cancel {
    font-family: var(--ea-serif);
    background: #ffffff;
    color: #201e1d;
    border: 1px solid rgba(32, 30, 29, 0.14);
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
    margin-left: 0;
}

.ea-new-ui .ea-cancel:hover {
    border-color: rgba(32, 30, 29, 0.30);
    background: #f8f8f7;
}

/* --------------------------------------------------------------------------
   SENIOR ENGINEER PERSONAL INFORMATION & SEARCH CUSTOMER DESIGN
   -------------------------------------------------------------------------- */
.ea-new-ui .step.final {
    background: #ffffff;
    border-top: 1px solid rgba(32, 30, 29, 0.08);
    padding: 24px 0 0 0;
    margin-top: 20px;
}

.ea-new-ui .step.final h3,
.ea-new-ui #booking-overview-header {
    font-family: var(--ea-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: #201e1d;
    margin: 16px 0 2px 0;
    letter-spacing: -0.015em;
}

.ea-new-ui .step.final small {
    font-size: 12.5px;
    color: rgba(32, 30, 29, 0.48);
    display: block;
    margin-bottom: 16px;
}

/* 2-Column Grid Layout for Form Fields in Single-Column & 2-Column Mode */
.ea-new-ui .step.final .ea_hide_show {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 16px;
    margin-top: 12px;
}

/* Full Width Spanning Elements (Headings, Small, Textarea, Overview, Search Customer) */
.ea-new-ui .step.final .ea_hide_show > h3,
.ea-new-ui .step.final .ea_hide_show > small,
.ea-new-ui .step.final .ea_hide_show > div.block,
.ea-new-ui .step.final .ea_hide_show > div:has(textarea),
.ea-new-ui .step.final .ea_hide_show > div:has(#booking-overview),
.ea-new-ui .step.final .ea_hide_show > div:has(#ea_customer_search),
.ea-new-ui .step.final .ea_hide_show > .form-group:last-child {
    grid-column: 1 / -1;
}

/* Individual Form Field Group Container */
.ea-new-ui .step.final .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.ea-new-ui .step.final .form-group label {
    font-family: var(--ea-sans);
    font-size: 13px;
    font-weight: 500;
    color: rgba(32, 30, 29, 0.62);
    margin: 0;
    display: block;
    float: none;
    width: 100%;
    text-align: left;
    letter-spacing: 0.01em;
}

.ea-new-ui .step.final .form-group label.error {
    color: red;
}

.ea-new-ui .step.final .col-sm-8,
.ea-new-ui .step.final .col-sm-4 {
    width: 100%;
    padding: 0;
    float: none;
}

.ea-new-ui .step.final .form-control {
    width: 100%;
    height: 42px;
    padding: 8px 14px;
    border: 1px solid rgba(32, 30, 29, 0.14);
    border-radius: 8px;
    font-size: 14.5px;
    font-family: var(--ea-sans);
    color: #201e1d;
    background-color: #ffffff;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
    box-shadow: none;
    box-sizing: border-box;
}

/* Search Customer Input & Select2 Container Styling */
.ea-new-ui #ea_customer_search,
.ea-new-ui select#ea_customer_search,
.ea-new-ui .form-control#ea_customer_search,
.ea-new-ui .select2-container,
.ea-new-ui .select2-container--default {
    width: 100%;
    display: block;
}

.ea-new-ui #ea_customer_search,
.ea-new-ui select#ea_customer_search,
.ea-new-ui .form-control#ea_customer_search,
.ea-new-ui .select2-container .select2-selection--single,
.ea-new-ui .select2-container--default .select2-selection--single {
    height: 42px;
    padding: 8px 14px;
    border: 1px solid rgba(32, 30, 29, 0.14);
    border-radius: 8px;
    font-size: 14.5px;
    font-family: var(--ea-sans);
    font-weight: 400;
    color: #201e1d;
    background-color: #ffffff;
    background-image: none;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
    box-shadow: none;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

/* Select2 Rendered Text inside Search Customer */
.ea-new-ui .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #201e1d;
    font-family: var(--ea-sans);
    font-size: 14.5px;
    line-height: 24px;
    padding-left: 0;
    padding-right: 20px;
}

.ea-new-ui .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9ca3af;
}

/* Select2 Arrow styling */
.ea-new-ui .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
    top: 1px;
    right: 10px;
    width: 20px;
}

.ea-new-ui .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #6b7280 transparent transparent transparent;
    border-width: 5px 4px 0 4px;
}

/* Select2 Focus & Active Ring */
.ea-new-ui #ea_customer_search:focus,
.ea-new-ui select#ea_customer_search:focus,
.ea-new-ui .select2-container--default.select2-container--open .select2-selection--single,
.ea-new-ui .select2-container--default.select2-container--focus .select2-selection--single {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Select2 & Autocomplete Dropdown Popup Styling */
.select2-dropdown.ea-new-ui-select2-dropdown,
.select2-container--default .select2-dropdown,
ul.ui-autocomplete.ui-menu {
    background: #ffffff;
    border: 1px solid rgba(32, 30, 29, 0.12);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(32, 30, 29, 0.12);
    padding: 6px;
    z-index: 99999;
    font-family: var(--ea-sans);
    max-height: 240px;
    overflow-y: auto;
}

.select2-container--default .select2-results__option,
ul.ui-autocomplete.ui-menu .ui-menu-item {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #201e1d;
    cursor: pointer;
    transition: background 0.1s ease;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option[aria-selected="true"],
ul.ui-autocomplete.ui-menu .ui-menu-item:hover,
ul.ui-autocomplete.ui-menu .ui-menu-item.ui-state-focus {
    background: #eff6ff;
    color: #2563eb;
    border: none;
    font-weight: 500;
}

/* Phone Field Container alignment inside grid */
.ea-new-ui .step.final .phone-field-group,
.ea-new-ui .step.final .ea-phone-number-container {
    display: flex;
    gap: 6px;
    width: 100%;
}

/* Textarea / Comment Field spans full grid width */
.ea-new-ui .step.final textarea.form-control {
    height: auto;
    min-height: 80px;
    padding: 10px 14px;
    resize: vertical;
    grid-column: 1 / -1;
}

.ea-new-ui .step.final .form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Prevent Date & time label from wrapping */
.ea-new-ui #booking-overview td,
.ea-new-ui #booking-overview .ea-label {
    white-space: nowrap;
    width: auto;
    padding-right: 24px;
}

.ea-new-ui #booking-overview {
    background: #f8f8f7;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 14px 0 20px 0;
    border: 1px solid rgba(32, 30, 29, 0.08);
    grid-column: 1 / -1;
}

.ea-new-ui #booking-overview table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

.ea-new-ui #booking-overview td {
    padding: 6px 0;
    border: none;
    font-size: 14px;
}

.ea-new-ui #booking-overview .ea-label {
    font-family: var(--ea-sans);
    color: rgba(32, 30, 29, 0.62);
    font-weight: 500;
}

.ea-new-ui #booking-overview .value {
    color: #201e1d;
    font-weight: 600;
    text-align: right;
}

/* --------------------------------------------------------------------------
   Responsive Design & Stacking
   -------------------------------------------------------------------------- */
@media (max-width: 840px) {
    .ea-new-ui.ea-layout-cols-2 form.form-horizontal,
    .ea-bootstrap.ea-new-ui.ea-layout-cols-2 form.form-horizontal,
    .ea-layout-cols-2 form.form-horizontal {
        flex-direction: column;
        gap: 20px;
    }

    .ea-new-ui.ea-layout-cols-2 form.form-horizontal > div.col-md-6:first-child,
    .ea-new-ui.ea-layout-cols-2 .step.final,
    .ea-bootstrap.ea-new-ui.ea-layout-cols-2 form.form-horizontal > div.col-md-6:first-child,
    .ea-bootstrap.ea-new-ui.ea-layout-cols-2 .step.final.col-md-6,
    .ea-layout-cols-2 .step.final {
        flex: 1 1 100%;
        width: 100%;
        min-width: 100%;
        padding-left: 0;
        padding-right: 0;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(32, 30, 29, 0.10);
        padding-top: 20px;
    }

    .ea-new-ui.ea-layout-cols-2 .time.well,
    .ea-bootstrap.ea-new-ui.ea-layout-cols-2 .time.well,
    .ea-layout-cols-2 .time.well {
        grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
    }
}

@media (max-width: 540px) {
    .ea-bootstrap.ea-new-ui {
        padding: 24px 16px 16px 16px;
    }

    .ea-new-ui .ea-filters-grid {
        grid-template-columns: 1fr;
    }

    .ea-new-ui .step.final .ea_hide_show {
        grid-template-columns: 1fr;
    }

    .time.well,
    .time.well.col-50,
    .ea-new-ui .time.well {
        grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
        gap: 6px;
    }
}

@media (max-width: 380px) {
    .time.well,
    .time.well.col-50,
    .ea-new-ui .time.well {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

/* --------------------------------------------------------------------------
   CALENDAR DATE SELECTION LOADER (#ea-loader)
   -------------------------------------------------------------------------- */
#ea-loader[style*="display: none"],
#ea-loader[style*="display:none"] {
    display: none;
}

#ea-loader,
.ea-new-ui #ea-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 120px;
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-sizing: border-box;
}

#ea-loader[style*="display: block"],
#ea-loader[style*="display: flex"],
#ea-loader[style*="display: inline"] {
    display: flex;
}

#ea-loader::after,
.ea-new-ui #ea-loader::after {
    content: "";
    display: block;
    width: 36px;
    height: 36px;
    border: 3px solid rgba(37, 99, 235, 0.18);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: eaSpinner 0.75s linear infinite;
}

@keyframes eaSpinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   BOOKING COMPLETE / THANK YOU SCREEN DESIGN (.ea-booking-complete)
   -------------------------------------------------------------------------- */
.ea-new-ui.ea-booking-complete,
.ea-bootstrap.ea-new-ui.ea-booking-complete,
.ea-bootstrap-wrapper.ea-booking-complete {
    max-width: 640px;
    margin: 0 auto;
}

/* Button Loading Spinner State */
.ea-submit.ea-loading,
.booking-button.ea-loading {
    pointer-events: none;
    opacity: 0.85;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: not-allowed;
}

.ea-submit .ea-btn-spinner,
.booking-button .ea-btn-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: eaBtnSpinner 0.7s linear infinite;
}

@keyframes eaBtnSpinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide all filters, headers, steps, inputs, summary bar, and action buttons when booking is done */
.ea-booking-complete .ea-booking-title,
.ea-booking-complete .ea-filters-grid,
.ea-booking-complete .ea-filters-grid-full,
.ea-booking-complete .step:not(.final),
.ea-booking-complete .ea_hide_show,
.ea-booking-complete .ea-booking-summary-bar,
.ea-booking-complete .ea-new-ui-final-actions,
.ea-booking-complete h3:not(.ea-confirmation-title),
.ea-booking-complete small:not(.ea-status-note),
.ea-booking-complete label,
.ea-booking-complete .step.final h3:not(.ea-confirmation-title),
.ea-booking-complete .step.final small:not(.ea-status-note),
.ea-booking-complete .step.final label,
.ea-booking-complete .step.final .form-group,
.ea-booking-complete #booking-overview-header,
.ea-booking-complete #ea-overview-message,
.ea-booking-complete .ea-confirmation-subtext {
    display: none;
}

/* Expand the final step (Thank You container) to 100% full width with no side borders */
.ea-booking-complete form.form-horizontal {
    display: block;
    width: 100%;
}

.ea-booking-complete .step.final,
.ea-booking-complete .step.final.col-md-6 {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
    margin: 0;
    padding: 0;
    border: none;
    float: none;
    display: block;
}

.ea-booking-complete #booking-overview {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    background: transparent;
    border: none;
    padding: 0;
}

.ea-booking-complete #ea-success-box {
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(32, 30, 29, 0.06);
    border: 1px solid rgba(32, 30, 29, 0.08);
    text-align: center;
    box-sizing: border-box;
}

/* Disabled Submit Button State when no time slot is selected */
.ea-submit:disabled,
.booking-button:disabled,
.ea-submit.is-disabled,
.booking-button.is-disabled,
button.ea-submit:disabled,
button.booking-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #94a3b8;
    background: #94a3b8;
    border-color: #94a3b8;
    color: #ffffff;
    box-shadow: none;
}

/* Force hide submit and cancel buttons ONLY when booking is completed */
.ea-booking-complete .ea-submit,
.ea-booking-complete .booking-button,
.ea-booking-complete .ea-cancel,
.ea-booking-complete button.ea-submit,
.ea-booking-complete button.booking-button,
.ea-booking-complete .ea-booking-summary-bar .ea-submit,
.ea-booking-complete .ea-booking-summary-bar .booking-button,
.ea-booking-complete .ea-booking-summary-bar .ea-cancel {
    display: none;
}

/* Overview Details Table Formatting */
#ea-overview-details {
    width: 100% !important;
    box-sizing: border-box !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin: 0 auto 20px !important;
}

#ea-overview-details table,
#ea-overview-details .ea-overview-table {
    width: 100% !important;
    max-width: 100% !important;
    display: table !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    border: none !important;
    margin: 0 !important;
    background: transparent !important;
}

#ea-overview-details tr,
#ea-overview-details td,
#ea-overview-details th {
    border: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
}

#ea-overview-details tr:last-child td {
    border-bottom: none !important;
}

#ea-overview-details td {
    padding: 12px 4px !important;
    vertical-align: top !important;
    font-size: 14px !important;
    background: transparent !important;
}

#ea-overview-details td.ea-label {
    color: #64748b !important;
    font-weight: 600 !important;
    width: 35% !important;
    text-align: left !important;
}

#ea-overview-details td.value,
#ea-overview-details td.value * {
    color: #0f172a !important;
    font-weight: 600 !important;
    width: 65% !important;
    text-align: right !important;
}

#ea-overview-details td.value ol,
#ea-overview-details td.value ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style-position: inside !important;
    text-align: right !important;
    display: block !important;
    width: 100% !important;
}

#ea-overview-details td.value li {
    text-align: right !important;
    border: none !important;
}

#ea-overview-details td.value li:empty {
    display: none !important;
}

/* ============================================================
   HABILLAGE EIRA
   ============================================================

   Tout ce qui suit est du thème, pas du plugin. C'est la seule
   partie de ce fichier à reprendre après une mise à jour
   d'Easy Appointments.

   Deux remarques de méthode :

   — Le plugin écrit ses couleurs en dur (#2563eb pour l'accent,
     #201e1d pour le texte) bien plus souvent qu'il n'utilise ses
     propres variables. Redéfinir les variables ne suffit donc
     pas : on reprend ses sélecteurs à l'identique. Comme ce bloc
     est à la fin du même fichier, il passe devant à égalité de
     spécificité, sans avoir à gonfler les sélecteurs ni à
     employer « !important ».

   — Les couleurs et les polices viennent de theme.json, jamais
     d'une valeur recopiée : si la charte bouge, cet écran suit.
   ============================================================ */

.ea-new-ui,
.ea-bootstrap.ea-new-ui {
  --ea-accent: var(--wp--preset--color--argile);
  --ea-accent-hover: var(--wp--preset--color--argile-fonce);
  --ea-accent-ink: var(--wp--preset--color--argile-fonce);
  --ea-accent-deep: var(--wp--preset--color--argile-fonce);
  --ea-accent-tint: var(--wp--preset--color--ivoire);
  --ea-text: var(--wp--preset--color--brun);
  --ea-paper: var(--wp--preset--color--blanc);
  --ea-surface: var(--wp--preset--color--ivoire);
  --ea-serif: var(--wp--preset--font-family--playfair);
  --ea-sans: var(--wp--preset--font-family--montserrat);

  /* Filet et angles : la charte n'a pas de coins arrondis. */
  --eira-ea-filet: 1px solid color-mix(in srgb, var(--wp--preset--color--taupe) 45%, transparent);
  --eira-ea-filet-fort: 1px solid color-mix(in srgb, var(--wp--preset--color--taupe) 70%, transparent);

  color: var(--wp--preset--color--brun);
}

/* --- Titre et intitulés --------------------------------------------- */

.ea-new-ui .ea-booking-title {
  font-family: var(--wp--preset--font-family--playfair);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  letter-spacing: -.01em;
  color: var(--wp--preset--color--brun);
}

.ea-new-ui .ea-field-group label,
.ea-new-ui .ea-label,
.ea-new-ui .ea-field-label,
.ea-new-ui .step.final .form-group label,
.ea-new-ui .ea-times-header {
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--wp--preset--color--argile-fonce);
}

/* L'astérisque des champs obligatoires, en argile plutôt qu'en noir. */
.ea-new-ui .ea-field-group label .ea-required,
.ea-new-ui .step.final .form-group label .ea-required {
  color: var(--wp--preset--color--argile);
}

.ea-new-ui .step.final h3,
.ea-new-ui #booking-overview-header {
  font-family: var(--wp--preset--font-family--playfair);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: -.01em;
  color: var(--wp--preset--color--brun);
}

.ea-new-ui .step.final small {
  font-family: var(--wp--preset--font-family--bodoni);
  font-style: italic;
  font-size: .95rem;
  color: color-mix(in srgb, var(--wp--preset--color--brun) 70%, transparent);
}

/* --- Champs ---------------------------------------------------------- */

.ea-new-ui .ea-field-group select,
.ea-new-ui .ea-field-group .form-control,
.ea-new-ui .step.final .form-control {
  border: var(--eira-ea-filet);
  border-radius: 0;
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: .95rem;
  color: var(--wp--preset--color--brun);
  background-color: var(--wp--preset--color--blanc);
}

/* Le chevron des listes déroulantes, en argile. */
.ea-new-ui .ea-field-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23A9714E' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ea-new-ui .ea-field-group select:focus,
.ea-new-ui .step.final .form-control:focus {
  border-color: var(--wp--preset--color--argile);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--wp--preset--color--argile) 18%, transparent);
}

.ea-new-ui .step.final .form-group label.error {
  color: var(--wp--preset--color--argile-fonce);
  font-style: normal;
  letter-spacing: .08em;
}

/* --- Calendrier ------------------------------------------------------ */

.ea-new-ui .ui-datepicker .ui-datepicker-title {
  font-family: var(--wp--preset--font-family--playfair);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--wp--preset--color--brun);
  text-transform: capitalize;
}

.ea-new-ui .ui-datepicker th {
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: color-mix(in srgb, var(--wp--preset--color--brun) 50%, transparent);
}

.ea-new-ui .ui-datepicker td a,
.ea-new-ui .ui-datepicker td span {
  border-radius: 0;
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: .85rem;
  color: var(--wp--preset--color--brun);
}

.ea-new-ui .ui-datepicker td:hover a {
  background: var(--wp--preset--color--ivoire);
  color: var(--wp--preset--color--argile-fonce);
}

/* Jour choisi : carré argile, sans ombre portée bleutée. */
.ea-new-ui .ui-datepicker td.ui-datepicker-current-day a,
.ea-new-ui .ui-datepicker .ui-datepicker-current-day a {
  background-color: var(--wp--preset--color--argile);
  color: var(--wp--preset--color--blanc);
  font-weight: 500;
  border-radius: 0;
  box-shadow: none;
}

.ea-new-ui .ui-datepicker .ui-datepicker-prev:hover,
.ea-new-ui .ui-datepicker .ui-datepicker-next:hover {
  background: var(--wp--preset--color--ivoire);
  color: var(--wp--preset--color--argile-fonce);
}

/* --- Créneaux horaires ----------------------------------------------- */

.ea-bootstrap .time-value:not(.time-disabled):not(.selected-time), .ea-new-ui .time-value:not(.time-disabled):not(.selected-time), .ea-bootstrap.ea-new-ui .time-value:not(.time-disabled):not(.selected-time), .time-row .time-value:not(.time-disabled):not(.selected-time), .time.well .time-value:not(.time-disabled):not(.selected-time), .time.well-lg .time-value:not(.time-disabled):not(.selected-time), a.time-value:not(.time-disabled):not(.selected-time) {
  background: var(--wp--preset--color--blanc);
  background-color: var(--wp--preset--color--blanc);
  border: var(--eira-ea-filet);
  border-radius: 0;
  color: var(--wp--preset--color--brun);
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 500;
  letter-spacing: .06em;
  box-shadow: none;
}

.ea-bootstrap .time-value:not(.time-disabled):not(.selected-time):hover, .ea-new-ui .time-value:not(.time-disabled):not(.selected-time):hover, .ea-bootstrap.ea-new-ui .time-value:not(.time-disabled):not(.selected-time):hover, .time-row .time-value:not(.time-disabled):not(.selected-time):hover, .time.well .time-value:not(.time-disabled):not(.selected-time):hover, .time.well-lg .time-value:not(.time-disabled):not(.selected-time):hover, a.time-value:not(.time-disabled):not(.selected-time):hover, a.time-value:not(.time-disabled):not(.selected-time):focus {
  background: var(--wp--preset--color--ivoire);
  background-color: var(--wp--preset--color--ivoire);
  border-color: var(--wp--preset--color--argile);
  color: var(--wp--preset--color--argile-fonce);
  box-shadow: none;
}

.time-row:hover .time-value:not(:hover):not(.time-disabled):not(.selected-time), .time.well:hover .time-value:not(:hover):not(.time-disabled):not(.selected-time), .time.well-lg:hover .time-value:not(:hover):not(.time-disabled):not(.selected-time), .ea-bootstrap:hover .time-value:not(:hover):not(.time-disabled):not(.selected-time), .ea-new-ui:hover .time-value:not(:hover):not(.time-disabled):not(.selected-time) {
  background: var(--wp--preset--color--blanc);
  background-color: var(--wp--preset--color--blanc);
  border: var(--eira-ea-filet);
  color: var(--wp--preset--color--brun);
  box-shadow: none;
}

.ea-bootstrap.ea-bootstrap .time-value.selected-time,
.ea-bootstrap.ea-bootstrap .selected-time,
.ea-bootstrap .time-value.selected-time,
.ea-new-ui .time-value.selected-time {
  background-color: var(--wp--preset--color--argile);
  border: 1px solid var(--wp--preset--color--argile);
  border-color: var(--wp--preset--color--argile);
  border-radius: 0;
  color: var(--wp--preset--color--blanc);
  font-weight: 600;
  box-shadow: none;
}

/* --- Boutons --------------------------------------------------------- */

.ea-new-ui .ea-submit,
.ea-new-ui .booking-button {
  background: var(--wp--preset--color--argile);
  border: 1px solid var(--wp--preset--color--argile);
  border-radius: 0;
  color: var(--wp--preset--color--blanc);
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  box-shadow: none;
  transition: background .3s ease, border-color .3s ease;
}

.ea-new-ui .ea-submit:hover:not(:disabled),
.ea-new-ui .booking-button:hover:not(:disabled) {
  background: var(--wp--preset--color--argile-fonce);
  border-color: var(--wp--preset--color--argile-fonce);
  box-shadow: none;
}

.ea-new-ui .ea-cancel {
  background: transparent;
  border: var(--eira-ea-filet-fort);
  border-radius: 0;
  color: var(--wp--preset--color--brun);
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 1rem 1.6rem;
}

.ea-new-ui .ea-cancel:hover {
  background: var(--wp--preset--color--ivoire);
  border-color: var(--wp--preset--color--argile);
}

.ea-submit:disabled,
.booking-button:disabled,
.ea-submit.is-disabled,
.booking-button.is-disabled {
  background-color: var(--wp--preset--color--taupe);
  background: var(--wp--preset--color--taupe);
  border-color: var(--wp--preset--color--taupe);
  color: var(--wp--preset--color--blanc);
}

/* --- Récapitulatif et confirmation ---------------------------------- */

.ea-new-ui #booking-overview {
  background: var(--wp--preset--color--ivoire);
  border: var(--eira-ea-filet);
  border-radius: 0;
}

.ea-new-ui #booking-overview .ea-label {
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--argile-fonce);
}

.ea-new-ui #booking-overview .value {
  color: var(--wp--preset--color--brun);
  font-weight: 500;
}

.ea-booking-complete #ea-success-box {
  background: var(--wp--preset--color--blanc);
  border: var(--eira-ea-filet);
  border-top: 2px solid var(--wp--preset--color--argile);
  border-radius: 0;
  box-shadow: 0 30px 60px -45px color-mix(in srgb, var(--wp--preset--color--brun) 60%, transparent);
}

#ea-overview-details td.ea-label {
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--argile-fonce);
}

/* --- Attente --------------------------------------------------------- */

#ea-loader::after,
.ea-new-ui #ea-loader::after {
  border-top-color: var(--wp--preset--color--argile);
}

/* Les créneaux indisponibles gardent la couleur éteinte du plugin, mais
   pas ses coins arrondis. Sélecteur repris du plugin : ses règles sur les
   créneaux montent à cinq classes, chaque `:not()` comptant son argument. */
.ea-bootstrap.ea-bootstrap .time-disabled, .ea-bootstrap .time-disabled, .ea-new-ui .time-disabled, .time-disabled, a.time-disabled {
  border-radius: 0;
}

/* --- Le cadre ---------------------------------------------------------
   Le plugin dessine sa propre carte : fond blanc, coins à 14px, double
   ombre portée. La page « Réserver un essayage » fournit déjà ce cadre —
   le même que celui du calendrier précédent — et la charte n'a pas de
   coins arrondis. On remet donc le conteneur à plat. Sélecteur repris du
   plugin pour passer devant à égalité. */

.ea-bootstrap.ea-new-ui,
.ea-bootstrap-wrapper.ea-new-ui {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  max-width: 100%;
}

.ea-bootstrap.ea-new-ui:not([style*="max-width"]),
.ea-bootstrap-wrapper.ea-new-ui:not([style*="max-width"]) {
  max-width: 100%;
}

/* ============================================================
   AVERTISSEMENT DE CONFIGURATION

   Quand le plugin ne trouve pas de créneau exploitable, il
   remplace le formulaire par une carte d'alerte — rouge, coins
   arrondis, texte anglais, et un bouton « Notify Administrator ».
   Elle s'affiche sur la page publique : une mariée peut donc la
   voir.

   Cette carte est construite en JavaScript avec des styles en
   ligne. C'est le seul endroit de cette feuille où « !important »
   est nécessaire : sans lui, un style en ligne gagne toujours.

   Le partage est le suivant :
   — toute visiteuse voit un message français, sobre, sans jargon
     et sans bouton d'administration ;
   — une fois connectée, tu vois le message d'origine du plugin et
     le bouton, puisque c'est toi qui peux agir.
   ============================================================ */

.ea-booking-alert-card {
  background: var(--wp--preset--color--blanc) !important;
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--taupe) 45%, transparent) !important;
  border-left: 3px solid var(--wp--preset--color--argile) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--wp--preset--font-family--montserrat) !important;
  padding: clamp(1.25rem, 3vw, 2rem) !important;
  margin: 0 !important;
}

/* La pastille de l'icône : ivoire et carrée, l'icône en argile. */
.ea-booking-alert-card > div > div:first-child {
  width: 2.5rem !important;
  height: 2.5rem !important;
  background: var(--wp--preset--color--ivoire) !important;
  color: var(--wp--preset--color--argile) !important;
  border-radius: 0 !important;
}

.ea-booking-alert-card h3 {
  font-family: var(--wp--preset--font-family--playfair) !important;
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  letter-spacing: -.01em !important;
  color: var(--wp--preset--color--brun) !important;
}

.ea-booking-alert-card p,
.ea-booking-alert-card li,
.ea-booking-alert-card li span {
  font-family: var(--wp--preset--font-family--montserrat) !important;
  font-size: .9rem !important;
  color: color-mix(in srgb, var(--wp--preset--color--brun) 72%, transparent) !important;
}

.ea-booking-alert-card li span:first-child {
  color: var(--wp--preset--color--argile) !important;
}

.ea-notify-admin-btn {
  background: var(--wp--preset--color--argile) !important;
  border: 1px solid var(--wp--preset--color--argile) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--wp--preset--color--blanc) !important;
  font-family: var(--wp--preset--font-family--montserrat) !important;
  font-size: .7rem !important;
  font-weight: 600 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  padding: .9rem 1.6rem !important;
}

.ea-notify-status {
  font-family: var(--wp--preset--font-family--montserrat) !important;
  font-size: .8rem !important;
}

/* --- Ce que voit une visiteuse ---------------------------------------
   Le libellé anglais du plugin est masqué et remplacé par un message
   à nous. Il est volontairement sans adresse ni téléphone : ces
   coordonnées sont dans les réglages EIRA, pas dans une feuille de
   style, et elles figurent déjà dans le pied de page. */

body:not(.logged-in) .ea-booking-alert-card h3,
body:not(.logged-in) .ea-booking-alert-card p,
body:not(.logged-in) .ea-booking-alert-card ul,
body:not(.logged-in) .ea-notify-admin-btn,
body:not(.logged-in) .ea-notify-status {
  display: none !important;
}

body:not(.logged-in) .ea-booking-alert-card > div > div:last-child::before {
  content: "Réservation momentanément indisponible";
  display: block;
  font-family: var(--wp--preset--font-family--playfair);
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--wp--preset--color--brun);
  margin-bottom: .5rem;
}

body:not(.logged-in) .ea-booking-alert-card > div > div:last-child::after {
  content: "Le calendrier est en cours de mise à jour. Écrivez-nous et nous fixons votre essayage avec vous.";
  display: block;
  font-family: var(--wp--preset--font-family--bodoni);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--wp--preset--color--brun) 75%, transparent);
}

/* --- Prestation et hôtesse : masquées quand il n'y a pas de choix -----

   Le plugin n'a pas de réglage pour cacher ces listes.

   Attention à la structure : la nouvelle interface ne montre pas les
   listes d'origine. Son script les met de côté (`.ea-new-ui-step-hidden`,
   masquées en style en ligne) et en affiche des COPIES, rangées dans
   `.ea-field-group` au sein de `.ea-filters-grid` — et il retire l'identifiant
   de la copie (`$clone.removeAttr('id')`). Viser `select#service` ne
   touchait donc que l'original déjà invisible : c'est pourquoi les listes
   restaient à l'écran. On vise les copies par leur attribut `name`, qui
   lui est conservé.

   Le critère est « rien à choisir », pas « c'est la prestation » : une
   liste est masquée tant qu'elle ne contient pas deux entrées réelles
   (l'invite « - », de valeur vide, ne compte pas). Le jour où tu ajouteras
   une deuxième prestation — un essayage « achat » par exemple — la liste
   réapparaîtra toute seule. La valeur, elle, reste dans le formulaire.

   `:has()` est lu par tous les navigateurs depuis 2023. Sur un navigateur
   plus ancien, les listes s'affichent, sans rien casser. */

.ea-new-ui .ea-field-group:not(:has(select option[value]:not([value=""]) ~ option[value]:not([value=""]))) {
  display: none;
}

/* Et la grille qui les portait, sinon son écart subsiste. */
.ea-new-ui .ea-filters-grid:not(:has(select option[value]:not([value=""]) ~ option[value]:not([value=""]))),
.ea-new-ui .ea-filters-grid-full:not(:has(select option[value]:not([value=""]) ~ option[value]:not([value=""]))) {
  display: none;
}

/* Ancienne interface du plugin, au cas où le réglage serait basculé. */
.ea-new-ui .step.form-group:not(:has(select option[value]:not([value=""]) ~ option[value]:not([value=""]))):has(select[name="service"], select[name="worker"], select[name="location"]) {
  display: none;
}

/* --- Le titre du plugin ----------------------------------------------
   « Book an appointment » n'est pas un réglage : il est écrit en dur dans
   son JavaScript (js/frontend-bootstrap.js). Ni les traductions du plugin
   ni un filtre WordPress ne l'atteignent. On le masque donc — la page
   porte déjà son titre, « Choisissez votre créneau », et son surtitre. */

.ea-new-ui .ea-booking-title {
  display: none;
}

/* ============================================================
   ÉCRAN DE CONFIRMATION (après l'envoi)

   C'est le dernier écran que voit une mariée : coche verte,
   bouton bleu, bouton vert, carte gris-bleu. Tout est écrit en
   style en ligne dans le gabarit du plugin, et une partie avec
   « !important ».

   Or un « !important » en ligne bat un « !important » de feuille
   de style — c'est l'ordre de la cascade, il n'y a pas de recours.
   Trois propriétés du titre sont donc hors d'atteinte : sa taille,
   sa graisse et sa couleur. Pour la couleur il existe un détour
   légitime, `-webkit-text-fill-color`, qui n'est pas posé en ligne
   et qui l'emporte sur `color` au rendu du texte. Pour la graisse,
   non : le titre reste en 700.
   ============================================================ */

#ea-success-box {
  font-family: var(--wp--preset--font-family--montserrat) !important;
  max-width: 34rem !important;
}

/* La pastille verte devient le filet argile de la charte. */
#ea-success-box > div:first-child > div {
  width: auto !important;
  height: auto !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: block !important;
}

#ea-success-box > div:first-child > div > svg {
  display: none !important;
}

#ea-success-box > div:first-child > div::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 1px;
  margin: .5rem auto 0;
  background: var(--wp--preset--color--argile);
}

.ea-confirmation-title {
  font-family: var(--wp--preset--font-family--playfair) !important;
  -webkit-text-fill-color: var(--wp--preset--color--brun);
}

.ea-status-note {
  font-family: var(--wp--preset--font-family--bodoni) !important;
  font-style: italic !important;
  font-size: 1rem !important;
  color: color-mix(in srgb, var(--wp--preset--color--brun) 75%, transparent) !important;
}

/* Le récapitulatif : ivoire, angles droits. */
#ea-overview-details {
  background: var(--wp--preset--color--ivoire) !important;
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--taupe) 45%, transparent) !important;
  border-radius: 0 !important;
  color: var(--wp--preset--color--brun) !important;
}

#ea-overview-details td.value {
  font-family: var(--wp--preset--font-family--montserrat) !important;
  color: var(--wp--preset--color--brun) !important;
}

/* --- Les deux boutons ------------------------------------------------
   Hiérarchie : « Ajouter à mon agenda » est l'action utile ici, elle
   passe en argile plein. « Réserver un autre essayage » devient le
   choix secondaire, en contour. L'icône blanche du second est masquée :
   sa couleur est en ligne et « !important », elle serait invisible sur
   un fond clair. */

#ea-overview-buttons a {
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--wp--preset--font-family--montserrat) !important;
  font-size: .7rem !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  padding: 1rem 1.6rem !important;
}

#ea-add-to-calendar {
  background: var(--wp--preset--color--argile) !important;
  border: 1px solid var(--wp--preset--color--argile) !important;
}

#ea-add-to-calendar:hover {
  background: var(--wp--preset--color--argile-fonce) !important;
  border-color: var(--wp--preset--color--argile-fonce) !important;
}

.ea-button-book-again {
  background: transparent !important;
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--taupe) 70%, transparent) !important;
  -webkit-text-fill-color: var(--wp--preset--color--brun);
}

.ea-button-book-again:hover {
  background: var(--wp--preset--color--ivoire) !important;
  border-color: var(--wp--preset--color--argile) !important;
}

.ea-button-book-again > svg {
  display: none !important;
}

/* La colonne du calendrier, vide une fois la réservation faite : le
   plugin masque son contenu mais garde la colonne, d'où la carte
   repoussée à droite et la moitié gauche déserte. */
.ea-booking-complete form.form-horizontal > div.col-md-6:first-child {
  display: none !important;
}

/* Les intitulés du récapitulatif : argile, et sur une seule ligne —
   « LE SHOWROOM » se coupait en deux à cause de l'interlettrage. */
#ea-overview-details td.ea-label {
  white-space: nowrap !important;
  letter-spacing: .14em !important;
  padding-right: 1.5rem !important;
  color: var(--wp--preset--color--argile-fonce) !important;
  -webkit-text-fill-color: var(--wp--preset--color--argile-fonce);
}

/* --- Les libellés des deux boutons, en français ----------------------
   `trans.book-again` et `trans.add-to-calendar` existent dans le
   gabarit, mais ne figurent PAS dans la liste des réglages que le
   plugin transmet à son JavaScript (src/fields/tablecolumns.php) : les
   renseigner ne changerait rien. On remplace donc le texte ici, comme
   pour la carte d'alerte. Le libellé du titre, lui, reste un réglage
   (`trans.confirmation-title`), il est donc éditable normalement. */

#ea-overview-buttons a > span {
  display: none !important;
}

#ea-overview-buttons a {
  padding: .95rem 1.4rem !important;
  font-size: .66rem !important;
  letter-spacing: .16em !important;
}

.ea-button-book-again::after {
  content: "Réserver un autre essayage";
}

#ea-add-to-calendar::after {
  content: "Ajouter à mon agenda";
}

/* --- Alertes du formulaire (v1.63.5) ---------------------------------

   Une couleur d'alerte, et une seule : --eira-alerte.

   Le terracotta a été essayé en 1.63.2 et abandonné : un message écrit
   dans la couleur d'accent du site ne se distingue pas du texte courant,
   et l'essai en conditions réelles l'a confirmé — le champ obligatoire
   manquant passait inaperçu, la visiteuse ne comprenait pas pourquoi
   rien ne partait.

   #B3271B est un rouge franc mais chaud (teinte 5°, proche du brun de la
   charte) : il se lit immédiatement comme une alerte sans jurer avec
   l'argile #A9714E. Contraste mesuré 6,1:1 sur le blanc cassé #FAF8F3
   (l'argile, lui, plafonne à 3,8:1), au-delà du seuil AA.

   Il ne sert QUE là : champ obligatoire non rempli, et refus du serveur.
   Si un troisième cas apparaît, il reprend cette variable — surtout pas
   une nouvelle nuance. */
.ea-bootstrap,
.ea-new-ui {
    --eira-alerte: #B3271B;
}

/* Refus du serveur (plafond atteint, créneau pris) : le plugin renvoie un
   HTTP 400 que son propre gestionnaire ignore ; assets/js/ea.js rattrape
   le message et pose cette classe. Voir DESIGN-CLASSES.md. */
.ea-bootstrap .ea-booking-summary-bar .ea-summary-text.eira-ea-erreur,
.ea-new-ui .ea-booking-summary-bar .ea-summary-text.eira-ea-erreur,
.ea-summary-text.eira-ea-erreur {
    color: var(--eira-alerte, #B3271B);
    font-style: normal;
    font-weight: 700;
}

/* Champ obligatoire non rempli.
   Cette règle doit passer APRÈS celle de la ligne 1452, qui peignait le
   message en terracotta — d'où sa place en fin de fichier et le poids de
   sélecteur supplémentaire. */
.ea-new-ui .step.final .form-group label.error,
.ea-bootstrap .step.final .form-group label.error,
.ea-new-ui .form-group label.error,
label.error {
    display: block;
    margin-top: 6px;
    color: var(--eira-alerte, #B3271B);
    font-family: var(--wp--preset--font-family--montserrat, Arial, sans-serif);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: none;
}

/* Le champ fautif lui-même : un liseré, pour le repérer sans lire. */
.ea-new-ui .step.final .form-control.error,
.ea-bootstrap .form-control.error,
.ea-new-ui select.error,
.ea-new-ui input.error,
.ea-new-ui textarea.error {
    border-color: var(--eira-alerte, #B3271B);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--eira-alerte, #B3271B) 16%, transparent);
}
