.ops-modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.ops-modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}
.ops-modal.fade .ops-modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}
@media (prefers-reduced-motion: reduce) {
    .ops-modal.fade .ops-modal-dialog {
        transition: none;
    }
}
.ops-modal.show .ops-modal-dialog {
    transform: none;
}
.ops-modal.ops-modal-static .ops-modal-dialog {
    transform: scale(1.02);
}

.ops-modal-dialog-scrollable {
    height: calc(100% - 1rem);
}
.ops-modal-dialog-scrollable .ops-modal-content {
    max-height: 100%;
    overflow: hidden;
}
.ops-modal-dialog-scrollable .ops-modal-body {
    overflow-y: auto;
}

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

.ops-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(80, 80, 80, 0.1);
    border-radius: 0.5rem;
    outline: 0;
}

.ops-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999998;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    display: none;
}
.ops-modal-backdrop.ops-fade {
    opacity: 0;
}
.ops-modal-backdrop.ops-show {
    opacity: 0.5;
}

.ops-modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
}
.ops-modal-header .btn-close {
    padding: 0.5rem 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
}

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

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

.ops-modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: calc(0.3rem - 1px);
    border-bottom-left-radius: calc(0.3rem - 1px);
}
.ops-modal-footer > * {
    margin: 0.25rem;
}

@media (min-width: 576px) {
    .ops-modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }

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

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

    .ops-modal-sm {
        max-width: 300px;
    }
}
@media (min-width: 992px) {
    .ops-modal-lg,
    .ops-modal-xl {
        max-width: 800px;
    }
}
@media (min-width: 1200px) {
    .ops-modal-xl {
        max-width: 1140px;
    }
}
.ops-modal-fullscreen {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
}
.ops-modal-fullscreen .ops-modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
}
.ops-modal-fullscreen .ops-modal-header {
    border-radius: 0;
}
.ops-modal-fullscreen .ops-modal-body {
    overflow-y: auto;
}
.ops-modal-fullscreen .ops-modal-footer {
    border-radius: 0;
}

@media (max-width: 575.98px) {
    .ops-modal-fullscreen-sm-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0;
    }
    .ops-modal-fullscreen-sm-down .ops-modal-content {
        height: 100%;
        border: 0;
        border-radius: 0;
    }
    .ops-modal-fullscreen-sm-down .ops-modal-header {
        border-radius: 0;
    }
    .ops-modal-fullscreen-sm-down .ops-modal-body {
        overflow-y: auto;
    }
    .ops-modal-fullscreen-sm-down .ops-modal-footer {
        border-radius: 0;
    }
}
@media (max-width: 767.98px) {
    .ops-modal-fullscreen-md-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0;
    }
    .ops-modal-fullscreen-md-down .ops-modal-content {
        height: 100%;
        border: 0;
        border-radius: 0;
    }
    .ops-modal-fullscreen-md-down .ops-modal-header {
        border-radius: 0;
    }
    .ops-modal-fullscreen-md-down .ops-modal-body {
        overflow-y: auto;
    }
    .ops-modal-fullscreen-md-down .ops-modal-footer {
        border-radius: 0;
    }
}
@media (max-width: 991.98px) {
    .ops-modal-fullscreen-lg-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0;
    }
    .ops-modal-fullscreen-lg-down .ops-modal-content {
        height: 100%;
        border: 0;
        border-radius: 0;
    }
    .ops-modal-fullscreen-lg-down .ops-modal-header {
        border-radius: 0;
    }
    .ops-modal-fullscreen-lg-down .ops-modal-body {
        overflow-y: auto;
    }
    .ops-modal-fullscreen-lg-down .ops-modal-footer {
        border-radius: 0;
    }
}
@media (max-width: 1199.98px) {
    .ops-modal-fullscreen-xl-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0;
    }
    .ops-modal-fullscreen-xl-down .ops-modal-content {
        height: 100%;
        border: 0;
        border-radius: 0;
    }
    .ops-modal-fullscreen-xl-down .ops-modal-header {
        border-radius: 0;
    }
    .ops-modal-fullscreen-xl-down .ops-modal-body {
        overflow-y: auto;
    }
    .ops-modal-fullscreen-xl-down .ops-modal-footer {
        border-radius: 0;
    }
}
@media (max-width: 1399.98px) {
    .ops-modal-fullscreen-xxl-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0;
    }
    .ops-modal-fullscreen-xxl-down .ops-modal-content {
        height: 100%;
        border: 0;
        border-radius: 0;
    }
    .ops-modal-fullscreen-xxl-down .ops-modal-header {
        border-radius: 0;
    }
    .ops-modal-fullscreen-xxl-down .ops-modal-body {
        overflow-y: auto;
    }
    .ops-modal-fullscreen-xxl-down .ops-modal-footer {
        border-radius: 0;
    }
}





/**
 * Overrides
 */
.ops-modal-header {
    position: relative;
    display: block;
    padding: 30px 15px;

    h1 {
        display: block;
        color: rgb(13, 23, 38);
        text-align: center;
        font-size: 18px;
        font-weight: 700;
        margin: 0;
        padding: 0;
    }

    .ops-close-icon {
        position: absolute;
        top: 32px;
        right: 30px;
        cursor: pointer;

        &::before {
            transition: color linear .1s;
            color: #ccc;
            font-size: 14px;
        }

        &:hover::before {
            color: #000;
        }
    }
}

.ops-modal-body {
    padding: 30px;
}

@media (min-width: 576px) {
    .ops-modal-dialog {
        max-width: 75%;
    }
}
@media (min-width: 992px) {
    .ops-modal-lg,
    .ops-modal-xl {
        max-width: 75%;
    }
}
@media (min-width: 1200px) {
    .ops-modal-xl {
        max-width: 1140px;
    }
}
