/* Booking slot picker - month calendar + time slot pills */

.booking-slot-picker .bsp-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.booking-slot-picker .bsp-cal-weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted, #6c757d);
    padding: 4px 0;
    text-transform: uppercase;
}

.booking-slot-picker .bsp-cal-day {
    position: relative;
    aspect-ratio: 1;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-tertiary, #adb5bd);
    font-size: 0.875rem;
    line-height: 1;
    padding: 0;
    cursor: default;
}

.booking-slot-picker .bsp-cal-day.bsp-available {
    background: var(--bs-primary-bg-subtle, rgba(13, 110, 253, 0.1));
    color: var(--bs-primary, #0d6efd);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.booking-slot-picker .bsp-cal-day.bsp-available:hover {
    background: var(--bs-primary, #0d6efd);
    color: #fff;
}

.booking-slot-picker .bsp-cal-day.bsp-selected {
    background: var(--bs-primary, #0d6efd);
    color: #fff;
}

/* Today marker - inset ring (base has border:none) + dot, composes over any state.
   Uses the theme-aware --color-primary-500 (brighter in dark mode) so the ring
   stays legible on the dark calendar; --bs-primary here is a dim navy. */
.booking-slot-picker .bsp-cal-day.bsp-today {
    box-shadow: inset 0 0 0 2px var(--color-primary-500, var(--bs-primary, #0d6efd));
}
/* On the solid-fill selected day the primary ring vanishes, so use a white one. */
.booking-slot-picker .bsp-cal-day.bsp-today.bsp-selected {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
}
/* State-independent today dot so today reads even when the ring blends into a fill. */
.booking-slot-picker .bsp-cal-day.bsp-today::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 3px;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary-500, var(--bs-primary, #0d6efd));
}
.booking-slot-picker .bsp-cal-day.bsp-today.bsp-selected::after {
    background: #fff;
}

.booking-slot-picker .bsp-cal-title {
    min-width: 10ch;
    text-align: center;
}

.booking-slot-picker .bsp-slot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}

.booking-slot-picker .bsp-slot-btn {
    min-width: 72px;
}

.booking-slot-picker.bsp-compact .bsp-cal-day {
    font-size: 0.8rem;
}

/* Submit feedback: inline error slide-in, invalid-field shake, button lock */

.booking-slot-picker .bsp-error.bsp-error-in {
    animation: bsp-error-in 0.25s ease;
}

@keyframes bsp-error-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.booking-slot-picker .bsp-shake {
    animation: bsp-shake 0.35s ease;
}

@keyframes bsp-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

.booking-slot-picker .bsp-submitting {
    opacity: 0.85;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .booking-slot-picker .bsp-error.bsp-error-in,
    .booking-slot-picker .bsp-shake {
        animation: none;
    }
}

@media (max-width: 767.98px) {
    .booking-slot-picker .bsp-slot-list {
        max-height: none;
    }
}
