﻿/* =============================================
   toast.css - اعلان‌های راین شارژ
   پیشوند اختصاصی: rcs- (Rayan Charge System)
   ============================================= */

.rcs-toast-container {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 90%;
    max-width: 400px;
    pointer-events: none;
}

.rcs-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    pointer-events: all;
    direction: rtl;
    animation: rcsSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.rcs-toast-success {
    border-right: 4px solid #10B981;
}

.rcs-toast-error {
    border-right: 4px solid #EF4444;
}

.rcs-toast-warning {
    border-right: 4px solid #F59E0B;
}

.rcs-toast-info {
    border-right: 4px solid #0B8F98;
}

.rcs-toast-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.rcs-toast-success .rcs-toast-icon {
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
}

.rcs-toast-error .rcs-toast-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.rcs-toast-warning .rcs-toast-icon {
    background: rgba(245, 158, 11, 0.12);
    color: #F59E0B;
}

.rcs-toast-info .rcs-toast-icon {
    background: rgba(11, 143, 152, 0.12);
    color: #0B8F98;
}

.rcs-toast-text {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #1E293B;
    line-height: 1.5;
    min-width: 0;
}

.rcs-toast-close {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    cursor: pointer;
    font-size: 10px;
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rcs-toast-out {
    animation: rcsSlideOut 0.25s ease forwards;
}

@keyframes rcsSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes rcsSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
}

@media (max-width: 380px) {
    .rcs-toast-container {
        bottom: 90px;
        width: 94%;
    }

    .rcs-toast {
        padding: 10px 12px;
        border-radius: 12px;
    }

    .rcs-toast-icon {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 14px;
    }

    .rcs-toast-text {
        font-size: 12px;
    }
}
