:root {
    --toast-accent-info: #10b981;
    --toast-accent-success: #10b981;
    --toast-accent-warning: #facc15;
    --toast-accent-error: var(--ui-danger, #ef4444);

    --toast-bg-success: #ecfdf5;
    --toast-bg-warning: #fefce8;
    --toast-bg-error: #fef2f2;

    --toast-text-success: #065f46;
    --toast-text-warning: #713f12;
    --toast-text-error: #991b1b;

    --toast-shadow: 0 18px 36px -20px rgba(15, 23, 42, 0.45);
    --toast-radius: 14px;
}

.notyf {
    z-index: 12000 !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 84px 16px 12px !important;
}

.notyf__toast {
    width: min(92vw, 560px);
    max-width: 560px;
    border-radius: var(--toast-radius) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-inline: 5px solid transparent !important;
    box-shadow: var(--toast-shadow) !important;
    overflow: hidden !important;
    transform: translateY(-14px) scale(0.98);
}

.notyf__toast--upper {
    margin-bottom: 10px !important;
    animation: app-notyf-slide-in 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

.notyf__toast--upper.notyf__toast--disappear {
    animation: app-notyf-slide-out 0.2s ease forwards !important;
    animation-delay: 0.03s !important;
}

.notyf__wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 58px !important;
    padding: 16px 18px !important;
}

.notyf__message {
    flex: 1 1 auto;
    min-width: 0;
    font-family: "Vazirmatn", sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.7;
    direction: rtl;
    text-align: right;
    display: block;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    white-space: normal;
    color: inherit !important;
    opacity: 1 !important;
    animation: none !important;
}

.notyf__message::before,
.notyf__message::after {
    content: none !important;
    display: none !important;
}

.notyf__icon,
.notyf__icon {
    display: none !important;
    opacity: 0 !important;
    animation: none !important;
}

.notyf__dismiss {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: static !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    margin: 0 !important;
    opacity: 1 !important;
    order: 2 !important;
    animation: none !important;
}

.notyf__dismiss-btn {
    position: relative !important;
    width: 32px !important;
    height: 32px !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: inherit !important;
    background-color: transparent !important;
    opacity: 0.78 !important;
    cursor: pointer !important;
    font-size: 0 !important;
    line-height: 1 !important;
}

.notyf__dismiss-btn::before {
    content: "\00d7" !important;
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    transform: translateY(-1px) !important;
    color: inherit !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.notyf__dismiss-btn::after {
    content: none !important;
    display: none !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    transform: none !important;
}

.notyf__dismiss-btn:hover {
    background-color: transparent !important;
    opacity: 1 !important;
}

.notyf__toast--success {
    background: var(--toast-bg-success) !important;
    border-inline-color: var(--toast-accent-success) !important;
    color: var(--toast-text-success) !important;
}

.notyf__toast--error {
    background: var(--toast-bg-error) !important;
    border-inline-color: var(--toast-accent-error) !important;
    color: var(--toast-text-error) !important;
}

.notyf__toast--warning {
    background: var(--toast-bg-warning) !important;
    border-inline-color: var(--toast-accent-warning) !important;
    color: var(--toast-text-warning) !important;
}

.notyf__toast--info {
    background: var(--toast-bg-success) !important;
    border-inline-color: var(--toast-accent-success) !important;
    color: var(--toast-text-success) !important;
}

.notyf__toast--warning .notyf__dismiss-btn:hover {
    background-color: transparent !important;
}

@keyframes app-notyf-slide-in {
    from {
        opacity: 0;
        transform: translateY(-18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes app-notyf-slide-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-14px) scale(0.98);
    }
}

@media (max-width: 1024px) {
    .notyf {
        padding: 72px 12px 10px !important;
    }
}

@media (max-width: 640px) {
    .notyf {
        padding: 66px 8px 8px !important;
    }

    .notyf__toast {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        border-radius: 12px !important;
    }

    .notyf__wrapper {
        padding: 12px 14px !important;
    }

    .notyf__message {
        font-size: 0.86rem;
        line-height: 1.65;
    }
}
