.swal2-popup.erp-alert-popup {
    width: min(34rem, calc(100vw - 2rem));
    padding: 0;
    overflow: hidden;
    color: #243746;
    border: 1px solid #dce9f1;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1.25rem 3.5rem rgba(18, 58, 90, .2);
    font-family: inherit;
}

.erp-alert-popup .swal2-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin: 1.35rem auto .35rem;
    border-width: 2px;
    font-size: .8rem;
}

.erp-alert-popup .swal2-title {
    margin: 0;
    padding: 1.2rem 1.5rem .3rem;
    color: #123a5a;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
}

.erp-alert-popup .swal2-icon + .swal2-title {
    padding-top: .55rem;
    text-align: center;
}

.erp-alert-popup .swal2-html-container {
    margin: 0;
    padding: .35rem 1.5rem 1.25rem;
    color: #526879;
    font-size: .82rem;
    line-height: 1.55;
    text-align: left;
}

.erp-alert-popup .swal2-icon + .swal2-title + .swal2-html-container {
    text-align: center;
}

.erp-alert-popup .swal2-actions {
    width: 100%;
    gap: .65rem;
    justify-content: flex-end;
    margin: 0;
    padding: 1rem 1.5rem;
    border-top: 1px solid #dce9f1;
    background: #f8fbfd;
}

.erp-alert-popup .swal2-actions .btn {
    min-height: 2.65rem;
    margin: 0;
    padding: .65rem 1rem;
    border-radius: .55rem;
    font-size: .8rem;
    font-weight: 700;
}

.erp-alert-popup .swal2-confirm {
    min-width: 7.5rem;
}

.erp-alert-popup .swal2-loader {
    width: 1.5rem;
    height: 1.5rem;
    margin: .55rem;
    border-color: #0876b9 transparent #0876b9 transparent;
}

.erp-alert-popup .swal2-input,
.erp-alert-popup .swal2-textarea,
.erp-alert-popup .swal2-select {
    width: calc(100% - 3rem);
    min-height: 2.75rem;
    margin: .45rem 1.5rem 1rem;
    color: #243746;
    border: 1px solid #cadce7;
    border-radius: .55rem;
    box-shadow: none;
    font-size: .82rem;
}

.erp-alert-popup .swal2-validation-message {
    align-items: flex-start;
    margin: 0 1.5rem 1rem;
    padding: .75rem .85rem;
    color: #8a2635;
    border: 1px solid #f0c6cd;
    border-radius: .55rem;
    background: #fff2f4;
    font-size: .76rem;
    line-height: 1.45;
    text-align: left;
}

.erp-alert-popup .btn:focus-visible,
.erp-alert-popup .mpesa-callback-input:focus-visible,
.erp-alert-popup .swal2-input:focus-visible,
.erp-alert-popup .swal2-textarea:focus-visible,
.erp-alert-popup .swal2-select:focus-visible {
    outline: 3px solid rgba(8, 118, 185, .2);
    outline-offset: 2px;
}

.erp-alert-popup .swal2-close:focus-visible {
    outline: 3px solid rgba(8, 118, 185, .2);
    outline-offset: 2px;
}

.erp-alert-popup.erp-alert-destructive .swal2-title {
    color: #7a2634;
}

@media (max-width: 575.98px) {
    .swal2-popup.erp-alert-popup {
        width: calc(100vw - 1rem);
        border-radius: .8rem;
    }

    .erp-alert-popup .swal2-title {
        padding-right: 1rem;
        padding-left: 1rem;
        font-size: 1rem;
    }

    .erp-alert-popup .swal2-html-container {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .erp-alert-popup .swal2-actions {
        display: grid;
        grid-template-columns: 1fr;
        padding: .85rem 1rem 1rem;
    }

    .erp-alert-popup .swal2-actions .btn {
        width: 100%;
        min-height: 2.85rem;
    }

    .erp-alert-popup .swal2-confirm {
        grid-row: 1;
    }

    .erp-alert-popup .swal2-validation-message {
        margin-right: 1rem;
        margin-left: 1rem;
    }

    .erp-alert-popup .swal2-input,
    .erp-alert-popup .swal2-textarea,
    .erp-alert-popup .swal2-select {
        width: calc(100% - 2rem);
        margin-right: 1rem;
        margin-left: 1rem;
    }
}
