/*
Template:       veres
Theme Name:     Veres Child
Theme URI:      http://themeforest.net/user/LaStudio/portfolio?ref=LaStudio
Author:         LA Studio
Author URI:     http://themeforest.net/user/LaStudio?ref=LaStudio
Description:    Veres - Handmade Soap & Candles Shop
Version:        1.0.0
Requires at least: 4.4
Requires PHP: 5.6
Tags:           beauty, beauty products, beauty products woocommerce, beauty shop, clean, cosmetic, Cosmetic store, Cosmetics shop, ecommerce, ecommerce theme, modern, shop, store, woocommerce, woocommerce theme
License: 		    GNU General Public License
License URI: 	  licence/GPL.txt
Text Domain:    veres-child
Domain Path:    /languages/
*/

/* ==========================================================
   رسائل ووكومرس (تمت الإضافة إلى السلة / أخطاء)
   الهيدر في هذا القالب عائم (elementor-location-header) بارتفاع
   --lakit-header-height، والرسالة كانت تُطبع في أعلى الصفحة فتتشابك
   مع الشعار. الحل: تنبيه مثبّت *أسفل الهيدر* مباشرة، مع مسافة
   واضحة بين نص الرسالة وزر «عرض السلة».
   ========================================================== */
body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-notices-wrapper {
  position: fixed !important;
  top: calc(var(--lakit-header-height, 100px) + 10px) !important;
  bottom: auto !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: min(92vw, 620px) !important;
  max-width: 620px !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 999999 !important;
  pointer-events: none;
  animation: alzNoticeIn .35s ease both;
}
body .woocommerce-notices-wrapper:empty { display: none !important; }

body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-notices-wrapper > .woocommerce-message,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-notices-wrapper > .woocommerce-info,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-notices-wrapper > .woocommerce-error {
  border-radius: 14px !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .16) !important;
  margin: 0 !important;
  font-size: 14.5px !important;
  line-height: 1.85 !important;
  color: #4b4f58 !important;
  pointer-events: auto;
}
/* اختفاء لطيف بعد 12 ثانية — وتبقى رسائل الخطأ ظاهرة */
body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-notices-wrapper > .woocommerce-message,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-notices-wrapper > .woocommerce-info {
  animation: alzNoticeOut .6s ease 12s forwards;
}

/* زر «عرض السلة»: مسافة واضحة عن النص + شكل زر */
.woocommerce-message .button.wc-forward,
.woocommerce-notices-wrapper .woocommerce-message a.button {
  display: inline-block !important;
  margin-inline-start: 14px !important;
  margin-block: 6px !important;
  padding: 9px 22px !important;
  border-radius: 999px !important;
  background: #CC9018 !important;
  color: #fff !important;
  font-size: 13.5px !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.woocommerce-message .button.wc-forward:hover { background: #b37e12 !important; color: #fff !important; }

/* الجوال: حشوة أصغر وعرض مريح */
@media (max-width: 600px) {
  body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-notices-wrapper {
    top: calc(var(--lakit-header-height, 100px) + 6px) !important;
    width: 94vw !important;
    max-width: 94vw !important;
  }
  body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-notices-wrapper > .woocommerce-message,
  body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-notices-wrapper > .woocommerce-info,
  body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-notices-wrapper > .woocommerce-error {
    font-size: 14px !important;
    line-height: 1.9 !important;
  }
  html[dir="rtl"] body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-notices-wrapper > .woocommerce-message,
  html[dir="rtl"] body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-notices-wrapper > .woocommerce-info,
  html[dir="rtl"] body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-notices-wrapper > .woocommerce-error {
  }
  .woocommerce-message .button.wc-forward { margin-inline-start: 12px !important; padding: 8px 18px !important; }
}

@keyframes alzNoticeIn  { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes alzNoticeOut { to { opacity: 0; visibility: hidden; } }

/* ===== إصلاح موضع أيقونة ✓ والحشوة في الاتجاه العربي (الأيقونة على اليمين) ===== */
body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-notices-wrapper > .woocommerce-message,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-notices-wrapper > .woocommerce-info,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-notices-wrapper > .woocommerce-error {
  padding: 16px 58px 16px 20px !important;
}

/* ===== الجوال: الزر في سطر مستقل ومسافة واضحة عن النص ===== */
@media (max-width: 600px) {
  body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-notices-wrapper > .woocommerce-message,
  body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-notices-wrapper > .woocommerce-info,
  body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-notices-wrapper > .woocommerce-error {
    padding: 16px 54px 18px 18px !important;
    line-height: 1.95 !important;
  }
  .woocommerce-notices-wrapper .woocommerce-message .button.wc-forward,
  .woocommerce-notices-wrapper .woocommerce-message a.button {
    display: block !important;
    float: none !important;
    width: -moz-fit-content !important;
    width: fit-content !important;
    margin: 12px 0 0 0 !important;      /* مسافة فوق الزر */
    padding: 10px 24px !important;
    font-size: 14px !important;
  }
  html[dir="rtl"] .woocommerce-notices-wrapper .woocommerce-message .button.wc-forward,
  html[dir="rtl"] .woocommerce-notices-wrapper .woocommerce-message a.button {
    margin: 12px 0 0 0 !important;
  }
}

/* ===== ضبط دقيق: مكان أيقونة ✓ ومسافتها عن النص (عربي) ===== */
html[dir="rtl"] .woocommerce-notices-wrapper .woocommerce-message:before,
html[dir="rtl"] .woocommerce-notices-wrapper .woocommerce-info:before,
html[dir="rtl"] .woocommerce-notices-wrapper .woocommerce-error:before {
  right: 20px !important;
  left: auto !important;
  font-size: 17px !important;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-notices-wrapper > .woocommerce-message,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-notices-wrapper > .woocommerce-info,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-notices-wrapper > .woocommerce-error {
  padding: 16px 64px 16px 20px !important;
}
