/* 1. Hide the services listed inside the calendar days */
.latepoint-calendar-month .le-service-wrapper,
.latepoint-calendar-month .le-more-services {
    display: none !important;
}

/* 2. Hide the "All Services" filter dropdown at the top */
.latepoint-calendar-filters .os-form-group:has(#filter_service_id) {
    display: none !important;
}

/* Fallback for older browsers if the dropdown wrapper still shows */
#filter_service_id {
    display: none !important;
}

/* 3. Highlight Selected Calendar Day */
.le-day-wrapper.mrb-day-selected {
    background: #e0e7ff !important;
    border-color: #4f46e5 !important;
    box-shadow: inset 0 0 0 2px #4f46e5 !important;
}

/* 4. Custom Stops Section Styles */
.mrb-stops-section {
    margin-top: 24px;
    margin-bottom: 24px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.mrb-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-top: 0;
    margin-bottom: 14px;
}

.mrb-stops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.mrb-stop-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    font-family: inherit;
}

.mrb-stop-card:hover {
    border-color: #4f46e5;
    background: #f9fafb;
}

.mrb-stop-card--active {
    border-color: #4f46e5;
    background: #f0f0ff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.mrb-stop-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.mrb-stop-duration {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.mrb-loading-stops,
.mrb-no-stops {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px 10px;
    color: #6b7280;
    font-size: 14px;
}

/* 5. Final Booking Card Styles */
.mrb-calendar-card {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-top: 20px;
}

.mrb-calendar-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mrb-calendar-badge {
    font-size: 11px;
    font-weight: 700;
    color: #4f46e5;
    background: #e0e7ff;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.mrb-calendar-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.mrb-calendar-body {
    padding: 20px;
}

.mrb-calendar-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    color: #6b7280;
}

.mrb-calendar-spinner {
    width: 32px; height: 32px;
    border: 3px solid #e0e7ff;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: mrb-spin .7s linear infinite;
    margin-bottom: 10px;
}

@keyframes mrb-spin {
    to { transform: rotate(360deg); }
}

.mrb-error {
    color: #ef4444;
    text-align: center;
    padding: 20px;
}

/* 6. HIDE SERVICES IN LATEPOINT FORM STEP (when form is prefilled on stop) */
.mrb-calendar-body .latepoint-w .step-service,
.mrb-calendar-body .latepoint-w .step-services,
.mrb-calendar-body .latepoint-body-w .step-service,
.mrb-calendar-body .latepoint-body-w .step-services,
.mrb-calendar-body .os-steps-progress-bar .step-service,
.mrb-calendar-body .os-steps-progress-bar [data-step-name="service"],
.mrb-calendar-body .os-steps-progress-bar [data-step-name="services"],
.mrb-calendar-body .latepoint-w .latepoint-step-services,
.mrb-calendar-body .latepoint-w .os-step-service,
.mrb-calendar-body .latepoint-w .os-booking-form-header .os-service-info,
.mrb-calendar-body .latepoint-w .os-booking-form-header .os-category-info {
    display: none !important;
}
