/* Car Wash booking calendar — visual polish + mobile tuning
 * Loaded after bookacti-css-frontend so these rules win.
 */

/* ─── Single-product gallery (shrink the oversized hero image) ── */
.single-product div.product .woocommerce-product-gallery {
    max-width: 320px;
    width: 35% !important;
    margin-right: 1.5rem;
}

.single-product div.product .woocommerce-product-gallery__image img,
.single-product div.product .woocommerce-product-gallery img {
    max-width: 320px;
    max-height: 320px;
    width: auto;
    height: auto;
    border-radius: 8px;
}

.single-product div.product .summary.entry-summary {
    width: calc(65% - 1.5rem) !important;
}

@media (max-width: 768px) {
    .single-product div.product .woocommerce-product-gallery {
        max-width: 100%;
        width: 100% !important;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    .single-product div.product .summary.entry-summary {
        width: 100% !important;
    }
    .single-product div.product .woocommerce-product-gallery__image img {
        max-width: 240px;
        max-height: 240px;
    }
}

/* ─── Calendar container ─────────────────────────────────────── */
.bookacti-wc-fullwidth-cart-form {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #fafafa;
    border: 1px solid #ece7f5;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(138, 43, 226, 0.06);
}

.bookacti-calendar-title {
    color: #6a1b9a;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

/* ─── Toolbar (prev / next / view buttons) ───────────────────── */
.bookacti-calendar .fc-toolbar {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bookacti-calendar .fc-toolbar-title {
    color: #6a1b9a !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
}

.bookacti-calendar .fc-button-primary,
.bookacti-calendar .fc-button {
    background: linear-gradient(135deg, #8a2be2, #6a1b9a) !important;
    border: none !important;
    color: #fff !important;
    text-transform: none !important;
    font-weight: 500 !important;
    padding: 0.4rem 0.85rem !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

.bookacti-calendar .fc-button-primary:hover,
.bookacti-calendar .fc-button:hover {
    background: linear-gradient(135deg, #6a1b9a, #4a0d6d) !important;
}

.bookacti-calendar .fc-button-primary:disabled {
    opacity: 0.45 !important;
}

.bookacti-calendar .fc-button-active,
.bookacti-calendar .fc-button-primary:not(:disabled).fc-button-active {
    background: #4a0d6d !important;
}

/* ─── Time grid spacing (give each hour room to breathe) ──────── */
.bookacti-calendar .fc-timegrid-slot {
    height: 3em !important;
}

.bookacti-calendar .fc-timegrid-slot-label-cushion {
    padding: 0 0.5rem !important;
    font-size: 0.85rem;
    color: #6a1b9a;
}

.bookacti-calendar .fc-timegrid-slot-lane {
    border-color: #ece7f5 !important;
}

/* Month/day-grid: vertical gap between event chips */
.bookacti-calendar .fc-daygrid-day-events {
    padding: 2px 0;
}

.bookacti-calendar .fc-daygrid-event-harness + .fc-daygrid-event-harness {
    margin-top: 4px;
}

/* Hide the activity-name label — show time + availability only */
.bookacti-calendar .fc-event-title {
    display: none !important;
}
.bookacti-calendar .fc-event-time {
    font-weight: 700;
    font-size: 0.95rem;
}
.bookacti-calendar .carwash-event-avail {
    display: block;
    font-size: 0.75rem;
    opacity: 0.92;
    margin-top: 2px;
    color: #ffffff;
}
.bookacti-calendar .fc-event.bookacti-not-bookable .carwash-event-avail {
    color: #6a1b9a;
}

/* ─── Event chips ─────────────────────────────────────────────── */
.bookacti-calendar .fc-event,
.bookacti-calendar .fc-daygrid-event,
.bookacti-calendar .fc-timegrid-event {
    background: linear-gradient(135deg, #8a2be2, #6a1b9a) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 4px 6px !important;
    margin: 2px 1px !important;
    box-shadow: 0 1px 3px rgba(106, 27, 154, 0.25);
    transition: transform 0.12s ease;
}

.bookacti-calendar .fc-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(106, 27, 154, 0.35);
}

.bookacti-calendar .fc-event.bookacti-booked,
.bookacti-calendar .fc-event.bookacti-not-bookable {
    background: #d1c7df !important;
    color: #6a1b9a !important;
    opacity: 0.7;
}

/* Closed Sundays / non-business slots — fade so customers see "we're closed" */
.bookacti-calendar .fc-non-business {
    background: repeating-linear-gradient(
        45deg,
        #f5f3fa,
        #f5f3fa 6px,
        #ece7f5 6px,
        #ece7f5 12px
    ) !important;
}

/* ─── Day headers ─────────────────────────────────────────────── */
.bookacti-calendar .fc-col-header-cell {
    background: #f5f3fa;
    color: #6a1b9a;
    font-weight: 600;
    padding: 0.5rem 0 !important;
}

.bookacti-calendar .fc-day-today {
    background: rgba(138, 43, 226, 0.06) !important;
}

/* ─── Picked-events panel (after clicking) ───────────────────── */
.bookacti-picked-events {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border-left: 4px solid #8a2be2;
    border-radius: 6px;
}

.bookacti-picked-events-list-title {
    color: #6a1b9a;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ─── Add-to-cart button ─────────────────────────────────────── */
.bookacti-wc-fullwidth-cart-form .single_add_to_cart_button,
.bookacti-wc-fullwidth-cart-form button.alt {
    background: linear-gradient(135deg, #8a2be2, #6a1b9a) !important;
    color: #fff !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(106, 27, 154, 0.25) !important;
}

.bookacti-wc-fullwidth-cart-form .single_add_to_cart_button:hover {
    background: linear-gradient(135deg, #6a1b9a, #4a0d6d) !important;
}

/* ─── Mobile (≤768px) ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .bookacti-wc-fullwidth-cart-form {
        padding: 0.75rem;
    }
    .bookacti-calendar .fc-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .bookacti-calendar .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
        margin-bottom: 0.25rem;
    }
    .bookacti-calendar .fc-toolbar-title {
        font-size: 1rem !important;
        text-align: center;
    }
    .bookacti-calendar .fc-button {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.85rem !important;
    }
    .bookacti-calendar .fc-col-header-cell {
        font-size: 0.8rem;
    }
    .bookacti-calendar .fc-timegrid-slot {
        height: 2.25em !important;
    }
}

/* ─── Very small (≤480px) ─────────────────────────────────────── */
@media (max-width: 480px) {
    .bookacti-calendar .fc-col-header-cell-cushion {
        padding: 4px 2px !important;
    }
    .bookacti-calendar .fc-event-title {
        font-size: 0.75rem;
    }
}
