/*
 * Ensure weekdays disabled by the allowed_days ACF field are visually grayed
 * out — not hidden — in the jquery.datetimepicker calendar grid.
 *
 * jquery.datetimepicker adds the class `xdsoft_disabled` to every calendar
 * cell whose day falls in `disabledWeekDays`. The RnB base theme already
 * applies a light-grey background (#dedede) to these cells via rental-style.css,
 * but some themes or plugin updates may inadvertently hide them. These rules
 * force the correct "disabled but visible" appearance using !important to
 * win any specificity battle.
 */

/* --- Calendar day cells disabled by our weekday restriction --- */
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled:not(.xdsoft_current) {
    display: table-cell   !important;
    visibility: visible   !important;
    opacity: 0.45         !important;
    background: #e8e8e8   !important;
    color: #999           !important;
    cursor: not-allowed   !important;
    pointer-events: none  !important;
}

/* Prevent the hover state from making disabled cells look selectable */
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled:hover {
    background: #e8e8e8   !important;
    color: #999           !important;
    box-shadow: none      !important;
    cursor: not-allowed   !important;
}

/* The "rnb-disallowed-weekday" extra class added by beforeShowDay (if used) */
.xdsoft_datetimepicker .xdsoft_calendar td.rnb-disallowed-weekday {
    display: table-cell   !important;
    visibility: visible   !important;
    opacity: 0.45         !important;
    background: #e8e8e8   !important;
    color: #999           !important;
    cursor: not-allowed   !important;
    pointer-events: none  !important;
}
