/* ===== cuteAlert — مودال حرفه‌ای ===== */
.ums-alert-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    left: 0;
    top: 0;
    position: fixed;
    background: rgba(15, 23, 42, .55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 9999999;
}

@keyframes open-frame {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.96);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.ums-alert-frame {
    background: #fff;
    width: 370px;
    max-width: 100%;
    min-height: 0;
    box-sizing: border-box;
    padding-bottom: 24px;
    box-shadow: 0 24px 60px rgba(2, 6, 23, .28);
    border-radius: 20px;
    overflow: hidden;
    animation: open-frame .22s cubic-bezier(.16, 1, .3, 1);
    z-index: 999999;
}

/* هدر: به‌جای بلوک رنگیِ بزرگ، مدالِ دایره‌ای تمیز */
.ums-alert-frame .ums-alert-header {
    display: block;
    height: auto;
    padding: 30px 0 6px;
    background: transparent !important;
}

.ums-alert-frame .ums-alert-header::after {
    content: "";
    display: block;
    width: 74px;
    height: 74px;
    margin: 0 auto;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px 40px;
    box-shadow: 0 8px 20px rgba(2, 6, 23, .12);
}

.ums-alert-frame .ums-alert-header.error-bg::after {
    background-color: #ef4444;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'%3E%3Cline x1='12' y1='6.5' x2='12' y2='13.5'/%3E%3Cline x1='12' y1='17.6' x2='12' y2='17.6'/%3E%3C/svg%3E");
}

.ums-alert-frame .ums-alert-header.warning-bg::after {
    background-color: #f59e0b;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'%3E%3Cline x1='12' y1='6.5' x2='12' y2='13.5'/%3E%3Cline x1='12' y1='17.6' x2='12' y2='17.6'/%3E%3C/svg%3E");
}

.ums-alert-frame .ums-alert-header.success-bg::after {
    background-color: #22c55e;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}

.ums-alert-frame .ums-alert-header.question-bg::after,
.ums-alert-frame .ums-alert-header.info-bg::after {
    background-color: #3b82f6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.2 9a2.8 2.8 0 1 1 4 2.5c-1 .5-1.7 1.3-1.7 2.5'/%3E%3Cline x1='11.5' y1='17.6' x2='11.5' y2='17.6'/%3E%3C/svg%3E");
}

/* آیکن شکستهٔ لایبرری و دکمهٔ بستنِ گوشه مخفی شوند */
.ums-alert-img,
.ums-alert-close,
.ums-alert-close-circle {
    display: none !important;
}

.ums-alert-body {
    padding: 14px 28px 0;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.ums-alert-title {
    font-size: 19px !important;
    font-weight: 800;
    margin: 6px 0 8px;
    color: #0f172a;
    align-self: stretch;
}

.ums-alert-message {
    font-size: 14px !important;
    color: #64748b;
    font-weight: 500;
    text-align: center;
    margin-bottom: 22px;
    line-height: 1.9;
    align-self: stretch;
}

/* دکمه‌ها */
.ums-alert-button,
.ums-confirm-button,
.ums-cancel-button {
    min-width: 120px;
    height: 46px;
    border-radius: 11px;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 0 22px;
    margin: 0;
    transition: filter .15s ease, transform .15s ease, background .15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.ums-alert-button:hover,
.ums-confirm-button:hover {
    transform: translateY(-1px);
    filter: brightness(.95);
}

.ums-alert-button:focus,
.ums-confirm-button:focus,
.ums-cancel-button:focus {
    outline: 0;
}

.ums-question-buttons {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.ums-question-buttons .ums-confirm-button,
.ums-question-buttons .ums-cancel-button {
    flex: 1 1 0;
}

/* رنگِ دکمهٔ تأیید بر اساس نوع (فقط داخل مودال، toast دست‌نخورده) */
.ums-alert-frame .ums-alert-button.error-bg,
.ums-alert-frame .ums-confirm-button.error-bg {
    background: #ef4444 !important;
}

.ums-alert-frame .ums-alert-button.warning-bg,
.ums-alert-frame .ums-confirm-button.warning-bg {
    background: #f59e0b !important;
}

.ums-alert-frame .ums-alert-button.success-bg,
.ums-alert-frame .ums-confirm-button.success-bg {
    background: #22c55e !important;
}

.ums-alert-frame .ums-alert-button.question-bg,
.ums-alert-frame .ums-confirm-button.question-bg,
.ums-alert-frame .ums-alert-button.info-bg,
.ums-alert-frame .ums-confirm-button.info-bg {
    background: #3b82f6 !important;
}

/* دکمهٔ لغو = خنثی و تمیز (به‌جای قرمز) */
.ums-cancel-button {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

.ums-cancel-button:hover {
    background: #e2e8f0 !important;
    transform: translateY(-1px);
}

@keyframes open-toast {
    0% {
        transform: scaleX(1) scaleY(1);
    }

    20%,
    45% {
        transform: scaleX(1.35) scaleY(0.1);
    }

    65% {
        transform: scaleX(0.8) scaleY(1.7);
    }

    80% {
        transform: scaleX(0.6) scaleY(0.85);
    }

    100% {
        transform: scaleX(1) scaleY(1);
    }
}

.ums-toast-container {
    top: 15px;
    right: 15px;
    overflow: hidden;
    position: fixed;
    border-radius: 5px;
    box-shadow: 0 0 20px rgb(0, 0, 0, 0.2);
    animation: open-toast 0.3s linear;
    z-index: 999999;
    bottom: auto;
    display: block;
    transform: none;
    left: auto;
    padding: 0
}

.ums-toast-frame {
    padding: 8px 15px;
    display: flex;
    min-width: 100px;
    height: 64px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.ums-toast-img {
    height: 40px;
    background: #f1f1f13b;
    border-radius: 50px;
    padding: 7px;
    margin-left: 10px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ums-toast-message {
    font-size: 13px !important;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    margin-left: 25px;
}

.ums-toast-close {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes timer {
    0% {
        width: 100%;
    }

    25% {
        width: 75%;
    }

    50% {
        width: 50%;
    }

    75% {
        width: 25%;
    }

    100% {
        width: 1%;
    }
}

.ums-toast-timer {
    width: 1%;
    height: 5px;
    background: #f1f1f13b;
    margin-top: 3px;
}

.success-bg {
    background: #00b670;
}

.error-bg {
    background: #f3433b;
}

.info-bg {
    background: #006ff0;
}

.warning-bg {
    background: #fa8e29;
}

.error-btn:hover {
    background: #e5a4b4;
}

.success-btn:hover {
    background: #6edaa4;
}

.warning-btn:hover {
    background: #fcecae;
}

.info-btn:hover {
    background: #c3e6fb;
}

.question-btn:hover {
    background: #bacee4;
}

.error-bg {
    background: #d85261;
}

.success-bg {
    background: #2dd284;
}

.warning-bg {
    background: #fada5e;
}

.question-bg {
    background: #779ecb;
}