#hubspot-messages-iframe-container {
    z-index: 2147483600 !important; /* Ensure the chat widget appears below the modal */
}
#airbnb-terms-modal {
    background: rgba(0, 0, 0, 0.35);
}
#airbnb-terms-modal .modal-dialog {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    min-height: 100%;
    padding: 0;
    z-index: 2147483640 !important; /* Ensure the modal appears above all other elements */
}

#airbnb-terms-modal .modal-content {
    border-radius: 0 !important;
    border: 0px solid #E2E8F0;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
    z-index: 2147483640 !important;
    padding-bottom: 50px;
}

#airbnb-terms-modal .airbnb-terms-modal__grab {
    width: 38px;
    height: 5px;
    border-radius: 999px;
    background: #3C3C434D;
    margin: 3px auto;
}

#airbnb-terms-modal .modal-header {
    border-bottom: 0;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#airbnb-terms-modal .modal-header .close {
    display: flex;
    align-items: center;
    justify-content: center;
}

#airbnb-terms-modal .modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #475569;
}

#airbnb-terms-modal .modal-body {
    padding: 12px 16px;
    color: #3F4A5A;
    font-size: 14px;
    font-weight: 400;
}

#airbnb-terms-modal .close {
    padding: 0;
    opacity: 1;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2D3748;
    font-size: 28px;
    line-height: 1;
    margin: 0;
}

#airbnb-terms-modal .close:hover {
    background: #F1F5F9;
}

#airbnb-terms-modal .modal-backdrop.show {
    opacity: 0.35;
}

@media (min-width: 768px) {
    #airbnb-terms-modal .modal-dialog {
        align-items: center;
        padding-bottom: 0;
    }
}

@media (max-width: 767px) {
    #airbnb-terms-modal .airbnb-terms-modal__grab {
        touch-action: none;
    }

    #airbnb-terms-modal .modal-content.airbnb-sheet--animating {
        transition: height 0.25s ease, transform 0.25s ease;
    }

    #airbnb-terms-modal .airbnb-terms-modal__grab {
        position: relative;
        z-index: 1;
    }

    #airbnb-terms-modal .airbnb-terms-modal__grab::after {
        content: '';
        position: absolute;
        top: -3px;
        left: 50%;
        height: 40px;
        width: 100vw;
        transform: translateX(-50%);
    }

    #airbnb-terms-modal .modal-header {
        position: relative;
        z-index: 2;
        pointer-events: none;
    }

    #airbnb-terms-modal .modal-header .close {
        pointer-events: auto;
    }
}

@media (min-width: 768px) {
    #airbnb-terms-modal .airbnb-terms-modal__grab {
        display: none;
    }
}
