/* Arab UT — Main Stylesheet — Dark gaming theme, RTL Arabic */
:root {
  --arabut-primary: #D4A843;
  --arabut-primary-dark: #B8860B;
  --arabut-bg: #0A0A0A;
  --arabut-surface: #1A1A1A;
  --arabut-surface-light: #2D2D2D;
  --arabut-accent: #6B1C2A;
  --arabut-text: #FFFFFF;
  --arabut-text-secondary: #B0B0B0;
  --arabut-text-muted:      #808080;
  --arabut-success: #22C55E;
  --arabut-danger: #EF4444;
  --arabut-font-body: "Thmanyah Sans", sans-serif;
  --arabut-font-heading: "Thmanyah Serif Display", "Thmanyah Sans", sans-serif;
  --arabut-heading-word-space: 0.08em;
  --arabut-heading-highlight-gap: 0.08em;
}

/* ────────────────────────────────────────────────────────────────────
   SKELETON LOADING SYSTEM
   ────────────────────────────────────────────────────────────────────
   Two layers:

   1. IMAGE SKELETONS (legacy, automatic) — boot script in inc/enqueue.php
      adds .ut-img-pending to every <img> on page load. CSS below paints
      a dark surface + an animated gold shimmer band that scans across
      the image until the load/error event swaps the class to ut-img-
      loaded or ut-img-error.

   2. CONTENT SKELETONS (.arabut-skeleton utility class) — for ANY
      element (text rows, cards, AJAX-loading regions). Add the class
      and an inline width/height (or use one of the variants below) to
      get the same shimmer treatment. When real content arrives, swap
      the class out — the skeleton fades in 200ms.
   ─────────────────────────────────────────────────────────────────── */

@keyframes arabutImageSkeleton {
  from { background-position: 200% 0; }
  to { background-position: -100% 0; }
}

@keyframes arabutSkeletonPulse {
  0%, 100% { opacity: 0.72; }
  50%      { opacity: 1; }
}

html.ut-img-watch img.ut-img-pending:not(.ut-img-loaded):not(.ut-img-error),
html.ut-img-watch img.entered:not(.loaded):not(.ut-img-loaded):not(.ut-img-error) {
  background-color: rgba(16, 18, 20, .92) !important;
  /* Stronger gold shimmer (was 16% opacity, now 36%) and faster scan
     so the loading state reads as "actively working" not "stuck". */
  background-image:
    linear-gradient(
      105deg,
      rgba(255,255,255,0)    0%,
      rgba(212,168,67,0.06) 30%,
      rgba(244,208,122,0.36) 50%,
      rgba(212,168,67,0.06) 70%,
      rgba(255,255,255,0)   100%
    ),
    radial-gradient(circle at 50% 18%, rgba(212,168,67,.16), transparent 44%),
    linear-gradient(180deg, rgba(25, 21, 14, .92), rgba(8, 9, 11, .96)) !important;
  background-size: 220% 100%, 100% 100%, 100% 100% !important;
  background-position: 200% 0, center, center !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
  animation: arabutImageSkeleton 1.1s ease-in-out infinite !important;
  border: 1px solid rgba(212,168,67,.18);
}

/* ───── CONTENT SKELETONS — generic utility ─────
   Usage:
     <div class="arabut-skeleton" style="height: 18px; width: 80%"></div>   row
     <div class="arabut-skeleton arabut-skeleton--card"></div>              card
     <div class="arabut-skeleton arabut-skeleton--avatar"></div>            circle
     <div class="arabut-skeleton arabut-skeleton--text"></div>              text row
     <div class="arabut-skeleton arabut-skeleton--btn"></div>               button
   Multiple rows: stack <div class="arabut-skeleton arabut-skeleton--text"></div>
   inside a container. Add inline style="width:..." for variation.
*/
.arabut-skeleton {
  display: block;
  position: relative;
  overflow: hidden;
  background-color: rgba(16, 18, 20, .92);
  background-image:
    linear-gradient(
      105deg,
      rgba(255,255,255,0)    0%,
      rgba(212,168,67,0.06) 30%,
      rgba(244,208,122,0.36) 50%,
      rgba(212,168,67,0.06) 70%,
      rgba(255,255,255,0)   100%
    ),
    linear-gradient(180deg, rgba(25, 21, 14, .92), rgba(8, 9, 11, .96));
  background-size: 220% 100%, 100% 100%;
  background-position: 200% 0, center;
  background-repeat: no-repeat, no-repeat;
  border-radius: 6px;
  animation: arabutImageSkeleton 1.1s ease-in-out infinite;
  border: 1px solid rgba(212,168,67,.10);
  color: transparent !important;
  user-select: none;
  pointer-events: none;
}

/* Variants — semantic shapes */
.arabut-skeleton--text {
  height: 14px;
  width: 100%;
  border-radius: 4px;
  margin-bottom: 8px;
}
.arabut-skeleton--text:last-child { margin-bottom: 0; }
.arabut-skeleton--text.short { width: 60%; }
.arabut-skeleton--text.short-2 { width: 40%; }
.arabut-skeleton--heading {
  height: 22px;
  width: 70%;
  border-radius: 4px;
  margin-bottom: 12px;
}
.arabut-skeleton--btn {
  height: 44px;
  width: 140px;
  border-radius: 12px;
}
.arabut-skeleton--avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.arabut-skeleton--card {
  width: 100%;
  height: 200px;
  border-radius: 14px;
}
.arabut-skeleton--icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

/* Wrapper for a multi-row text-block skeleton */
.arabut-skeleton-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

/* When real content arrives, fade the skeleton out cleanly */
.arabut-skeleton--fading {
  opacity: 0;
  transition: opacity 200ms ease;
}

/* Reduced motion: stop the shimmer, keep the surface */
@media (prefers-reduced-motion: reduce) {
  html.ut-img-watch img.ut-img-pending,
  .arabut-skeleton {
    animation: arabutSkeletonPulse 1.6s ease-in-out infinite !important;
    background-image:
      linear-gradient(180deg, rgba(25, 21, 14, .92), rgba(8, 9, 11, .96)) !important;
    background-size: 100% 100% !important;
    background-position: center !important;
  }
}

/* ────────────────────────────────────────────────────────────────────
   COORDINATED CARD-LEVEL SKELETONS (the "professional" pattern)
   ────────────────────────────────────────────────────────────────────
   When ANY image inside a card is still loading, the WHOLE card —
   image + text + buttons — shows skeleton placeholders. As soon as
   every image inside the card finishes loading (no .ut-img-pending
   left), the real content fades in as one unit.

   How it works:
     1. The boot script in inc/enqueue.php tags every <img> with
        .ut-img-pending until load/error.
     2. CSS `:has(img.ut-img-pending)` matches any card that still has
        a loading image inside.
     3. Inside such a card, .service-icon img / .review-card text /
        .service-cta become skeleton placeholders via specific overrides.
     4. When the LAST image finishes (class swaps to .ut-img-loaded),
        the :has() selector stops matching and the card transitions
        back to its real content with a 200ms fade.

   To apply to a NEW card type, just give it one of the matching class
   names below (.service-card / .review-card / .sbc-product-card / or
   add a manual `.ut-card-loading` class for AJAX-loaded sections).

   To DISABLE on a particular element, add `data-no-skeleton` on the
   element (or its parent).
   ─────────────────────────────────────────────────────────────────── */

/* Smooth fade from skeleton -> real content */
.service-card *,
.review-card *,
.sbc-product-card *,
.ut-card-loading * {
  transition: color 200ms ease, background-color 200ms ease, opacity 200ms ease;
}

/* === SERVICE CARD card-level skeleton === */
/* When the icon img is still loading, paint the whole card as skeleton */
.service-card:has(img.ut-img-pending):not([data-no-skeleton]) h3,
.service-card:has(img.ut-img-pending):not([data-no-skeleton]) p,
.service-card:has(img.ut-img-pending):not([data-no-skeleton]) li,
.service-card:has(img.ut-img-pending):not([data-no-skeleton]) .service-cta {
  color: transparent !important;
  background:
    linear-gradient(
      105deg,
      rgba(255,255,255,0)    0%,
      rgba(212,168,67,0.06) 30%,
      rgba(244,208,122,0.32) 50%,
      rgba(212,168,67,0.06) 70%,
      rgba(255,255,255,0)   100%
    ),
    linear-gradient(180deg, rgba(25, 21, 14, .82), rgba(8, 9, 11, .92)) !important;
  background-size: 220% 100%, 100% 100% !important;
  background-position: 200% 0, center !important;
  background-repeat: no-repeat !important;
  border-radius: 4px !important;
  animation: arabutImageSkeleton 1.1s ease-in-out infinite !important;
  text-shadow: none !important;
}
.service-card:has(img.ut-img-pending):not([data-no-skeleton]) .service-cta svg,
.service-card:has(img.ut-img-pending):not([data-no-skeleton]) li::marker {
  visibility: hidden !important;
}

/* === REVIEW CARD card-level skeleton === */
/* Reviews don't load images today, but if a future review-card variant
   includes an avatar/product image, the same coordination kicks in. */
.review-card:has(img.ut-img-pending):not([data-no-skeleton]) p,
.review-card:has(img.ut-img-pending):not([data-no-skeleton]) .review-author,
.review-card:has(img.ut-img-pending):not([data-no-skeleton]) .review-tags,
.review-card:has(img.ut-img-pending):not([data-no-skeleton]) .review-stars svg {
  color: transparent !important;
  fill: rgba(212,168,67, 0.16) !important;
  background:
    linear-gradient(
      105deg,
      rgba(255,255,255,0)    0%,
      rgba(212,168,67,0.06) 30%,
      rgba(244,208,122,0.32) 50%,
      rgba(212,168,67,0.06) 70%,
      rgba(255,255,255,0)   100%
    ),
    linear-gradient(180deg, rgba(25, 21, 14, .82), rgba(8, 9, 11, .92)) !important;
  background-size: 220% 100%, 100% 100% !important;
  background-position: 200% 0, center !important;
  background-repeat: no-repeat !important;
  border-radius: 4px !important;
  animation: arabutImageSkeleton 1.1s ease-in-out infinite !important;
}

/* === SBC PRODUCT CARD card-level skeleton === */
.sbc-product-card:has(img.ut-img-pending):not([data-no-skeleton]) .sbc-card-title,
.sbc-product-card:has(img.ut-img-pending):not([data-no-skeleton]) .sbc-card-price,
.sbc-product-card:has(img.ut-img-pending):not([data-no-skeleton]) .sbc-card-meta,
.sbc-product-card:has(img.ut-img-pending):not([data-no-skeleton]) .sbc-card-cta {
  color: transparent !important;
  background:
    linear-gradient(
      105deg,
      rgba(255,255,255,0)    0%,
      rgba(212,168,67,0.06) 30%,
      rgba(244,208,122,0.32) 50%,
      rgba(212,168,67,0.06) 70%,
      rgba(255,255,255,0)   100%
    ),
    linear-gradient(180deg, rgba(25, 21, 14, .82), rgba(8, 9, 11, .92)) !important;
  background-size: 220% 100%, 100% 100% !important;
  background-position: 200% 0, center !important;
  background-repeat: no-repeat !important;
  border-radius: 4px !important;
  animation: arabutImageSkeleton 1.1s ease-in-out infinite !important;
}

/* === MANUAL OPT-IN: .ut-card-loading === */
/* For AJAX-loaded sections (e.g. cart fragment update, configurator
   price recalc) — JS toggles .ut-card-loading on/off. Inside, text
   nodes become skeletons regardless of image state. */
.ut-card-loading h1, .ut-card-loading h2, .ut-card-loading h3,
.ut-card-loading h4, .ut-card-loading p, .ut-card-loading span,
.ut-card-loading .button, .ut-card-loading a {
  color: transparent !important;
  background:
    linear-gradient(
      105deg,
      rgba(255,255,255,0)    0%,
      rgba(212,168,67,0.06) 30%,
      rgba(244,208,122,0.32) 50%,
      rgba(212,168,67,0.06) 70%,
      rgba(255,255,255,0)   100%
    ),
    linear-gradient(180deg, rgba(25, 21, 14, .82), rgba(8, 9, 11, .92)) !important;
  background-size: 220% 100%, 100% 100% !important;
  background-position: 200% 0, center !important;
  background-repeat: no-repeat !important;
  border-radius: 4px !important;
  animation: arabutImageSkeleton 1.1s ease-in-out infinite !important;
}

/* Browsers that do NOT support :has() (older Safari, very old Chrome)
   silently fall back to the existing per-image skeleton — text shows
   immediately, image stays gold-shimmer until loaded. No regression,
   just no card-level coordination on those browsers. */
@supports not selector(:has(*)) {
  /* No additional rules needed — image skeleton above still works. */
}

/* ────────────────────────────────────────────────────────────────────
   PREMIUM SCROLL REVEAL (the "site moves as you scroll" effect)
   ────────────────────────────────────────────────────────────────────
   Sections start slightly scaled-down + translated + faded, then snap
   to their natural position with a smooth ease as they enter the
   viewport. Once revealed they STAY revealed (no reverse on scroll up
   — that would feel like a glitch on a content site).

   Driven by inc/enqueue.php's arabut_scroll_reveal_boot inline script
   (IntersectionObserver adds .scroll-revealed when the element is
   ≥10% in view). Apply by adding class="scroll-reveal" to any element
   you want this treatment on.

   Use sparingly: works best on full sections (hero, services, reviews,
   faq), not on individual cards inside a grid (cards animating one-by-
   one feels twitchy; better to reveal the whole grid as one unit).
   ─────────────────────────────────────────────────────────────────── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.scroll-reveal.scroll-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger child reveals when applied to a parent — each direct child
   gets a 60ms additional delay, capped at 6 children so the cascade
   doesn't drag forever on grids. */
.scroll-reveal.scroll-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-reveal.scroll-stagger.scroll-revealed > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0ms; }
.scroll-reveal.scroll-stagger.scroll-revealed > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 60ms; }
.scroll-reveal.scroll-stagger.scroll-revealed > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 120ms; }
.scroll-reveal.scroll-stagger.scroll-revealed > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 180ms; }
.scroll-reveal.scroll-stagger.scroll-revealed > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 240ms; }
.scroll-reveal.scroll-stagger.scroll-revealed > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 300ms; }
.scroll-reveal.scroll-stagger.scroll-revealed > *:nth-child(n+7) { opacity: 1; transform: translateY(0); transition-delay: 300ms; }

/* Reduced-motion users get an instant fade-in — no movement.
   Also: if JS doesn't run for any reason, .no-js fallback class on
   <html> would short-circuit; we already inject the boot script so
   this is mostly a courtesy. */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal.scroll-stagger > * {
    transform: none !important;
    transition: opacity 200ms ease !important;
  }
}
html.no-js .scroll-reveal,
html.no-js .scroll-reveal.scroll-stagger > * {
  opacity: 1 !important;
  transform: none !important;
}

html.ut-img-watch img.ut-img-loaded {
  animation: none !important;
  background: transparent !important;
  border-color: transparent;
}

html.ut-img-watch img.ut-img-error {
  background:
    radial-gradient(circle at 50% 16%, rgba(212,168,67,.18), transparent 54%),
    linear-gradient(180deg, rgba(24, 19, 12, .94), rgba(7, 8, 10, .98)) !important;
  border: 1px solid rgba(212,168,67,.18);
  color: transparent !important;
  font-size: 0 !important;
}

#arabut-header img.ut-img-pending,
#arabut-header img.ut-img-error,
.hero-logo.ut-img-pending,
.hero-logo.ut-img-error,
.footer-logo.ut-img-pending,
.footer-logo.ut-img-error {
  border-radius: 14px;
}

.service-icon img.ut-img-pending,
.service-icon img.ut-img-error,
.platform-logo-img.ut-img-pending,
.platform-logo-img.ut-img-error,
.payment-logos img.ut-img-pending,
.payment-logos img.ut-img-error {
  border-radius: 10px;
}

* { box-sizing: border-box; }

body, body.flavor-flavor {
  background-color: #0A0A0A !important;
  background-image:
    linear-gradient(180deg, rgba(5,5,6,0.50), rgba(5,5,6,0.88) 44%, rgba(5,5,6,0.96)),
    image-set(
      url('../images/arabut-bg-premium.webp') type('image/webp'),
      url('../images/arabut-bg-premium.png') type('image/png')
    ) !important;
  background-repeat: no-repeat !important;
  background-position: center top !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  color: #FFFFFF !important;
  font-family: var(--arabut-font-body) !important;
  font-kerning: normal;
  line-height: 1.7;
  direction: rtl;
  text-align: right;
}

@media (max-width: 640px) {
  body, body.flavor-flavor {
    background-image:
      linear-gradient(180deg, rgba(5,5,6,0.50), rgba(5,5,6,0.88) 44%, rgba(5,5,6,0.96)),
      image-set(
        url('../images/arabut-bg-premium-mobile.webp') type('image/webp'),
        url('../images/arabut-bg-premium.png') type('image/png')
      ) !important;
  }
}

h1, h2, h3, h4, h5, h6 { color: #FFFFFF !important; font-weight: 700; }
h1, h2, h3,
.hero-title,
.asp-hero-title,
#arabut-all-reviews .ar-hero-title,
#arabut-sbc-page .sbc-hero-title,
.sbc-hero-title,
.market-modal-title,
.section-header h2,
.step-title,
.sbc-step-title,
.asp-support-title,
#arabut-sbc-page .sbc-card-title,
#arabut-sbc-page .sbc-trust-title,
#arabut-sbc-page .sbc-section-kicker-title {
  font-family: var(--arabut-font-heading) !important;
  font-optical-sizing: auto;
  font-kerning: normal;
  letter-spacing: 0 !important;
  word-spacing: var(--arabut-heading-word-space);
  line-height: 1.22;
  text-wrap: balance;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga" 1, "calt" 1, "kern" 1, "ss01" 1;
}

.hero-title-gold,
#arabut-sbc-page .sbc-hero-title-accent,
.hero-title-focus,
.arabut-heading-focus {
  display: inline-block;
  padding-inline: var(--arabut-heading-highlight-gap);
}

p, span, div, li, td, th { color: #FFFFFF; }
a { color: var(--arabut-primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--arabut-primary-dark); }

/* Astra overrides */
.ast-separate-container, .ast-plain-container,
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-comment-list li,
.ast-page-builder-template .entry-header,
#page, #content, .site-content,
.ast-container, .site-main,
.entry-content, .page-content {
  background-color: transparent !important;
  color: #FFFFFF !important;
}

.ast-separate-container .ast-article-single:not(.ast-related-post),
.ast-separate-container .comments-area {
  background-color: transparent !important;
  padding: 0 !important;
}

/* Buttons */
.button, button, input[type='submit'], .wp-element-button,
.ast-button, .menu-toggle, a.button, .woocommerce a.button {
  background-color: var(--arabut-primary) !important;
  color: #000 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 24px !important;
  font-family: var(--arabut-font-body) !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.button:hover, button:hover, input[type='submit']:hover,
.wp-element-button:hover, .ast-button:hover, a.button:hover {
  background-color: var(--arabut-primary-dark) !important;
}

/* Forms */
input[type='text'], input[type='email'], input[type='password'],
input[type='tel'], input[type='number'], textarea, select {
  background-color: #2D2D2D !important;
  color: #FFFFFF !important;
  border: 1px solid #444 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-family: var(--arabut-font-body) !important;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--arabut-primary) !important;
  outline: none !important;
}

/* Header */
.site-header, .ast-primary-header, .main-header-bar,
.ast-primary-header-bar, header.site-header,
.ast-header-break-point .ast-mobile-header-wrap .ast-primary-header-bar,
.ast-above-header, .ast-below-header {
  background-color: #0A0A0A !important;
  border-bottom: 1px solid #222 !important;
}

.ast-site-identity .site-title a, .site-title a { color: var(--arabut-primary) !important; }
.site-description { color: var(--arabut-text-secondary) !important; }

/* Navigation */
.main-navigation a, .ast-header-navigation a,
.main-header-menu a, .ast-nav-menu a,
.main-header-bar-navigation .main-header-menu > .menu-item > a {
  color: #FFFFFF !important;
  font-family: var(--arabut-font-body) !important;
}
.main-navigation a:hover, .ast-header-navigation a:hover,
.main-header-menu a:hover, .ast-nav-menu a:hover {
  color: var(--arabut-primary) !important;
}

/* Footer */
.site-footer, .ast-footer-overlay, .ast-small-footer,
.ast-footer-copyright, footer.site-footer,
.ast-small-footer-section, .ast-footer-widget-area {
  background-color: #0A0A0A !important;
  border-top: 1px solid #222 !important;
  color: var(--arabut-text-secondary) !important;
}
.site-footer a, .ast-small-footer a { color: var(--arabut-text-secondary) !important; }
.site-footer a:hover { color: var(--arabut-primary) !important; }

/* WooCommerce dark overrides */
.woocommerce .products, .woocommerce-page .products { background-color: transparent !important; }
.woocommerce div.product, .woocommerce-page div.product { background-color: transparent !important; color: #FFFFFF !important; }

.woocommerce-message, .woocommerce-info {
  background-color: var(--arabut-surface) !important;
  color: #FFFFFF !important;
  border-top-color: var(--arabut-primary) !important;
}
.woocommerce-error {
  background-color: var(--arabut-surface) !important;
  color: #FFFFFF !important;
  border-top-color: var(--arabut-danger) !important;
}

/* Card component */
.arabut-card {
  background-color: var(--arabut-surface);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #333;
}

/* Hide sidebar */
#secondary { display: none !important; }

/* WhatsApp button */
.arabut-whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background-color: #25D366;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 9999;
  transition: transform 0.2s ease;
}
.arabut-whatsapp-float:hover { transform: scale(1.1); }

/* Admin bar dark */
.wp-admin-bar-arrow { color: #FFFFFF; }

@media (max-width: 768px) {
  body {
    font-size: 14px;
    background-attachment: scroll !important;
    background-size: auto 760px !important;
    background-position: center top !important;
  }
}

/* Header logo */
.site-logo img, .custom-logo, .ast-site-identity img { max-height: 60px !important; width: auto !important; }
.site-header .custom-logo-link img { max-height: 60px !important; width: auto !important; }
.ast-site-identity .site-title { display: none !important; }
.ast-site-identity .site-description { display: none !important; }

/* Reusable Arab UT notification layer.
   WooCommerce notices should feel like floating product feedback, not page blocks. */
body .woocommerce-notices-wrapper:has(> .woocommerce-error),
body .woocommerce-notices-wrapper:has(> .woocommerce-message),
body .woocommerce-notices-wrapper:has(> .woocommerce-info) {
  position: fixed !important;
  inset-block-start: calc(env(safe-area-inset-top, 0px) + 74px) !important;
  inset-inline: 0 !important;
  width: min(92vw, 520px) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  z-index: 10050 !important;
  pointer-events: none !important;
}

body.admin-bar .woocommerce-notices-wrapper:has(> .woocommerce-error),
body.admin-bar .woocommerce-notices-wrapper:has(> .woocommerce-message),
body.admin-bar .woocommerce-notices-wrapper:has(> .woocommerce-info) {
  inset-block-start: calc(env(safe-area-inset-top, 0px) + 104px) !important;
}

body .woocommerce-notices-wrapper > .woocommerce-error,
body .woocommerce-notices-wrapper > .woocommerce-message,
body .woocommerce-notices-wrapper > .woocommerce-info {
  pointer-events: auto !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 14px 18px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(212,168,67,0.24) !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(212,168,67,0.16), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,0.105), rgba(255,255,255,0.026)),
    rgba(16, 18, 22, 0.88) !important;
  box-shadow:
    0 22px 58px rgba(0,0,0,0.46),
    inset 0 1px 0 rgba(255,255,255,0.10) !important;
  backdrop-filter: blur(18px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(135%) !important;
  color: #F4EFE6 !important;
  font-family: var(--arabut-font-body, "Thmanyah Sans", Tahoma, Arial, sans-serif) !important;
  font-size: 0.92rem !important;
  font-weight: 850 !important;
  line-height: 1.65 !important;
  direction: rtl !important;
  text-align: right !important;
  overflow-wrap: anywhere !important;
  animation: arabutNoticeFloatIn .26s cubic-bezier(.22, 1, .36, 1) both;
}

body .woocommerce-notices-wrapper > .woocommerce-error {
  border-color: rgba(239,68,68,0.48) !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(239,68,68,0.18), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,0.095), rgba(255,255,255,0.024)),
    rgba(22, 16, 18, 0.90) !important;
}

body .woocommerce-notices-wrapper > .woocommerce-message {
  border-color: rgba(34,197,94,0.40) !important;
}

body .woocommerce-notices-wrapper > .woocommerce-error::before,
body .woocommerce-notices-wrapper > .woocommerce-message::before,
body .woocommerce-notices-wrapper > .woocommerce-info::before {
  position: static !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  margin-inline: 0 10px !important;
  border-radius: 999px !important;
  background: rgba(212,168,67,0.16) !important;
  color: #D4A843 !important;
  font-size: 0.82rem !important;
  line-height: 1 !important;
}

body .woocommerce-notices-wrapper > .woocommerce-error::before {
  background: rgba(239,68,68,0.15) !important;
  color: #FCA5A5 !important;
}

body .woocommerce-notices-wrapper > .woocommerce-message::before {
  background: rgba(34,197,94,0.14) !important;
  color: #86EFAC !important;
}

body .woocommerce-notices-wrapper .button,
body .woocommerce-notices-wrapper a.button {
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  margin: 0 12px 0 0 !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  background: rgba(212,168,67,0.16) !important;
  border: 1px solid rgba(212,168,67,0.26) !important;
  color: #F5D77E !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
}

@keyframes arabutNoticeFloatIn {
  from { opacity: 0; transform: translateY(-10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  body .woocommerce-notices-wrapper:has(> .woocommerce-error),
  body .woocommerce-notices-wrapper:has(> .woocommerce-message),
  body .woocommerce-notices-wrapper:has(> .woocommerce-info) {
    inset-block-start: calc(env(safe-area-inset-top, 0px) + 66px) !important;
    width: calc(100vw - 24px) !important;
  }

  body.admin-bar .woocommerce-notices-wrapper:has(> .woocommerce-error),
  body.admin-bar .woocommerce-notices-wrapper:has(> .woocommerce-message),
  body.admin-bar .woocommerce-notices-wrapper:has(> .woocommerce-info) {
    inset-block-start: calc(env(safe-area-inset-top, 0px) + 98px) !important;
  }

  body .woocommerce-notices-wrapper > .woocommerce-error,
  body .woocommerce-notices-wrapper > .woocommerce-message,
  body .woocommerce-notices-wrapper > .woocommerce-info {
    padding: 12px 14px !important;
    border-radius: 16px !important;
    font-size: 0.86rem !important;
  }
}
