/* Navid alert dialog — replaces SweetAlert2 site-wide */

.navid-alert-modal {
    z-index: 1000030;
    font-family: var(--navid-font);
}

.navid-alert-modal .navid-alert-modal__dialog {
    gap: 24px;
    width: 100%;
    max-width: 480px;
    padding: 48px 40px;
    text-align: center;
}

.navid-alert-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.navid-alert-modal__icon .mdi {
    font-size: 32px;
    line-height: 1;
}

.navid-alert-modal__icon-check,
.navid-alert-modal__icon-warning,
.navid-alert-modal__icon-error {
    display: none;
}

.navid-alert-modal.is-success .navid-alert-modal__icon {
    background: rgba(0, 146, 148, 0.12);
    color: var(--navid-green);
}

.navid-alert-modal.is-success .navid-alert-modal__icon-check {
    display: block;
}

.navid-alert-modal.is-warning .navid-alert-modal__icon {
    background: rgba(230, 179, 76, 0.2);
    color: var(--navid-yellow);
}

.navid-alert-modal.is-warning .navid-alert-modal__icon-warning {
    display: block;
}

.navid-alert-modal.is-error .navid-alert-modal__icon {
    background: rgba(245, 72, 72, 0.12);
    color: var(--navid-error);
}

.navid-alert-modal.is-error .navid-alert-modal__icon-error {
    display: block;
}

.navid-alert-modal__title {
    margin: 0;
    color: var(--navid-secondary);
    font-size: 20px;
    font-weight: 600;
    line-height: normal;
}

.navid-alert-modal__title[hidden] {
    display: none !important;
}

.navid-alert-modal__text {
    margin: 0 auto;
    max-width: 372px;
    color: var(--navid-gray);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    text-align: center;
}

.navid-alert-modal__text:empty {
    display: none;
}

.navid-alert-modal__footer {
    width: 100%;
    max-width: 372px;
    margin: 0 auto;
    color: var(--navid-gray);
    font-size: 14px;
    line-height: 1.6;
}

.navid-alert-modal__footer[hidden] {
    display: none !important;
}

.navid-alert-modal__footer a {
    color: var(--navid-primary);
    font-weight: 600;
    text-decoration: none;
}

.navid-alert-modal__footer a:hover {
    color: var(--navid-primary-hover);
}

.navid-alert-modal__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 372px;
    margin: 8px auto 0;
    direction: ltr;
}

.navid-alert-modal__btn {
    min-width: 160px;
    min-height: 48px;
    margin: 0;
}

.navid-alert-modal__btn[hidden] {
    display: none !important;
}

.navid-alert-modal--no-icon .navid-alert-modal__icon {
    display: none;
}

@media (max-width: 575.98px) {
    .navid-alert-modal .navid-alert-modal__dialog {
        padding: 40px 24px;
    }

    .navid-alert-modal__actions {
        flex-direction: column-reverse;
        width: 100%;
    }

    .navid-alert-modal__btn {
        width: 100%;
        min-width: 0;
    }
}
