.wbk_recurring_booking_popup {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    border-radius: inherit;

    &__modal {
        position: relative;
        background-color: #fff;
        border-radius: 12px;
        max-width: 520px;
        width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        padding: 32px 24px 24px;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    }

    &__close {
        position: absolute;
        top: 12px;
        right: 12px;
        background: none;
        border: 1px solid #333;
        border-radius: 50%;
        cursor: pointer;
        padding: 4px;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0.7;

        &:hover {
            opacity: 1;
        }

        img {
            width: 12px;
            height: 12px;
        }
    }

    &__title {
        font-size: 18px;
        font-weight: 600;
        color: #333;
        margin: 0 0 4px;
    }

    &__subtitle {
        font-size: 14px;
        color: #668091;
        margin: 0 0 20px;
    }

    &__list-panel {
        height: 240px;
        min-height: 240px;
        max-height: 240px;
        margin-top: 16px;
        overflow-y: auto;
        overflow-x: hidden;
        border: 1px solid #edeff2;
        border-radius: 8px;
        background-color: #fff;
    }

    &__hint {
        margin: 12px 0 0;
        font-size: 13px;
        color: #b32d2e;
    }

    &__actions {
        display: flex;
        justify-content: flex-end;
        gap: 12px;
        margin-top: 24px;
        padding-top: 16px;
        border-top: 1px solid #edeff2;
    }

    @media screen and (max-width: 768px) {
        align-items: flex-start;
        padding: 12px;

        &__modal {
            max-height: calc(100vh - 24px);
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        &__list-panel {
            flex: 1 1 auto;
            min-height: 200px;
            max-height: 240px;
            -webkit-overflow-scrolling: touch;
        }

        &__actions {
            flex-shrink: 0;
        }
    }
}
