/* =========================================================================
 * پیام‌های ووکامرس (موفقیت / خطا / اطلاع) — هماهنگ با دیزاین‌سیستمِ بارجیل
 * سراسری روی همهٔ صفحات لود می‌شود.
 * از دابل‌کلاس برای غلبه بر رول‌های کامپایل‌شدهٔ تم (مثل .woocommerce .woocommerce-error) استفاده شده.
 * .woocommerce-info فقط داخلِ رَپرِ نوتیس‌ها استایل می‌گیرد (تاگل‌های لاگین/کوپنِ تسویه دست‌نخورده).
 * ====================================================================== */
.woocommerce-notices-wrapper { margin-bottom: 16px; }

.woocommerce-message.woocommerce-message,
.woocommerce-error.woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-NoticeGroup .woocommerce-info {
    position: relative;
    margin: 0 0 12px !important;
    padding: 14px 16px !important;
    border: 0 !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-family: var(--font-sans, 'Dana', IRANSans, sans-serif) !important;
    font-size: 14px !important;
    line-height: 24px !important;
    text-align: right !important;
    box-shadow: none !important;
    list-style: none !important;
}

.woocommerce-message.woocommerce-message {
    background: rgb(var(--c-primary-container)) !important;
    color: rgb(var(--c-primary-oncontainer)) !important;
}
.woocommerce-error.woocommerce-error {
    background: rgb(var(--c-error-container)) !important;
    color: rgb(var(--c-error)) !important;
    flex-direction: column;
    align-items: flex-start !important;
}
.woocommerce-error.woocommerce-error li { margin: 0 !important; padding: 0 !important; list-style: none !important; }

.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-NoticeGroup .woocommerce-info {
    background: rgb(var(--c-neutral-90) / .05) !important;
    color: rgb(var(--c-neutral-90) / .85) !important;
    cursor: default !important;
}

/* آیکونِ فونتِ ووکامرس (::before) — اینلاین و هم‌رنگِ متن */
.woocommerce-message.woocommerce-message::before,
.woocommerce-error.woocommerce-error::before,
.woocommerce-notices-wrapper .woocommerce-info::before {
    position: static !important;
    inset: auto !important;
    top: auto !important; right: auto !important; left: auto !important;
    margin: 0 !important;
    color: inherit !important;
    font-size: 18px !important;
    line-height: 1 !important;
    flex: none;
}

/* دکمهٔ داخلِ پیام (مثل «مشاهده سبد / مشاهده سفارش») → دکمهٔ دیزاین‌سیستم */
.woocommerce-message.woocommerce-message .button,
.woocommerce-message.woocommerce-message a.wc-forward {
    margin-inline-start: auto !important;
    flex: none;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: rgb(var(--c-primary)) !important;
    color: rgb(var(--c-primary-on)) !important;
    font-family: var(--font-sans, 'Dana', IRANSans, sans-serif) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}
.woocommerce-message.woocommerce-message .button:hover,
.woocommerce-message.woocommerce-message a.wc-forward:hover { opacity: .9; }


/* ── نوتیس‌های WooCommerce Blocks (اگر سبد/تسویهٔ بلاکی جایی استفاده شود) ── */
.wc-block-components-notice-banner {
    margin: 0 0 12px !important;
    padding: 14px 16px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: rgb(var(--c-neutral-90) / .05) !important;
    color: rgb(var(--c-neutral-90) / .85) !important;
    font-family: var(--font-sans, 'Dana', IRANSans, sans-serif) !important;
    font-size: 14px !important;
    box-shadow: none !important;
}
.wc-block-components-notice-banner.is-success { background: rgb(var(--c-primary-container)) !important; color: rgb(var(--c-primary-oncontainer)) !important; }
.wc-block-components-notice-banner.is-error   { background: rgb(var(--c-error-container)) !important;   color: rgb(var(--c-error)) !important; }
.wc-block-components-notice-banner .wc-block-components-notice-banner__content,
.wc-block-components-notice-banner a { color: inherit !important; }
.wc-block-components-notice-banner > svg { fill: currentColor !important; }

/* ── بنرِ فروشگاهِ نمایشی/اعلانِ فروشگاه ── */
.woocommerce-store-notice,
p.demo_store {
    background: rgb(var(--c-primary-oncontainer)) !important;
    color: #fff !important;
    font-family: var(--font-sans, 'Dana', IRANSans, sans-serif) !important;
    font-size: 14px !important;
}

/* ── حالتِ خالیِ سبد خرید — هماهنگ با حالت‌های خالیِ دیزاین‌سیستم ── */
.barjil-empty-cart .empty-cart-icon {
    width: 96px !important;
    height: 96px !important;
    min-width: 96px !important;
    border: 0 !important;
    background: rgb(var(--c-neutral-90) / .04) !important;
    color: rgb(var(--c-neutral-90) / .3) !important;
    font-size: 40px !important;
}
.barjil-empty-cart .empty-cart-icon i { font-size: 40px !important; line-height: 1 !important; }
.barjil-empty-cart .empty-cart-btn {
    border-radius: 8px !important;
    min-width: 0 !important;
    padding: 0 28px !important;
}
