/* Keep the existing type scale and use the site's language variables. */
html body.raqiyalbas-experience-active {
  --raq-font-en: 'Montserrat', Arial, sans-serif;
}

html[lang^='ar'] body.raqiyalbas-experience-active {
  --raq-font-ar: 'Tajawal', Tahoma, Arial, sans-serif;
  --raq-font-active: var(--raq-font-ar);
  --raq-line-body: 1.75;
  --raq-line-heading: 1.35;
  --raq-line-control: 1.5;
}

/* Theme and Elementor areas outside the design-system containers. */
html[lang^='ar'] body.raqiyalbas-experience-active :is(
  .elementor, .woocommerce, .woocommerce-page, .widget, .nasa-header,
  .nasa-footer, .nasa-popup, .raqiyalbas-staff-workflow
) :is(h1, h2, h3, h4, h5, h6, p, a, span, label, legend, input, select, textarea, button, li, td, th) {
  font-family: var(--raq-font-ar) !important;
}

html[lang^='ar'] body.raqiyalbas-experience-active :is(input, select, textarea, button) {
  line-height: var(--raq-line-control);
}

/* Product names may wrap instead of being cropped by the theme's one-line class. */
body.raqiyalbas-experience-active .product-item .woocommerce-loop-product__title.nasa-show-one-line {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  height: auto !important;
  max-height: none !important;
}

/* Make the fine-lined Threads mark legible in footer and contact social groups. */
body.raqiyalbas-experience-active a[href*='threads.com/'] {
  color: #fff !important;
}
body.raqiyalbas-experience-active a[href*='threads.com/'] svg {
  width: 25px !important;
  height: 25px !important;
  fill: currentColor !important;
  flex: none;
}

/* WooCommerce focuses notices after saving, which adds a heavy black browser outline. */
body.raqiyalbas-experience-active .woocommerce :is(.woocommerce-message, .woocommerce-info, .woocommerce-error):focus {
  outline: none !important;
  box-shadow: none !important;
}
