[x-cloak] {
    display: none;
}
.rw-booking-form {
    --bf-primary: hsl(334, 71%, 48%);
    --bf-primary-light: hsl(333, 69%, 95%);
    --bf-black: hsl(0, 0%, 0%);
    --bf-white: hsl(0, 0%, 100%);
    --gray-color-bg: hsl(0, 0%, 97%);
    --text-gray: hsl(0, 0%, 71%);
    --rounded-base: 12px;
    --space-base: 1rem;
    --label-height: 7.3rem;

    position: relative;
    margin-top: calc(2 * var(--space-base));
    color: var(--bf-black);
    user-select: none;
    display: flex;
    flex-direction: column;
    gap: calc(2 * var(--space-base));
    margin-bottom: calc(6 * var(--space-base));
    background-color: var(--gray-color-bg);
    padding: calc(2 * var(--space-base));
    border-radius: var(--rounded-base);
}

.rw-booking-form p {
    margin: 0;
}

/* header */
.rw-bf__header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-base);
    cursor: pointer;
}

.duration {
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1;
    flex-grow: 1;
}
.rw-bf__header .selected-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--space-base) * 2);
}
[data-open="true"] > .selecte-btn {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0);
    transition: all 200ms ease-in;
}
[data-open="true"] > .selecte-btn--date {
    opacity: 1;
    border: 1px solid rgba(0, 0, 0, 0.13);
}

.selecte-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: calc(var(--space-base) / 2);
    width: 100%;
    background-color: var(--bf-white);
    padding: 0 calc(2 * var(--space-base));
    border-radius: var(--rounded-base);
    height: var(--label-height);
    position: relative;
    z-index: 10;
}
.selecte-btn__add {
    background-color: var(--bf-white);
    display: flex;
    justify-content: center;
    gap: var(--space-base);
}

.selecte-btn__reset {
    background-color: var(--gray-color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
}
.empty .selecte-btn__reset {
    transform: rotate(45deg);
}
.selecte-btn .title {
    font-weight: 400;
    white-space: nowrap;
}
.selecte-btn .value {
    font-weight: 700;
    color: var(--bf-black);
    transition: all 200ms ease-in;
}
.selecte-btn .value.empty {
    font-weight: 400;
    color: var(--text-gray);
}


/* body */

.rw-bf__body {
    display: flex;
    flex-direction: column;
}
.date-container {
    position: absolute;
    top: 0;
    right: 0;
    padding-inline: calc(2 * var(--space-base));
    padding-top: calc(var(--label-height) + (var(--space-base) * 4));
    padding-bottom: calc(var(--space-base) * 2);
    border-radius: var(--rounded-base);
    background-color: var(--bf-white);
    width: 100vw;
    max-width: 625px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 9;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(5px);
    transition: all 500ms cubic-bezier(0.075, 0.82, 0.165, 1);
}
.date-container[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.people {
    display: flex;
    flex-direction: column;
    gap: var(--space-base);
    position: relative;
}
.people__list {
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-base) * 2);
    position: absolute;
    top: calc(var(--space-base) + 100%);
    left: 0;
    z-index: 1;
    width: 100%;
    padding: calc(var(--space-base) * 2);
    padding-bottom: calc(var(--space-base) * 4);
    background-color: var(--bf-white);
    border-radius: var(--rounded-base);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(5px);
    transition: all 500ms cubic-bezier(0.075, 0.82, 0.165, 1);
}
.people__list[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.selecte-btn--people {
    z-index: 1;
}

.people__item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.people__item__title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--bf-black);
    line-height: 1;
    font-weight: 400;
}

.people__item__title .person-title {
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    color: var(--bf-black);
    line-height: 1;
    margin-bottom: 0;
}

.people__item__title .person-price {
    font-size: 14px;
    color: var(--bf-black);
    line-height: 1;
}

.people__item__title .person-description {
    font-size: 14px;
    color: hsl(0, 0%, 40%);
}

.people__counter {
    display: flex;
    align-items: center;
}

.people__counter button {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.1s ease;
    border: 1px solid #444;
    background-color: var(--bf-white);
}

.people__counter button:active {
    background-color: var(--bf-primary-light);
    transform: scale(0.9);
}

.people__counter button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.people__counter input {
    width: 40px;
    height: 40px;
    pointer-events: none;
    transition: all 0.3s ease;
    border: none;
    background-color: #fff;
    text-align: center;
}

/* Chrome, Safari, Edge, Opera */
.people__counter input::-webkit-inner-spin-button,
.people__counter input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.people__counter input {
    -moz-appearance: textfield;
} 

.time {
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-base) * 2);
    margin-top: calc(var(--space-base) * 3);
}

.time__title {
    font-weight: 500;
    font-size: 1.6rem;
    line-height: 1;
}

.time__list {
    display: flex;
    gap: calc(var(--space-base) * 2);
}

.time__item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.time__item input[type="radio"] {
    display: none;
}

.time__item label {
    cursor: pointer;
    font-weight: 500;
    padding: var(--space-base) calc(var(--space-base) * 2);
    background-color: var(--gray-color-bg);
    margin-bottom: 0;
    color: var(--bf-black);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.time__item input[type="radio"]:checked+label {
    background-color: var(--bf-black);
    color: var(--bf-white);
}

.hr {
    border: none;
    border-bottom: 2px dashed var(--bf-black);
    height: 1px;
    margin-block: calc(var(--space-base));
}

/* footer */

.rw-bf__footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.rw-bf__price {
    display: flex;
    gap: 10px;
    align-items: center;
    line-height: 1;
}

.price {
    display: flex;
    gap: 2px;
    align-items: center;
    font-weight: bold;
    font-size: 20px;
}

.rw-bf__rev-details {
    display: flex;
    gap: calc(var(--space-base) / 2);
    align-items: center;
    cursor: pointer;
    color: var(--bf-primary);
    font-weight: 500;
    margin-left: 5px;
}
.rw-bf__rev-details svg {
    margin-top: 4px;
    width: 14px;
    height: 14px;
}

.add-to-cart-btn {
    padding: var(--space-base) calc(var(--space-base) * 2);
    height: 5rem;
    font-weight: 500;
    background-color: var(--bf-primary);
    color: var(--bf-white);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}


@media(max-width: 768px) {
    .rw-booking-form {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        padding: calc(2 * var(--space-base));
        background-color: var(--bf-white);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        z-index: 10;
        height: 100%;
        margin-top: 0;
        transition: all 300ms;

        * {
            /* border: 1px solid red; */
        }
    }
    .rw-booking-form[data-open="true"] {
        top: 0;
        opacity: 1;
    }
    .rw-bf__header .selected-container {
        gap: 0;
        margin-top: var(--space-base);
    }
    .bf-close-btn {
        width: fit-content;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: var(--bf-white);
        cursor: pointer;
    }
    .selecte-btn {
        padding: 0;
        flex-direction: row;
        gap: var(--space-base);
    }
    .selecte-btn .label {
        display: flex;
        flex-direction: column;
        gap: calc(var(--space-base) / 2);
    }
    .selecte-btn--date {
        grid-column: 1/2;
        grid-row: 1/2;
    }
    .modify-btn {
        grid-column: 2/3;
        grid-row: 1/2;
        display: flex;
        width: fit-content;
        height: fit-content;
        margin: auto;
        margin-right: 0;
        white-space: nowrap;
        padding: var(--space-base) calc(var(--space-base) * 2);
        border-radius: 30px;
        font-weight: 500;
    }
    .rw-bf__body .date-container {
        position: fixed;
        top: 100%;
        height: 100%;
        width: 100%;
        visibility: hidden;
        padding-top: calc(var(--space-base) * 2);
        background-color: var(--bf-white);
        padding-inline: calc(var(--space-base) * 2);
        z-index: 11;
        display: flex;
        flex-direction: column;
        transition: all 300ms;
        opacity: 0;
    }
    .rw-bf__body .date-container[data-open="true"] {
        visibility: visible;
        top: 0;
        opacity: 1;
    }
    .rw-bf__body .date-container__footer {
        margin-top: auto;
        height: var(--label-height);
        background-color: var(--bf-white);
        padding-top: var(--space-base);
        display: flex;
        justify-content: flex-end;
        gap: var(--space-base);
    }
    .next-btn {
        padding: var(--space-base) calc(var(--space-base) * 2);
        height: 5rem;
        font-weight: 500;
        background-color: var(--bf-black);
        color: var(--bf-white);
        border-radius: 30px;
        display: flex;
        align-items: center;
        gap: var(--space-base);
        margin-left: auto;
        cursor: pointer;
    }
    .rw-bf__body .date-container__header {
        background-color: var(--bf-white);
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: var(--space-base);
        font-weight: 500;
        font-size: 16px;
    }
    .rw-bf__body .date-container__header .title {
        margin-top: var(--space-base);
    }
    .people__list-container {
        position: fixed;
        left: 0;
        right: 0;
        bottom: -100%;
        padding-inline: calc(2 * var(--space-base));
        padding-bottom: calc(var(--space-base) * 3);
        padding-top: calc(var(--space-base) * 2);
        background-color: var(--bf-white);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5), 0 0 0 1500px rgba(0, 0, 0, 0.3);
        border-radius: 25px 25px 0 0;
        display: flex;
        flex-direction: column;
        width: 100%;
        z-index: 11;
        visibility: hidden;
        transition: all 300ms;
    }
    .people__list-container[data-open="true"] {
        bottom: 0;
        visibility: visible;
    }
    .people__list-container-footer {
        margin-top: auto;
    }
    .people__list {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        position: relative;
        top: 0;
        box-shadow: none;
        padding-inline: 0;
    }
    .rw-bf__body {
        height: 100%;
        padding-bottom: calc(var(--label-height) + (var(--space-base) * 3));
    }
    .rw-bf__price-label {
        font-size: 16px;
    }
    .form-summary {
        margin-top: auto;
    }
    .form-summary .summary-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: auto;
        font-size: 17px;
    }
    .taxes-label {
        font-size: 14px;
    }
    .form-summary .summary-item .value {
        font-weight: bold;
    }
    .summary-item__price {
        font-weight: bold;
    }
    .rw-bf__footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: calc(var(--space-base) * 2);
        background-color: var(--bf-white);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        z-index: 10;
    }
}






.loading {
    animation: loading 1s infinite;
}

@keyframes loading {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}