body.mc-alert-open {
    overflow: hidden;
}

.mc-alert-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(12, 25, 24, .58);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: mc-alert-fade-in .18s ease-out both;
}

.mc-alert-overlay[hidden] { display: none; }

.mc-alert-card {
    position: relative;
    width: min(420px, 100%);
    overflow: hidden;
    padding: 30px 28px 34px;
    border: 1px solid rgba(88, 184, 149, .18);
    border-radius: 22px;
    background: #fff;
    color: #202b2a;
    text-align: center;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .28);
    outline: none;
}

.mc-alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 50%;
    font-size: 31px;
    font-weight: 700;
    line-height: 1;
}

.mc-alert-message {
    margin: 0;
    font-size: 1.04rem;
    font-weight: 500;
    line-height: 1.45;
}

.mc-alert-ok {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    height: 40px;
    margin-top: 20px;
    padding: 0 22px;
    border: 0;
    border-radius: 9px;
    background: #2f9d74;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.mc-alert-ok:hover { background: #277f5e; }

.mc-alert-actions { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.mc-alert-actions .mc-alert-ok { margin-top: 0; }
.mc-alert-cancel { min-width: 92px; height: 40px; padding: 0 18px; border: 1px solid #d8e2de; border-radius: 9px; background: #fff; color: #52645c; cursor: pointer; font: inherit; font-weight: 700; }
.mc-alert-cancel:hover { background: #f4f8f6; }
.mc-alert-confirm .mc-alert-progress { display: none; }
.mc-alert-confirm .mc-alert-icon { background: #e33d3d; color: #fff; }

.mc-alert-title {
    margin: 0 0 8px;
    color: #202b2a;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
}

.mc-alert-overlay[data-alert-type="success"] .mc-alert-icon {
    background: #e4f5ec;
    color: #2f8062;
}

.mc-alert-overlay[data-alert-type="error"] .mc-alert-icon,
.mc-alert-overlay[data-alert-type="warning"] .mc-alert-icon {
    background: #fde7e7;
    color: #c44747;
}

.mc-alert-overlay[data-alert-type="info"] .mc-alert-icon {
    background: #e3f4f2;
    color: #238e8d;
}

.mc-alert-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #58b895;
    transform-origin: left center;
    animation: mc-alert-progress 4.5s linear both;
}

.mc-alert-overlay[data-alert-type="error"] .mc-alert-progress,
.mc-alert-overlay[data-alert-type="warning"] .mc-alert-progress {
    background: #c44747;
}

.mc-alert-overlay[data-alert-type="info"] .mc-alert-progress {
    background: #238e8d;
}

.mc-alert-overlay.mc-alert-closing {
    opacity: 0;
    transition: opacity .2s ease;
}

@keyframes mc-alert-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes mc-alert-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 480px) {
    .mc-alert-overlay { padding: 16px; }
    .mc-alert-card { padding: 26px 22px 30px; border-radius: 18px; }
    .mc-alert-message { font-size: .98rem; }
}
