/* کانتینر پیام‌ها */
.woocommerce-notices-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    width: auto;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .wc-close-btn {
    outline: none !important;
}


.wc-close-btn {
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
    
    background: #fff;
    color: #61BA46;

    width: 24px; 
    height: 24px;
    border-radius: 5px;
    display: inline-flex;
	align-items: normal;
    justify-content: center;
    padding: 0; 
}

.wc-close-btn:hover {
    background: #e53935;
    color: #fff;
}

.woocommerce-error li a {
    background: #fff;
	font-size:14px !important;
    color: #61BA46;
    padding: 5px 10px 5px 10px ;
    border-radius: 6px;
    text-decoration: none; /* خط زیر لینک رو حذف کن */
    transition: all 0.3s ease;
margin-right:10px;
}

.woocommerce-error li a:hover {
    background: #f68b1f;
    color: #fff;
}



/* پیام کلی */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info {
    background-color: #00606c !important;
    color: #fff !important;
    padding: 16px 20px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    animation: slideUpFade 0.4s ease-out !important;
    position: relative !important;
    overflow: hidden !important;
    border: none !important;
    line-height: 1.6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between;
    gap: 15px;
	font-family: "ایران سنس", Sans-serif !important;
}

/* مخفی کردن آیکون پیش‌فرض ووکامرس */
.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::before {
    display: none !important;
}

/* تایمر حذف خودکار */
.woocommerce-message::after,
.woocommerce-error::after,
.woocommerce-info::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #00d084;
    width: 100%;
    animation: shrinkBar 5s linear forwards;
}

/* دکمه‌های پیام‌های ووکامرس */
.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-error a.button,
.woocommerce-message .wc-forward,
.woocommerce-info .wc-forward,
.woocommerce-error .wc-forward {
    background: #fff !important;
    color: #00606c !important;
    padding: 8px 14px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    text-decoration: none !important;
    margin-left: 10px !important;
    font-weight: 600 !important;
    border: none !important;
    white-space: nowrap !important;
    font-family: "ایران سنس", sans-serif !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: normal !important;
    transition: all 0.3s ease !important;
}

.restore-item{
	color:#fff !important;
	font-family: "ایران سنس", Sans-serif !important;
}
.woocommerce-message a.button:hover,
.woocommerce-info a.button:hover,
.woocommerce-message a.wc-forward:hover,
.woocommerce-info a.wc-forward:hover,
.woocommerce-message .button.wc-forward:hover,
.woocommerce-info .button.wc-forward:hover {
    background: #F68B1F !important;
    color: #fff !important;
}
.woocommerce-message a[href*="action=logout"] {
    color: #fff !important;
    background-color: #e53935 !important;
    padding: 6px 12px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    display: inline-block !important;
	 font-size: 13px !important;
	font-family: "ایران سنس", Sans-serif !important;
}
@keyframes slideOutRightFade {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(50px); /* به سمت راست بره و محو شه */
    }
}

.slide-out {
    animation: slideOutRightFade 0.4s ease-in forwards;
}
.woocommerce-error li {
    display: flex;
    align-items: center;
    gap: 12px; /* فاصله بین متن و دکمه */
    flex-wrap: wrap; /* برای موبایل */
}


@keyframes slideInRightFade {
    from {
        opacity: 0;
        transform: translateX(50px); /* کمی از سمت راست بیاد */
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info {
    animation: slideInRightFade 0.4s ease-out !important;
}

/* انیمیشن‌ها */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shrinkBar {
    to {
        width: 0%;
    }
}
