/* Isolated Bootstrap-compatible order-terms modal. */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal.show { display: block; }

.modal-dialog {
    position: relative;
    width: auto;
    max-width: min(900px, calc(100% - 2rem));
    margin: 1rem auto;
    pointer-events: none;
}

.modal-dialog-centered {
    display: flex;
    min-height: calc(100% - 2rem);
    align-items: center;
}

.modal-dialog-scrollable {
    height: calc(100% - 2rem);
}

.modal-dialog-scrollable .modal-content {
    max-height: 100%;
    overflow: hidden;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    color: #333;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .18);
    border-radius: .5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .22);
    pointer-events: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #dee2e6;
}

.modal-title { margin: 0; }

.modal-body {
    position: relative;
    padding: 1.25rem;
    overflow-y: auto;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: #000;
}

.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.show { opacity: .6; }

.btn-close {
    width: 1.25rem;
    height: 1.25rem;
    padding: .25rem;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.btn-close::before {
    content: '\00d7';
    display: block;
    font-size: 1.75rem;
    line-height: 1rem;
}

body.modal-open { overflow: hidden; }

@media (min-width: 576px) {
    .modal-dialog {
        margin-top: 1.75rem;
        margin-bottom: 1.75rem;
    }

    .modal-dialog-centered { min-height: calc(100% - 3.5rem); }
    .modal-dialog-scrollable { height: calc(100% - 3.5rem); }
}
