/*
 * ================================================================
 * YITH WooCommerce Booking — Modern Event View
 * Shortcode: [booking_event id="X"]
 *
 * Layout: hero image → two-column (details | sticky form card)
 * ================================================================
 */

/* ----------------------------------------------------------------
   BASE
   ---------------------------------------------------------------- */
.yith-wcbk-event {
    max-width: 100%;
    margin: 0 0 3rem;
    font-family: inherit;
    color: #111827;
    box-sizing: border-box;
}

.yith-wcbk-event *,
.yith-wcbk-event *::before,
.yith-wcbk-event *::after {
    box-sizing: border-box;
}


/* ----------------------------------------------------------------
   HERO
   ---------------------------------------------------------------- */
.yith-wcbk-event__hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.yith-wcbk-event__hero-image {
    width: 100%;
    height: 380px;
    background-size: cover;
    background-position: center;
    display: block;
}

/* Gradient overlay so text is readable over any photo */
.yith-wcbk-event__hero--has-image .yith-wcbk-event__hero-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 2rem 2rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.30) 60%,
        transparent 100%
    );
}

/* Fallback: blue gradient when there is no product image */
.yith-wcbk-event__hero--no-image .yith-wcbk-event__hero-body {
    position: relative;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--wcbk-primary, #2563eb) 65%, #000000) 0%, var(--wcbk-primary, #2563eb) 100%);
    border-radius: 16px;
}

.yith-wcbk-event__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.5rem;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.yith-wcbk-event__tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 640px;
    line-height: 1.6;
}


/* ----------------------------------------------------------------
   BODY — single-column flex stack
   Info tiles appear as a compact horizontal row; form card takes
   full width so the internal 2-col grid can use every available px.
   ---------------------------------------------------------------- */
.yith-wcbk-event__body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}


/* ----------------------------------------------------------------
   DETAILS SECTION (info tiles + description + included)
   Desktop: info tiles flow horizontally; the rest stacks normally.
   ---------------------------------------------------------------- */
.yith-wcbk-event__details {
    min-width: 0;
}


/* ----------------------------------------------------------------
   INFO TILES GRID
   ---------------------------------------------------------------- */
.yith-wcbk-event__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.yith-wcbk-event__info-item {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: border-color 0.2s ease;
}

.yith-wcbk-event__info-item:hover {
    border-color: #d1d5db;
}

.yith-wcbk-event__info-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: color-mix(in srgb, var(--wcbk-primary, #2563eb) 8%, #ffffff);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wcbk-primary, #2563eb);
}

.yith-wcbk-event__info-icon svg {
    width: 18px;
    height: 18px;
}

.yith-wcbk-event__info-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.yith-wcbk-event__info-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9ca3af;
    margin-bottom: 3px;
}

.yith-wcbk-event__info-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ----------------------------------------------------------------
   SECTION TITLE
   ---------------------------------------------------------------- */
.yith-wcbk-event__section-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1.5px solid #e5e7eb;
}


/* ----------------------------------------------------------------
   DESCRIPTION
   ---------------------------------------------------------------- */
.yith-wcbk-event__description {
    margin-bottom: 2rem;
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.75;
}

.yith-wcbk-event__description p {
    margin: 0 0 1em;
}

.yith-wcbk-event__description p:last-child {
    margin-bottom: 0;
}


/* ----------------------------------------------------------------
   WHAT'S INCLUDED (services)
   ---------------------------------------------------------------- */
.yith-wcbk-event__included {
    margin-bottom: 2rem;
}

.yith-wcbk-event__included-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.625rem;
}

.yith-wcbk-event__included-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
}

.yith-wcbk-event__included-check {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: #ecfdf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
}

.yith-wcbk-event__included-check svg {
    width: 11px;
    height: 11px;
}


/* ----------------------------------------------------------------
   SIDEBAR / FORM CARD (right)
   ---------------------------------------------------------------- */
.yith-wcbk-event__sidebar {
    width: 100%;
}

.yith-wcbk-event__form-card {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* The price-header gradient needs its own border-radius since the card
   no longer clips with overflow:hidden */
.yith-wcbk-event__price-header {
    border-radius: 14px 14px 0 0;
}

/* Price header */
.yith-wcbk-event__price-header {
    background: linear-gradient(135deg, color-mix(in srgb, var(--wcbk-primary, #2563eb) 65%, #000000) 0%, var(--wcbk-primary, #2563eb) 100%);
    padding: 1.5rem;
    color: #ffffff;
}

.yith-wcbk-event__price-from {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

/* Expose the WooCommerce price in the blue header */
.yith-wcbk-event__price-header .price,
.yith-wcbk-event__price-header .woocommerce-Price-amount,
.yith-wcbk-event__price-header span.price {
    display: block !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.15 !important;
    margin: 0 !important;
}

.yith-wcbk-event__price-unit {
    display: block;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 4px;
}

.yith-wcbk-event__confirmation-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    padding: 5px 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 0.875rem;
}

.yith-wcbk-event__confirmation-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Form body */
.yith-wcbk-event__form-body {
    padding: 1.5rem 2rem 2rem;
}

/* Override max-width from booking-form-modern.css */
.yith-wcbk-event__form-body .yith-wcbk-booking-form {
    max-width: 100% !important;
    margin-bottom: 0;
}

/* Tighten form section labels inside the card */
.yith-wcbk-event__form-body .yith-wcbk-form-section__label,
.yith-wcbk-event__form-body .yith-wcbk-booking-form__label {
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.07em !important;
    text-transform: uppercase !important;
    color: #6b7280 !important;
    margin-bottom: 0.625rem !important;
}

/* Remove extra bottom margin on the last form section before totals */
.yith-wcbk-event__form-body .yith-wcbk-form-section:last-of-type {
    margin-bottom: 0;
}

/* Wrap resource cards nicely */
.yith-wcbk-event__form-body .yith-wcbk-form-section-resources-wrapper {
    margin-bottom: 0;
}

/* Hide WooCommerce elements the event view already handles */
.yith-wcbk-event__form-body .woocommerce-product-rating,
.yith-wcbk-event__form-body h1.product_title,
.yith-wcbk-event__form-body h2.product_title,
.yith-wcbk-event__form-body h3.product_title {
    display: none !important;
}

/* Hide the check-in/check-out meta strip inside the form
   (we already show it in the info grid) */
.yith-wcbk-event__form-body .yith-booking-meta {
    display: none !important;
}

/* Ensure the price section inside the form itself is hidden
   (price is shown in the blue header above) */
.yith-wcbk-event__form-body .yith-wcbk-form-section-price {
    display: none !important;
}


/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */

/* Tablet / mobile: body is already flex-column; show form card first */
@media (max-width: 900px) {
    /* Form card appears before the info/details section on small screens */
    .yith-wcbk-event__sidebar {
        order: -1;
    }

    .yith-wcbk-event__hero-image {
        height: 260px;
    }

    .yith-wcbk-event__info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .yith-wcbk-event__hero--has-image .yith-wcbk-event__hero-body,
    .yith-wcbk-event__hero--no-image .yith-wcbk-event__hero-body {
        padding: 1.5rem 1.25rem;
    }

    .yith-wcbk-event__hero-image {
        height: 200px;
    }

    .yith-wcbk-event__info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .yith-wcbk-event__info-item {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .yith-wcbk-event__info-icon {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }

    .yith-wcbk-event__info-value {
        font-size: 0.875rem;
    }

    .yith-wcbk-event__included-list {
        grid-template-columns: 1fr;
    }

    .yith-wcbk-event__price-header {
        padding: 1.25rem;
    }

    .yith-wcbk-event__price-header .price,
    .yith-wcbk-event__price-header span.price {
        font-size: 1.625rem !important;
    }

    .yith-wcbk-event__form-body {
        padding: 1.25rem;
    }
}


/* ================================================================
   STEPPED BOOKING FLOW
   ================================================================ */

/* ----------------------------------------------------------------
   Step progress bar
   (Uses divs, not ol/li, to avoid theme list-style overrides)
   ---------------------------------------------------------------- */
.yith-wcbk-event__steps {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 1rem 1.5rem 0.25rem !important;
    gap: 0 !important;
    border: none !important;
    background: none !important;
}

/* Connector line between steps */
.yith-wcbk-event__step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    min-width: 12px;
    transition: background 0.4s ease;
}

/* Done line uses the same blue as the circles — no green/blue colour clash */
.yith-wcbk-event__step-line.is-done {
    background: var(--wcbk-primary, #2563eb);
}

/* Single step */
.yith-wcbk-event__step {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    flex-direction: row !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #9ca3af !important;
    transition: color 0.25s ease !important;
    white-space: nowrap !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    list-style: none !important;
}

/* Step circle number */
.yith-wcbk-event__step-num {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    border-radius: 50% !important;
    background: #e5e7eb !important;
    color: #9ca3af !important;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease !important;
    line-height: 1 !important;
}

.yith-wcbk-event__step-label {
    line-height: 1 !important;
}

/* Active */
.yith-wcbk-event__step.is-active {
    color: var(--wcbk-primary, #2563eb) !important;
}

.yith-wcbk-event__step.is-active .yith-wcbk-event__step-num {
    background: var(--wcbk-primary, #2563eb) !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
}

/* Done — blue circle with checkmark so it reads as "completed" without
   the green/blue colour clash on the connector line */
.yith-wcbk-event__step.is-done {
    color: #6b7280 !important;
}

.yith-wcbk-event__step.is-done .yith-wcbk-event__step-num {
    background: var(--wcbk-primary, #2563eb) !important;
    color: #ffffff !important;
    font-size: 0 !important; /* hide the digit */
    position: relative !important;
}

/* White checkmark drawn with a rotated border */
.yith-wcbk-event__step.is-done .yith-wcbk-event__step-num::after {
    content: '' !important;
    display: block !important;
    width: 5px !important;
    height: 9px !important;
    border: 2px solid #ffffff !important;
    border-top: none !important;
    border-left: none !important;
    transform: rotate(45deg) translateY(-1px) !important;
    position: absolute !important;
}


/* ----------------------------------------------------------------
   Book Now button
   ---------------------------------------------------------------- */
.yith-wcbk-event__form-body .single_add_to_cart_button,
.yith-wcbk-event__form-body button[type="submit"] {
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    font-size: 1.0625rem !important;
    font-weight: 700 !important;
    background: var(--wcbk-primary, #2563eb) !important;
    border-color: var(--wcbk-primary, #2563eb) !important;
    border-radius: 12px !important;
    letter-spacing: 0.02em !important;
    margin-top: 0.875rem !important;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35) !important;
}

.yith-wcbk-event__form-body .single_add_to_cart_button:hover,
.yith-wcbk-event__form-body button[type="submit"]:hover {
    background: var(--wcbk-primary-hover, #1d4ed8) !important;
    border-color: var(--wcbk-primary-hover, #1d4ed8) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important;
}


/* ----------------------------------------------------------------
   "Continue to details" button
   ---------------------------------------------------------------- */
.yith-wcbk-event__continue {
    padding: 1rem 0 0.25rem;
}

.yith-wcbk-event__continue-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 0.75rem 1.25rem !important;
    background: color-mix(in srgb, var(--wcbk-primary, #2563eb) 8%, #ffffff) !important;
    color: var(--wcbk-primary, #2563eb) !important;
    border: 1.5px solid color-mix(in srgb, var(--wcbk-primary, #2563eb) 30%, #ffffff) !important;
    border-radius: 10px !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease !important;
    text-align: center !important;
    line-height: 1 !important;
}

.yith-wcbk-event__continue-btn svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease !important;
}

.yith-wcbk-event__continue-btn:hover {
    background: color-mix(in srgb, var(--wcbk-primary, #2563eb) 20%, #ffffff) !important;
    border-color: color-mix(in srgb, var(--wcbk-primary, #2563eb) 45%, #ffffff) !important;
    transform: translateY(-1px) !important;
}

.yith-wcbk-event__continue-btn:hover svg {
    transform: translateX(3px) !important;
}


/* ----------------------------------------------------------------
   Stepped flow — CSS class-based visibility
   Classes are on the card element so they survive YITH AJAX re-renders
   (which wipe out inline display:none styles on child elements).

   .yith-wcbk-event--stepped            → base; hides dates + details + disables button
   .yith-wcbk-event--date-revealed      → step 2: shows dates section
   .yith-wcbk-event--details-revealed   → step 3: shows persons/services, enables button
   ---------------------------------------------------------------- */

@keyframes wcbkFadeSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Dates hidden at step 1 ── */
.yith-wcbk-event--stepped:not(.yith-wcbk-event--date-revealed) .yith-wcbk-form-section-dates-wrapper {
    display: none !important;
}

.yith-wcbk-event--date-revealed .yith-wcbk-form-section-dates-wrapper {
    display: block !important;
    animation: wcbkFadeSlideIn 0.35s ease;
}

/* ── Persons + services hidden until step 3 ── */
.yith-wcbk-event--stepped:not(.yith-wcbk-event--details-revealed) .yith-wcbk-form-section-persons-wrapper,
.yith-wcbk-event--stepped:not(.yith-wcbk-event--details-revealed) .yith-wcbk-form-section-services-wrapper {
    display: none !important;
}

/* persons wrapper: two columns side by side */
.yith-wcbk-event--details-revealed .yith-wcbk-form-section-persons-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    animation: wcbkFadeSlideIn 0.35s ease;
}

.yith-wcbk-event--details-revealed .yith-wcbk-form-section-services-wrapper {
    display: block !important;
    animation: wcbkFadeSlideIn 0.35s ease;
}

/* Each person type takes half the width */
.yith-wcbk-event--details-revealed .yith-wcbk-form-section-persons-wrapper
.yith-wcbk-form-section-person-types {
    flex: 1 1 48% !important;
    min-width: 0 !important;
}

/* ── Book Now disabled until step 3 ── */
.yith-wcbk-event--stepped:not(.yith-wcbk-event--details-revealed) .single_add_to_cart_button {
    opacity: 0.45 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
    filter: grayscale(30%) !important;
}

.yith-wcbk-event--details-revealed .single_add_to_cart_button {
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    filter: none !important;
}


/* ----------------------------------------------------------------
   Totals skeleton / shimmer
   .wcbk-totals-shimmer on the container = prices loading
   ---------------------------------------------------------------- */

/* Shimmer sweep shared keyframe */
@keyframes wcbkShimmerSweep {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Skeleton placeholder rows (injected by JS before YITH prices arrive) */
.wcbk-skeleton {
    width: 100%;
}

.wcbk-skeleton__row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 7px 0 !important;
}

.wcbk-skeleton__row--total {
    padding-top: 10px !important;
    margin-top: 6px !important;
    border-top: 1px solid #e5e7eb !important;
}

.wcbk-skeleton__bar {
    display: inline-block !important;
    height: 13px !important;
    border-radius: 6px !important;
    background: linear-gradient(90deg, #ececec 25%, #e0e0e0 50%, #ececec 75%) !important;
    background-size: 200% 100% !important;
    animation: wcbkShimmerSweep 1.4s ease-in-out infinite !important;
}

.wcbk-skeleton__bar--label       { width: 72px !important; }
.wcbk-skeleton__bar--value       { width: 46px !important; }
.wcbk-skeleton__bar--label-bold  { width: 42px !important; height: 15px !important; }
.wcbk-skeleton__bar--value-bold  { width: 52px !important; height: 15px !important; background: linear-gradient(90deg, #ddd 25%, #d0d0d0 50%, #ddd 75%) !important; background-size: 200% 100% !important; }

/* Real list: invisible while shimmer active, fades in when shimmer removed */
.wcbk-totals-shimmer .yith-wcbk-booking-form-totals__list {
    opacity: 0 !important;
    transition: none !important;
}

.yith-wcbk-booking-form-totals .yith-wcbk-booking-form-totals__list {
    transition: opacity 0.35s ease;
}


/* ----------------------------------------------------------------
   Form section spacing inside the card
   ---------------------------------------------------------------- */

/* Give each wrapper group proper breathing room */
.yith-wcbk-event__form-body .yith-wcbk-form-section-wrapper {
    margin-top: 1.25rem !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid #f3f4f6 !important;
}

/* The first visible section shouldn't have a top border */
.yith-wcbk-event__form-body .yith-wcbk-form-section-resources-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
}

/* Individual sections within a wrapper */
.yith-wcbk-event__form-body .yith-wcbk-form-section {
    margin-bottom: 1rem !important;
}

.yith-wcbk-event__form-body .yith-wcbk-form-section:last-child {
    margin-bottom: 0 !important;
}


/* ----------------------------------------------------------------
   Totals separator
   ---------------------------------------------------------------- */
.yith-wcbk-event--stepped .yith-wcbk-booking-form-totals,
.yith-wcbk-event--stepped .yith-wcbk-form-section-totals {
    border-top: 1.5px solid #e5e7eb;
    padding-top: 1rem;
    margin-top: 1.25rem;
}


/* ----------------------------------------------------------------
   Person-type section layout (Adults / Kids rows)
   Scoped to the event form so other booking forms aren't affected.
   ---------------------------------------------------------------- */

/* Each person-type row: label left, stepper right, centred vertically */
.yith-wcbk-event__form-body .yith-wcbk-form-section-person-types {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 0 !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid #f3f4f6 !important;
    gap: 16px !important;
}

.yith-wcbk-event__form-body .yith-wcbk-form-section-person-types:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* Label: normal weight, not tiny uppercase */
.yith-wcbk-event__form-body .yith-wcbk-form-section-person-types .yith-wcbk-form-section__label {
    flex: 1 !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    color: #111827 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Price per person shown below the type name in event form */
.yith-wcbk-event__form-body .wcbk-person-type-price {
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    color: var(--wcbk-primary, var(--wcbk-primary, #2563eb)) !important;
    display: block !important;
    margin-top: 2px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Content area: shrink to stepper size */
.yith-wcbk-event__form-body .yith-wcbk-form-section-person-types .yith-wcbk-form-section__content {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
}


/* ----------------------------------------------------------------
   Custom pill-stepper widget (.wcbk-person-stepper)
   Injected by JS to replace the theme's unknown-class +/- widget.
   ---------------------------------------------------------------- */

.wcbk-person-stepper {
    display: inline-flex !important;
    align-items: center !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 100px !important;
    overflow: hidden !important;
    height: 44px !important;
    background: #ffffff !important;
    transition: border-color 0.2s ease !important;
    gap: 0 !important;
}

.wcbk-person-stepper:hover {
    border-color: #d1d5db !important;
}

.wcbk-person-stepper__btn {
    background: transparent !important;
    border: none !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
    color: var(--wcbk-primary, var(--wcbk-primary, #2563eb)) !important;
    cursor: pointer !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
}

.wcbk-person-stepper__btn:hover:not(:disabled) {
    /* Light tint of primary for hover — 10% opacity overlay */
    background: color-mix(in srgb, var(--wcbk-primary, var(--wcbk-primary, #2563eb)) 10%, transparent) !important;
}

.wcbk-person-stepper__btn:active:not(:disabled) {
    background: color-mix(in srgb, var(--wcbk-primary, var(--wcbk-primary, #2563eb)) 22%, transparent) !important;
}

.wcbk-person-stepper__btn:disabled {
    color: #d1d5db !important;
    cursor: not-allowed !important;
}

.wcbk-person-stepper__num {
    min-width: 36px !important;
    text-align: center !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
    border-left: 1px solid #e5e7eb !important;
    border-right: 1px solid #e5e7eb !important;
    line-height: 44px !important;
    padding: 0 6px !important;
    flex-shrink: 0 !important;
}


/* ----------------------------------------------------------------
   Hide duration — already shown in the event info grid above
   ---------------------------------------------------------------- */
.yith-wcbk-event__form-body .yith-wcbk-form-section-duration {
    display: none !important;
}


/* ----------------------------------------------------------------
   Flash animation — guides user when they try to submit early
   ---------------------------------------------------------------- */
@keyframes wcbkFlash {
    0%   { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); }
    50%  { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.yith-wcbk-event__continue.wcbk-needs-attention .yith-wcbk-event__continue-btn,
.yith-wcbk-form-section-dates-wrapper.wcbk-needs-attention {
    animation: wcbkFlash 0.45s ease-out 2 !important;
    border-radius: 10px;
}


/* ----------------------------------------------------------------
   Mobile step bar
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
    .yith-wcbk-event__steps {
        padding: 0.75rem 1.25rem 0.25rem !important;
    }

    .yith-wcbk-event__step-label {
        display: none !important;
    }

    .yith-wcbk-event__step-num {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
    }
}


/* ================================================================
   DESKTOP TWO-COLUMN FORM LAYOUT  (≥ 901px)
   Left column  — booking options (type, people, services, totals)
   Right column — calendar + time slots
   Mobile stays single-column (no changes below 901px).
   ================================================================ */
@media (min-width: 901px) {

    /* ── Info tiles: horizontal flex row above the form card ── */
    .yith-wcbk-event__info-grid {
        display: flex !important;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-bottom: 0;
    }

    .yith-wcbk-event__info-item {
        flex: 0 0 auto;
        min-width: 160px;
    }

    /* ── Inner form: CSS grid ── */
    .yith-wcbk-event__form-body .yith-wcbk-booking-form {
        display: grid !important;
        /* Left: options; Right: calendar + time side by side */
        grid-template-columns: minmax(0, 260px) 1fr !important;
        column-gap: 2rem !important;
        row-gap: 0 !important;
        align-items: start !important;
    }

    /* Vertical divider between the two columns */
    .yith-wcbk-event__form-body .yith-wcbk-booking-form::after {
        display: none; /* divider via border-left on right column instead */
    }

    /* ── Left column items ── */
    .yith-wcbk-event__form-body .yith-wcbk-form-section-resources-wrapper,
    .yith-wcbk-event__form-body .yith-wcbk-form-section-persons-wrapper,
    .yith-wcbk-event__form-body .yith-wcbk-form-section-services-wrapper,
    .yith-wcbk-event__form-body .yith-wcbk-booking-form-totals {
        grid-column: 1 !important;
        border-top: none !important;
        margin-top: 0 !important;
    }

    /* Space between left-column sections */
    .yith-wcbk-event__form-body .yith-wcbk-form-section-resources-wrapper {
        padding-bottom: 1rem !important;
        border-bottom: 1px solid #f3f4f6 !important;
    }

    .yith-wcbk-event__form-body .yith-wcbk-form-section-persons-wrapper {
        padding-top: 1rem !important;
    }

    .yith-wcbk-event__form-body .yith-wcbk-form-section-services-wrapper {
        padding-top: 0.75rem !important;
    }

    .yith-wcbk-event__form-body .yith-wcbk-booking-form-totals {
        padding-top: 0.75rem !important;
        margin-top: 0 !important;
        border-top: 1px solid #f3f4f6 !important;
    }

    /* ── Right column: dates (calendar + times) ── */
    .yith-wcbk-event__form-body .yith-wcbk-form-section-dates-wrapper {
        grid-column: 2 !important;
        grid-row: 1 / span 10 !important;
        border-left: 1px solid #f0f0f0 !important;
        padding-left: 2rem !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        border-top: none !important;
    }

    /* When date is revealed: flex row so calendar and time slots sit side by side */
    .yith-wcbk-event--date-revealed
    .yith-wcbk-event__form-body .yith-wcbk-form-section-dates-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        gap: 0 !important;
    }

    /* Calendar section: fixed 320px — never squeezed */
    .yith-wcbk-event__form-body .yith-wcbk-form-section-dates-wrapper
    .yith-wcbk-form-section-dates:not(.yith-wcbk-form-section-dates-date-time) {
        flex: 0 0 320px !important;
        width: 320px !important;
        min-width: 320px !important;
        max-width: 320px !important;
    }

    /* Time slots panel: fills ALL remaining space beside the calendar */
    .yith-wcbk-event__form-body .yith-wcbk-form-section-dates-wrapper
    .yith-wcbk-form-section-dates-date-time {
        flex: 1 1 0 !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        margin-left: 1.5rem !important;
        padding-left: 1.5rem !important;
        border-left: 1px solid #f0f0f0 !important;
    }

    /* Step 1 (no date revealed yet): resources span full width,
       right column empty — avoids wasted whitespace on step 1 */
    .yith-wcbk-event--stepped:not(.yith-wcbk-event--date-revealed)
    .yith-wcbk-event__form-body .yith-wcbk-form-section-resources-wrapper {
        grid-column: 1 / -1 !important;
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    /* Book Now + continue buttons stay in col 1 (they're outside .yith-wcbk-booking-form
       so they naturally fall below the grid, full width of the form card) */
    .yith-wcbk-event__form-body .yith-wcbk-event__continue,
    .yith-wcbk-event__form-body .single_add_to_cart_button,
    .yith-wcbk-event__form-body button[type="submit"] {
        /* No grid-column needed — these are siblings of .yith-wcbk-booking-form,
           not children, so they flow below the grid at full card width */
    }

    /* Remove the wrapper top-border/padding spacing that was for vertical layout */
    .yith-wcbk-event__form-body .yith-wcbk-form-section-wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
        border-top: none !important;
    }
}
