/* TheBay | أخفِ جميع الخانات في Checkout لحجوزات Bookly (virtual-only) */
body.thebay-zero-fields .woocommerce-billing-fields,
body.thebay-zero-fields .woocommerce-additional-fields,
body.thebay-zero-fields #ship-to-different-address,
body.thebay-zero-fields .wc-block-components-address-form,
body.thebay-zero-fields .wc-block-checkout__billing-fields,
body.thebay-zero-fields .wc-block-components-email-field,
body.thebay-zero-fields .wc-block-components-text-input input[type="email"] { display:none !important; }

/* نظّف المسافات الفارغة */
body.thebay-zero-fields .wc-block-components-panel,
body.thebay-zero-fields .woocommerce-billing-fields > h3 { display:none !important; }

/* عرض مريح إن تبقى أي صفوف */
body.thebay-zero-fields .woocommerce-billing-fields .form-row,
body.thebay-zero-fields .wc-block-checkout__billing-fields .wc-block-components-text-input { width:100% !important; }



/* ===== Slider Revolution – ضبط متقدم حسب القياس =====
   يستهدف السلايدر بالـ alias "main-home" و"main-home-1"
   عدّل الأسماء إذا كان alias مختلفاً لديك
====================================================== */
sr7-module[data-alias="main-home"],
sr7-module[data-alias="main-home-1"] {
  /* لا شيء هنا؛ كل الضبط بالداخل حسب القياس */
}

/* طبقات النص بشكل عام */
sr7-module[data-alias="main-home"] .rs-layer[data-type="text"],
sr7-module[data-alias="main-home-1"] .rs-layer[data-type="text"],
sr7-module[data-alias="main-home"] .tp-caption,
sr7-module[data-alias="main-home-1"] .tp-caption,
sr7-module[data-alias="main-home"] .tp-resizeme,
sr7-module[data-alias="main-home-1"] .tp-resizeme {
  line-height: 1.35 !important;
}

/* صور الطبقات */
sr7-module[data-alias="main-home"] .rs-layer img,
sr7-module[data-alias="main-home-1"] .rs-layer img {
  height: auto !important;
  max-width: 100% !important;
}

/* ============ هواتف صغيرة <=480px ============ */
@media (max-width: 480px) {
  /* اقصى ارتفاع للسلايدر لتقليل LCP */
  sr7-module[data-alias="main-home"],
  sr7-module[data-alias="main-home-1"],
  sr7-module[data-alias="main-home"] .rs-module,
  sr7-module[data-alias="main-home-1"] .rs-module {
    max-height: 480px !important;
    overflow: hidden;
  }

  /* عناوين كبيرة (إن وُجدت طبقات عنوان/Subtitle) */
  sr7-module[data-alias="main-home"] .rs-layer.title,
  sr7-module[data-alias="main-home-1"] .rs-layer.title {
    font-size: clamp(20px, 7vw, 26px) !important;
  }
  sr7-module[data-alias="main-home"] .rs-layer.subtitle,
  sr7-module[data-alias="main-home-1"] .rs-layer.subtitle {
    font-size: clamp(14px, 4.5vw, 18px) !important;
  }

  /* نصوص عامة إن لم تكن هناك classes مخصصة */
  sr7-module[data-alias="main-home"] .rs-layer[data-type="text"],
  sr7-module[data-alias="main-home-1"] .rs-layer[data-type="text"],
  sr7-module[data-alias="main-home"] .tp-caption,
  sr7-module[data-alias="main-home-1"] .tp-caption {
    font-size: clamp(13px, 3.8vw, 16px) !important;
  }

  /* تصغير الصور داخل السلايد */
  sr7-module[data-alias="main-home"] .rs-layer img,
  sr7-module[data-alias="main-home-1"] .rs-layer img {
    max-width: 92% !important;
  }
}

/* ============ موبايل كبير/تابلت صغير 481–767px ============ */
@media (min-width: 481px) and (max-width: 767px) {
  sr7-module[data-alias="main-home"],
  sr7-module[data-alias="main-home-1"],
  sr7-module[data-alias="main-home"] .rs-module,
  sr7-module[data-alias="main-home-1"] .rs-module {
    max-height: 560px !important;
    overflow: hidden;
  }

  sr7-module[data-alias="main-home"] .rs-layer.title,
  sr7-module[data-alias="main-home-1"] .rs-layer.title {
    font-size: clamp(24px, 5.6vw, 32px) !important;
  }
  sr7-module[data-alias="main-home"] .rs-layer.subtitle,
  sr7-module[data-alias="main-home-1"] .rs-layer.subtitle {
    font-size: clamp(16px, 3.8vw, 20px) !important;
  }

  sr7-module[data-alias="main-home"] .rs-layer[data-type="text"],
  sr7-module[data-alias="main-home-1"] .rs-layer[data-type="text"] {
    font-size: clamp(14px, 3vw, 18px) !important;
  }

  sr7-module[data-alias="main-home"] .rs-layer img,
  sr7-module[data-alias="main-home-1"] .rs-layer img {
    max-width: 95% !important;
  }
}

/* ============ تابلت 768–1024px ============ */
@media (min-width: 768px) and (max-width: 1024px) {
  sr7-module[data-alias="main-home"] .rs-layer.title,
  sr7-module[data-alias="main-home-1"] .rs-layer.title {
    font-size: clamp(28px, 4.2vw, 40px) !important;
  }
  sr7-module[data-alias="main-home"] .rs-layer.subtitle,
  sr7-module[data-alias="main-home-1"] .rs-layer.subtitle {
    font-size: clamp(18px, 2.6vw, 24px) !important;
  }
  sr7-module[data-alias="main-home"] .rs-layer[data-type="text"],
  sr7-module[data-alias="main-home-1"] .rs-layer[data-type="text"] {
    font-size: clamp(15px, 1.9vw, 20px) !important;
  }
}

/* تحسين بسيط للمسافات داخل السلايدر على الهواتف */
@media (max-width: 767px) {
  sr7-module[data-alias="main-home"] .rs-layer,
  sr7-module[data-alias="main-home-1"] .rs-layer {
    margin: 0.15rem 0 !important;
  }
}

/* إخفاء كل الحقول لمسار الحجوزات فقط */
body.thebay-appointment-checkout .woocommerce-billing-fields,
body.thebay-appointment-checkout .woocommerce-additional-fields,
body.thebay-appointment-checkout #ship-to-different-address,
body.thebay-appointment-checkout .wc-block-checkout__contact-fields,
body.thebay-appointment-checkout .wc-block-checkout__billing-fields,
body.thebay-appointment-checkout .wc-block-components-address-form,
body.thebay-appointment-checkout .wc-block-components-email-field { display:none !important; }

/* تنظيف فراغات */
body.thebay-appointment-checkout .wc-block-components-panel,
body.thebay-appointment-checkout .woocommerce-billing-fields > h3 { display:none !important; }


.footer-legal { text-align:center; padding:16px 0; }
.footer-legal__line { margin:0; font-size:13px; line-height:1.6; color:#d4d4d4; }
.footer-legal a { color:inherit; text-decoration:none; }
.footer-legal a:hover { text-decoration:underline; }
.footer-legal__line span { margin:0 6px; opacity:.7; }