html,
body {
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    -webkit-overflow-scrolling: touch;
}

.django-messages {
    position: relative;
    z-index: 50;
    padding-top: 16px;
}

.django-message {
    margin: 0 auto 10px;
    max-width: 1200px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #ffe4b0;
    color: #131313;
    width: 90%;
}

.django-message.success {
    background: #d6f5df;
}

.textarea-setting {
    height: auto;
    overflow-anchor: none;
}

.textarea-setting textarea {
    width: 100%;
    min-height: 120px;
    border: 1px solid #E2C998;
    background-color: transparent;
    border-radius: 10px;
    color: #fff;
    padding: 18px 20px;
    font-weight: 600;
    font-size: 20px;
    outline: none;
    resize: vertical;
    max-width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.date-group {
    display: none;
    width: 100%;
    overflow-anchor: none;
}

.date-group.active {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.date-group-hidden {
    display: none;
}

.date-group-visible {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.date-option.selected,
.time-option.selected,
.room.selected,
.extra-selected {
    outline: 2px solid #E2C998;
}

.time-option.hidden {
    display: none;
}

.room {
    cursor: pointer;
    overflow-anchor: none;
}

.room p {
    color: #fff;
    padding: 0 14px 18px;
    text-align: center;
}

.extra-block {
    width: 100%;
    cursor: pointer;
}

.extra-checkbox {
    display: none;
}

.bonusBlock .content {
    align-items: center;
    overflow-anchor: none;
}

.addBtn.active {
    background: #E2C998;
    color: #131313;
}

.addBtn,
.pay_btn,
.date-option,
.time-option,
.select_setting input,
.select_setting textarea,
.input_setting input,
.textarea-setting textarea {
    font-size: 16px;
    max-width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.addBtn,
.pay_btn,
.date-option,
.time-option {
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
    text-align: center;
}

.pay_btn {
    border: none;
    cursor: pointer;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #E2C998;
}

.field-errors {
    color: #ffb4b4;
    max-width: 850px;
    margin: -10px auto 20px;
    text-align: left;
}

@media (max-width: 640px) {
    .rooms .list {
        flex-direction: column;
        align-items: center;
    }

    .room > .img_wrapper,
    .room > .img_wrapper > img {
        width: min(100%, 300px);
    }

    .select_time {
        grid-template-columns: 1fr;
    }
}
