/**
 * Alertas globais (miAlert) — compartilhado por todas as superfícies (painel,
 * loja, recuperação de senha e login), por isso vive fora de custom-micore.css.
 */
.mi-alert-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    left: 50%;
    max-width: 390px;
    pointer-events: none;
    position: fixed;
    top: calc(var(--kt-app-header-height, 74px) + 0.25rem);
    transform: translateX(-50%);
    width: calc(100vw - 3rem);
    z-index: 1095;
}

.mi-alert {
    align-items: flex-start;
    background: #ffffff;
    /* border: 1px solid #e4e8f2; */
    border-left: 3px solid #6750e8;
    border-radius: 15px;
    box-shadow: 0 10px 24px rgba(27, 32, 54, 0.12);
    display: flex;
    gap: 1rem;
    opacity: 0;
    padding: 1.1rem 2.8rem 1.1rem 1.25rem;
    pointer-events: auto;
    position: relative;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.mi-alert.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.mi-alert-success {
    border-left-color: #18b982;
}

.mi-alert-error {
    border-color: #ffd3c9;
    border-left-color: #f15445;
}

.mi-alert-warning {
    border-left-color: #f5a524;
}

.mi-alert-info {
    border-left-color: #3d7ff2;
}

.mi-alert-mention {
    border-left-color: #6750e8;
}

.mi-alert-progress {
    border-left-color: #6254d9;
}

.mi-alert-avatar,
.mi-alert-icon {
    align-items: center;
    border-radius: 50%;
    color: var(--mi-alert-icon-color);
    display: flex;
    flex: 0 0 34px;
    font-size: 0.95rem;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    overflow: hidden;
    width: 34px;
}

.mi-alert-avatar i,
.mi-alert-icon i {
    color: var(--mi-alert-icon-color) !important;
}

.mi-alert-avatar {
    --mi-alert-icon-color: #6947df;
    background: #eee8ff;
}

.mi-alert-avatar img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.mi-alert-icon {
    --mi-alert-icon-color: #1ba471;
    background: #e8f8f0;
}

.mi-alert-error .mi-alert-icon {
    --mi-alert-icon-color: #df3b30;
    background: #ffe8e4;
}

.mi-alert-warning .mi-alert-icon {
    --mi-alert-icon-color: #c77a00;
    background: #fff5dc;
}

.mi-alert-info .mi-alert-icon {
    --mi-alert-icon-color: #2f6bdc;
    background: #e8f1ff;
}

.mi-alert-progress .mi-alert-icon {
    --mi-alert-icon-color: #6254d9;
    background: #ece9ff;
}

.mi-alert-content {
    min-width: 0;
}

.mi-alert-content h3 {
    color: #252a3d;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 0.35rem;
}

.mi-alert-content p {
    color: #69718f;
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0;
}

.mi-alert-content a:not(.mi-alert-action) {
    color: #5945d8;
    font-weight: 700;
}

.mi-alert-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 0.9rem;
}

.mi-alert-action {
    background: transparent;
    border: 0;
    color: #8a91aa;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0;
    text-decoration: none;
}

.mi-alert-action-link {
    color: #5945d8;
}

.mi-alert-action-primary {
    background: #c93c32;
    border-radius: 6px;
    color: #ffffff;
    padding: 0.55rem 0.85rem;
}

.mi-alert-action-secondary {
    border: 1px solid #e0e5f1;
    border-radius: 6px;
    color: #65708c;
    padding: 0.5rem 0.85rem;
}

.mi-alert-progressbar {
    background: #eef1f7;
    border-radius: 999px;
    height: 6px;
    margin-top: 0.85rem;
    overflow: hidden;
    width: 100%;
}

.mi-alert-progressbar span {
    background: #6254d9;
    border-radius: inherit;
    display: block;
    height: 100%;
    transition: width 0.2s ease;
}

.mi-alert-close {
    align-items: center;
    background: transparent;
    border: 0;
    color: #9aa2b9;
    display: flex;
    height: 28px;
    justify-content: center;
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    width: 28px;
}

.mi-alert-close i {
    color: #9aa2b9 !important;
}

@media (max-width: 767.98px) {
    .mi-alert-stack {
        left: 1rem;
        max-width: none;
        right: 1rem;
        top: calc(var(--kt-app-header-height, 64px) + 0.25rem);
        transform: none;
        width: auto;
    }
}
