/*
|--------------------------------------------------------------------------
| Royal Servicess LLC — Hourly booking calendar V2
|--------------------------------------------------------------------------
*/

.royal-calendar__time,
.royal-calendar__time-fields {
    overflow: visible;
}

.royal-calendar-hour-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 20;
}

.royal-calendar-hour-picker .royal-calendar__time-input {
    position: relative;
    z-index: 2;
}

.royal-calendar-hour-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    width: 86px;
    max-height: 126px;
    overflow-x: hidden;
    overflow-y: auto;
    transform: translateX(-50%);
    border: 1px solid rgba(226, 202, 148, 0.30);
    border-radius: 14px;
    background:
        linear-gradient(
            180deg,
            rgba(24, 24, 27, 0.99),
            rgba(12, 12, 15, 0.99)
        );
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overscroll-behavior: contain;
    scrollbar-width: thin;
    z-index: 100;
}

.royal-calendar-hour-options[hidden] {
    display: none;
}

.royal-calendar-hour-option {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    background: transparent;
    color: rgba(255, 255, 255, 0.90);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition:
        background 140ms ease,
        color 140ms ease,
        opacity 140ms ease;
}

.royal-calendar-hour-option:last-child {
    border-bottom: 0;
}

.royal-calendar-hour-option:hover:not(:disabled),
.royal-calendar-hour-option:focus-visible:not(:disabled) {
    outline: none;
    background: rgba(226, 202, 148, 0.12);
    color: #e2ca94;
}

.royal-calendar-hour-option.is-selected:not(:disabled) {
    background: rgba(226, 202, 148, 0.16);
    color: #e2ca94;
}

.royal-calendar-hour-option:disabled {
    background: rgba(255, 255, 255, 0.015);
    color: rgba(255, 255, 255, 0.23);
    cursor: not-allowed;
    opacity: 0.62;
}

.royal-calendar__time-input[data-calendar-minute][readonly] {
    cursor: not-allowed;
    opacity: 0.72;
    caret-color: transparent;
    user-select: none;
}

.royal-calendar__time-input[data-calendar-minute][readonly]:focus {
    outline: none;
}

.royal-calendar__period-button:disabled {
    color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.02);
    cursor: not-allowed;
    opacity: 0.55;
}

.royal-calendar__day:disabled {
    color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.012);
    cursor: not-allowed;
    opacity: 0.46;
}

.royal-calendar__day:disabled:hover {
    color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.012);
    transform: none;
    box-shadow: none;
}

[data-rental-time-rule-note] {
    margin-top: 9px;
    line-height: 1.55;
}

@media (max-width: 640px) {
    .royal-calendar-hour-options {
        width: 82px;
        max-height: 126px;
    }

    .royal-calendar-hour-option {
        min-height: 42px;
    }
}
