.enduser-portal .modal-custom {
}
.enduser-portal .modal-custom .modal-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 101;
    height: 100%;
}

.enduser-portal .modal-custom .modal-mask {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
}

.enduser-portal .modal-custom .modal-content {
    position: relative;
    top: 100px;
    left: 50%;
    /* Can't use  margin: 0 auto => modals order*/
    transform: translateX(-50%);
    padding: 0;
    max-width: 800px;
    min-width: 300px;
    background-color: #fff;
    background-clip: padding-box;
    border-radius: 2px;
    box-sizing: border-box;
    list-style: none;
}

.enduser-portal .modal-custom .modal-content.second {
    top: calc(100px + 2rem);
    left: calc(50% + 2rem);
}

.enduser-portal .modal-custom .modal-content.modal-content--small {
    max-width: 720px;
}

.enduser-portal .modal-custom .modal-content button.btn--close {
    background: transparent;
    box-shadow: 0 0 0 transparent;
    font-size: 1.75rem;
    font-weight: bold;
    line-height: 1.75rem;
    position: absolute;
    z-index: 1;
    right: 0.5rem;
    top: 0.5rem;
}

.enduser-portal .modal-custom .modal-header {
    position: relative;
    padding: 0.625rem 1.25rem 0.625rem;
    border-radius: 2px 2px 0 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-right: 2.625rem;
    border: none;
}
.enduser-portal .modal-custom .modal-header.modal-header--bordered {
    border-bottom: 1px solid #f0f0f0;
}

.enduser-portal .modal-custom .modal-body {
    border: none;
}

.enduser-portal .modal-custom .modal-footer {
    padding: 1.25rem;
    border-radius: 0 0 2px 2px;
    border: none;
    display: flex;
    justify-content: space-between;
}
.enduser-portal .modal-custom .modal-footer .btn {
    width: auto;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    display: inline-flex;
    justify-content: center;
}

.enduser-portal
    .modal-custom
    .modal-footer
    .btn
    .spinner-content
    .loader:after {
    border-color: #fff transparent #fff transparent;
}

.enduser-portal .modal-custom .modal-footer:before,
.enduser-portal .modal-custom .modal-footer:after {
    display: none;
}

.enduser-portal .modal-custom .modal-footer.modal-footer--bordered {
    border-top: 1px solid #f0f0f0;
}

@media screen and (max-width: 960px) {
    .enduser-portal .modal-custom .modal-footer {
        flex-direction: column;
        align-items: center;
    }

    .enduser-portal .modal-custom .modal-footer .btn {
        margin: 0;
        width: 100%;
    }

    .enduser-portal .modal-custom .modal-footer button:last-child {
        margin-top: 0.8rem;
    }
    .enduser-portal .modal-custom .modal-content.second {
        top: calc(100px + 2rem);
        left: 50%;
    }
}

@media screen and (max-width: 768px) {
    .enduser-portal .modal-custom .modal-content,
    .enduser-portal .modal-custom .modal-content.modal-content--small {
        max-width: 520px;
    }
}

@media screen and (max-width: 576px) {
    .enduser-portal .modal-custom .modal-content,
    .enduser-portal .modal-custom .modal-content.modal-content--small {
        max-width: 90vw;
    }
}
