.wbk_waterfall_form {
    &__wrapper {
        display: flex;
        flex-direction: column;
        gap: 32px;
        width: 100%;
        padding: 32px;
        max-width: 480px;
        margin: 0 auto;
        text-align: left;
        box-sizing: border-box;
        background-color: #ffffff;
        border-radius: colors.$wbk-border-radius;
        box-shadow: colors.$wbk-shadow;
        font-family: colors.$wbk-font;
    }

    &__appear {
        position: relative;
        z-index: 0;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.45s ease-out, transform 0.45s ease-out;

        &--visible {
            opacity: 1;
            transform: none;
        }

        &:has([aria-expanded='true']) {
            z-index: 20;
        }

        > *:first-child {
            margin-top: 0;
        }

        > *:last-child {
            margin-bottom: 0;
        }
    }

    &__service-step {
        display: flex;
        flex-direction: column;
        gap: 8px;

        .wbk_waterfall_dropdown {
            margin-bottom: 0;
        }
    }

    &__selected-item {
        width: 100%;

        .wbk_service_item {
            background-color: #ffffff;
        }
    }

    &__calendar {
        margin-top: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;

        .wbk_booking_calendar {
            width: 100%;
            max-width: 100%;
            padding: 0;
            box-sizing: border-box;
        }

        .wbk_booking_calendar__calendar-wrapper,
        .react-calendar {
            width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box;
        }

        .wbk_step__unit_flexibility {
            margin-top: 24px;
        }

        .wbk_step__unit_offers {
            margin-top: 32px;
        }

        &--loading {
            position: relative;
            min-height: 220px;

            .wbk_booking_calendar__loader {
                position: relative;
                height: 220px;
            }
        }
    }

    &__timeslots {
        margin-top: 24px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;

        .wbk_timeslots {
            width: 100%;
            max-width: 100%;
            padding: 16px 0 0;
            box-sizing: border-box;
        }

        .wbk_timeslots__item {
            max-width: none;
        }
    }

    &__checkout {
        display: flex;
        justify-content: flex-end;
        margin-top: 32px;
        padding-top: 16px;
        border-top: 1px solid #edeff2;
    }

    &__checkout-button {
        margin-left: auto;
    }

    &__fields {
        margin-top: 32px;
        width: 100%;

        &--loading {
            display: flex;
            justify-content: center;
            padding: 24px 0;
        }
    }

    &__submit {
        display: flex;
        justify-content: flex-end;
        margin-top: 32px;
        padding-top: 16px;
        border-top: 1px solid #edeff2;
    }

    &__submit-button {
        margin-left: auto;
    }

    &__payment {
        margin-top: 32px;
        width: 100%;

        .wbk_step__native-scroll-wrapper {
            height: auto;
            max-height: none;
            flex: none;
            overflow: visible;
        }
    }

    &__summary {
        margin-top: 32px;
        padding-top: 16px;
        border-top: 1px solid #edeff2;
    }

    &__summary-header {
        margin-bottom: 12px;
    }

    &__summary-title {
        margin: 0;
        font-size: 16px;
        font-weight: 500;
        line-height: 20px;
        color: #22292f;
    }

    &__summary-items {
        margin: 0 0 16px;
        padding: 0;
        list-style: none;
    }

    &__summary-item {
        margin: 0 0 8px;
        font-size: 14px;
        line-height: 18px;
        color: #5d6b74;

        &-label {
            display: block;
        }

        &-staff {
            display: block;
            margin-top: 2px;
            font-size: 12px;
            line-height: 16px;
            color: #8b9ba3;
        }
    }

    &__summary-total {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        font-size: 14px;
        line-height: 18px;
        color: #22292f;

        strong {
            font-size: 16px;
            font-weight: 600;
        }
    }

    &__summary-subline {
        margin: 4px 0 0;
        font-size: 12px;
        line-height: 16px;
        color: #8b9ba3;
    }

    &__summary-toggle {
        margin-top: 12px;
    }

    &__summary-toggle-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 0;
        border: 0;
        background: none;
        cursor: pointer;
        font-family: inherit;
        font-size: 13px;
        line-height: 18px;
        color: #15b8a9;
    }

    &__summary-toggle-icon {
        width: 12px;
        height: 12px;
        transition: transform 0.2s ease;

        &--expanded {
            transform: rotate(180deg);
        }
    }

    &__summary-detail {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #edeff2;
    }

    &__summary-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 8px;
        font-size: 13px;
        line-height: 18px;
        color: #5d6b74;

        &--total {
            margin-top: 4px;
            padding-top: 8px;
            border-top: 1px solid #edeff2;
            color: #22292f;
        }
    }
}
