/* Cheshm Concept – WooCommerce Notices (v1)
   پیام‌های «به سبد خرید اضافه شد»، خطا و اطلاعیه — در تمام صفحات سایت */

html body .woocommerce-notices-wrapper{ direction:rtl; font-family:'Shabnam','Vazirmatn',sans-serif; }
html body .woocommerce-notices-wrapper:empty{ display:none; }

html body .woocommerce-notices-wrapper .woocommerce-message.woocommerce-message,
html body .woocommerce-notices-wrapper .woocommerce-info.woocommerce-info,
html body .woocommerce-notices-wrapper ul.woocommerce-error.woocommerce-error{
    position:relative !important; display:flex !important; align-items:center !important; flex-wrap:nowrap !important; gap:14px !important;
    width:100% !important; max-width:100% !important; margin:0 0 20px !important; padding:14px 18px !important; box-sizing:border-box !important;
    background:#fff !important; color:#111 !important; text-align:right !important; direction:rtl !important;
    font-family:'Shabnam','Vazirmatn',sans-serif !important; font-size:14px !important; font-weight:600 !important; line-height:1.9 !important; list-style:none !important;
    border:1px solid #e9e5d8 !important; border-right:3px solid #c5b98e !important; border-radius:14px !important; box-shadow:0 8px 26px rgba(17,17,17,.05) !important;
}
html body .woocommerce-notices-wrapper ul.woocommerce-error.woocommerce-error{ border-right-color:#c0392b !important; flex-direction:column !important; align-items:stretch !important; gap:6px !important; padding-right:56px !important; }
html body .woocommerce-notices-wrapper ul.woocommerce-error li{ margin:0 !important; padding:0 !important; list-style:none !important; font-weight:600; }

/* آیکن دایره‌ای (جایگزین آیکن‌فونت ووکامرس) */
html body .woocommerce-notices-wrapper .woocommerce-message::before,
html body .woocommerce-notices-wrapper .woocommerce-info::before,
html body .woocommerce-notices-wrapper ul.woocommerce-error::before{
    content:'' !important; position:static !important; flex:none !important; display:block !important; width:30px !important; height:30px !important; margin:0 !important;
    border-radius:50% !important; background:#c5b98e no-repeat center / 16px !important; color:transparent !important; font-size:0 !important; line-height:0 !important;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") !important;
}
html body .woocommerce-notices-wrapper .woocommerce-info::before{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 11v6'/%3E%3Cpath d='M12 7.5v.01'/%3E%3C/svg%3E") !important;
}
html body .woocommerce-notices-wrapper ul.woocommerce-error::before{
    position:absolute !important; top:14px; right:16px; background-color:#fdf3f1 !important;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0392b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v6'/%3E%3Cpath d='M12 16.8v.01'/%3E%3C/svg%3E") !important;
}

/* دکمهٔ «مشاهده سبد خرید» — در سمت چپ */
html body .woocommerce-notices-wrapper .woocommerce-message .button,
html body .woocommerce-notices-wrapper .woocommerce-info .button{
    order:3; float:none !important; flex:none !important; margin:0 auto 0 0 !important; margin-right:auto !important; margin-left:0 !important;
    display:inline-flex !important; align-items:center; justify-content:center; height:40px !important; padding:0 22px !important; box-sizing:border-box !important;
    font-family:inherit !important; font-size:13px !important; font-weight:700 !important; line-height:1 !important; white-space:nowrap; text-decoration:none !important; text-transform:none !important; letter-spacing:0 !important;
    color:#111 !important; background:#c5b98e !important; border:1px solid #c5b98e !important; border-radius:10px !important; box-shadow:none !important; transition:background .25s, color .25s, border-color .25s;
}
html body .woocommerce-notices-wrapper .woocommerce-message .button:hover,
html body .woocommerce-notices-wrapper .woocommerce-info .button:hover{ background:#111 !important; color:#c5b98e !important; border-color:#111 !important; }

/* لینک داخل متن پیام */
html body .woocommerce-notices-wrapper .woocommerce-message a:not(.button),
html body .woocommerce-notices-wrapper .woocommerce-info a:not(.button),
html body .woocommerce-notices-wrapper .woocommerce-error a:not(.button){ color:#9d8c6e; text-decoration:underline; text-underline-offset:3px; }

/* موبایل: متن و آیکن بالا، دکمه تمام‌عرض پایین */
@media (max-width:575px){
    html body .woocommerce-notices-wrapper .woocommerce-message.woocommerce-message,
    html body .woocommerce-notices-wrapper .woocommerce-info.woocommerce-info{
        flex-wrap:wrap !important; gap:10px 12px !important; padding:14px !important; font-size:13px !important; border-radius:12px !important;
    }
    html body .woocommerce-notices-wrapper .woocommerce-message::before, html body .woocommerce-notices-wrapper .woocommerce-info::before{ width:26px !important; height:26px !important; background-size:14px !important; }
    html body .woocommerce-notices-wrapper .woocommerce-message .button, html body .woocommerce-notices-wrapper .woocommerce-info .button{
        order:3; flex:1 1 100% !important; width:100% !important; margin:2px 0 0 !important; height:44px !important;
    }
    html body .woocommerce-notices-wrapper ul.woocommerce-error.woocommerce-error{ padding:14px 14px 14px 14px !important; padding-right:52px !important; font-size:13px !important; }
}
