/* Reservation conditions pop-up (shelter details). Covers ONLY the reservation form area. */
.reservation-area {
    position: relative;
}

.reservation-area.has-terms {
    min-height: 620px;
}

/* display:flex below would override the hidden attribute */
.reservation-terms[hidden],
.reservation-terms-reopen[hidden] {
    display: none !important;
}

.reservation-terms-reopen {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.reservation-terms-reopen .btn {
    white-space: normal;
}

.reservation-terms {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 10px;
    background-color: rgba(255, 255, 255, 0.75);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.reservation-terms-box {
    width: 100%;
    max-width: 860px;
    max-height: 580px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid var(--border-color, #dee2e6);
    border-top: 4px solid var(--global-color-0, #009bdb);
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.reservation-terms-title {
    margin: 0;
    padding: 16px 20px;
    font-size: 1.15em;
    line-height: 1.3;
    border-bottom: 1px solid var(--border-color, #dee2e6);
}

.reservation-terms-title > i {
    color: var(--global-color-0, #009bdb);
}

.reservation-terms-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px 20px;
}

.reservation-terms-body img {
    max-width: 100%;
    height: auto;
}

.reservation-terms-extra {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-color, #dee2e6);
}

.reservation-terms-actions {
    padding: 14px 20px;
    border-top: 1px solid var(--border-color, #dee2e6);
    text-align: center;
}

.reservation-terms-actions .btn {
    white-space: normal;
}

@media (max-width: 768px) {
    .reservation-terms {
        padding: 10px 0;
    }

    .reservation-terms-box {
        max-height: 560px;
    }

    .reservation-terms-title,
    .reservation-terms-body,
    .reservation-terms-actions {
        padding-left: 14px;
        padding-right: 14px;
    }
}
