/* SweetAlert v1 and its offline fallback share the MDB Career dialog style. */
.sweet-overlay,
.mdb-alert-fallback-overlay {
    background: rgba(25, 35, 56, .48);
}

.sweet-alert.mdb-alert,
.mdb-alert-fallback {
    box-sizing: border-box;
    width: 440px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    padding: 25px 27px 23px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 22px 65px rgba(32, 44, 67, .18);
    color: #273247;
    font-family: var(--mdb-font, "Avenir Next", "Segoe UI", Arial, sans-serif);
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}

.sweet-alert.mdb-alert {
    top: 50% !important;
    margin-top: 0 !important;
    margin-left: -220px !important;
    transform: translateY(-50%);
    animation: none !important;
}

.sweet-alert.mdb-alert .sa-icon {
    display: none !important;
}

.mdb-alert__symbol {
    display: inline-grid;
    float: left;
    width: 34px;
    height: 34px;
    margin: 0 11px 0 0;
    place-items: center;
    border-radius: 10px;
    background: #f0effb;
    color: #514db4;
    font-family: var(--mdb-font, "Avenir Next", "Segoe UI", Arial, sans-serif);
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
}

.mdb-alert--success .mdb-alert__symbol { background: #e9f7f3; color: #167565; }
.mdb-alert--warning .mdb-alert__symbol { background: #fbf3e5; color: #91621b; }
.mdb-alert--error .mdb-alert__symbol { background: #fcf0ed; color: #a64842; }

.sweet-alert.mdb-alert h2,
.mdb-alert-fallback__title {
    display: flex;
    align-items: center;
    min-height: 34px;
    margin: 0 0 10px;
    color: #273247;
    font-family: inherit;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.sweet-alert.mdb-alert p,
.mdb-alert-fallback__message {
    clear: both;
    margin: 0 0 21px;
    color: #647386;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    text-align: left;
    white-space: pre-line;
}

.sweet-alert.mdb-alert .sa-button-container,
.mdb-alert-fallback__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 0;
    text-align: right;
}

.sweet-alert.mdb-alert .sa-confirm-button-container {
    display: inline-flex;
}

.sweet-alert.mdb-alert button,
.mdb-alert-fallback button {
    min-height: 40px;
    margin: 0;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 9px;
    box-shadow: none !important;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease;
}

.sweet-alert.mdb-alert button.cancel,
.mdb-alert-fallback__cancel {
    border-color: #e0e3ea !important;
    background: #fff !important;
    color: #34405a !important;
}

.sweet-alert.mdb-alert button.cancel:hover,
.mdb-alert-fallback__cancel:hover {
    background: #f5f6fa !important;
}

.sweet-alert.mdb-alert button:not(.cancel):hover,
.mdb-alert-fallback button:not(.mdb-alert-fallback__cancel):hover {
    filter: brightness(.94);
}

.sweet-alert.mdb-alert button:focus,
.sweet-alert.mdb-alert button:focus-visible,
.mdb-alert-fallback button:focus,
.mdb-alert-fallback button:focus-visible {
    outline: 2px solid #5e5bc8;
    outline-offset: 3px;
    box-shadow: none !important;
}

.mdb-alert-fallback-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.mdb-alert-fallback {
    width: min(100%, 440px);
}

@media (max-width: 540px) {
    .sweet-alert.mdb-alert,
    .mdb-alert-fallback {
        padding: 21px 19px 19px;
        border-radius: 14px;
    }

    .sweet-alert.mdb-alert {
        left: 16px !important;
        right: 16px !important;
        width: auto !important;
        max-width: none;
        margin-left: 0 !important;
    }

    .sweet-alert.mdb-alert h2,
    .mdb-alert-fallback__title { font-size: 17px; }
}

@media (max-width: 340px) {
    .sweet-alert.mdb-alert .sa-button-container,
    .mdb-alert-fallback__actions { flex-direction: column; align-items: stretch; }
    .sweet-alert.mdb-alert .sa-confirm-button-container,
    .sweet-alert.mdb-alert button,
    .mdb-alert-fallback button { width: 100%; }
}
