.modal-open {
    overflow: hidden;
}

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 0;
    pointer-events: none;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

@media (prefers-reduced-motion: reduce) {
    .modal.fade .modal-dialog {
        transition: none;
    }
}

.modal.show .modal-dialog {
    transform: none;
}

.modal.modal-static .modal-dialog {
    transform: scale(1.02);
}

.modal-dialog-scrollable {
    display: flex;
    max-height: 100%;
}

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

.modal-dialog-scrollable .modal-header,
.modal-dialog-scrollable .modal-footer {
    flex-shrink: 0;
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: 100%;
}

.modal-dialog-centered::before {
    display: block;
    height: 100vh;
    height: -webkit-min-content;
    height: -moz-min-content;
    height: min-content;
    content: "";
}

.modal-dialog-centered.modal-dialog-scrollable {
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.modal-dialog-centered.modal-dialog-scrollable .modal-content {
    max-height: none;
}

.modal-dialog-centered.modal-dialog-scrollable::before {
    content: none;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 0 solid rgba(0, 0, 0, 0.2);
    outline: 0;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

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

.modal-backdrop.show {
    opacity: 0.8;
}

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

.modal-header .close {
    padding: 1rem 1.5rem;
    margin: -1rem -1.5rem -1rem auto;
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: 1.03125rem;
    border-top: 0 solid #dee2e6;
}

.modal-footer > * {
    margin: 0.46875rem;
}

.modal-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll;
}

@media (min-width: 521px) {
    .modal-dialog {
        max-width: 480px;
        margin: 0 auto;
    }

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

    .modal-dialog-scrollable .modal-content {
        max-height: 100vh;
    }

    .modal-dialog-centered {
        min-height: 100%;
    }

    .modal-dialog-centered::before {
        height: 100vh;
        height: -webkit-min-content;
        height: -moz-min-content;
        height: min-content;
    }

    .modal-sm {
        max-width: 320px;
    }
}

@media (min-width: 980px) {
    .modal-lg,
    .modal-xl {
        max-width: 720px;
    }
}

@media (min-width: 1280px) {
    .modal-xl {
        max-width: 80%;
    }
}

@media (max-width: 719.98px) {
    .modal .modal-dialog {
        max-width: none;
        width: 100%;
    }
}

.modal[data-backdrop=static] .modal-dialog {
    transition: transform 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
    .modal[data-backdrop=static] .modal-dialog {
        transition: none;
    }
}

.modal-header {
    padding-top: 40px;
}

.modal-header .close {
    flex-shrink: 0;
    margin: -2rem -1rem -1rem auto;
    padding: 0;
}

.modal-body {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.modal-footer {
    padding-top: 0.53125rem;
}

@media (min-width: 720px) {
    .modal-dialog {
        margin-top: 50px;
        margin-bottom: 50px;
    }

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

    .modal-dialog-centered::before {
        height: calc(100vh - 100px);
        height: -webkit-min-content;
        height: -moz-min-content;
        height: min-content;
    }

    .modal-content {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16), 0 0 1px rgba(0, 0, 0, 0.24);
    }
}

