/**
 * Site Visual & Interaction Enhancements
 * Guarantees smooth single-click accordion/toggle, background graphics, slider display, and animation reliability
 */

/* 1. Prevent any element from staying hidden due to un-triggered waypoint animations */
.elementor-invisible {
  visibility: visible !important;
  opacity: 1 !important;
}

/* 2. Background image for 'Have taken a few bottles today?' form section */
.elementor-element.elementor-element-404a49d4,
.elementor-element.elementor-element-404a49d4:not(.elementor-motion-effects-element-type-background),
.elementor-element.elementor-element-404a49d4 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-image: url("../../wp-content/uploads/2024/12/DALL·E-2024-12-31-10.49.39-A-lively-cricket-stadium-at-night-with-a-packed-audience-cheering-under-a-starry-sky.-The-focus-is-on-hands-holding-blue-bottled-water-with-the-label-.webp") !important;
  background-position: center right !important;
  background-repeat: no-repeat !important;
  background-size: 55% auto !important;
}

@media (max-width: 1024px) {
  .elementor-element.elementor-element-404a49d4,
  .elementor-element.elementor-element-404a49d4:not(.elementor-motion-effects-element-type-background),
  .elementor-element.elementor-element-404a49d4 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-size: cover !important;
  }
}

/* 3. Interactive Title Cursor & Click Normalization */
.elementor-tab-title {
  cursor: pointer !important;
  user-select: none;
}

.elementor-tab-title * {
  pointer-events: none; /* Clicks anywhere inside title bar target the tab title cleanly */
}

/* 4. Toggle Chevron Icon Switching */
.elementor-toggle .elementor-tab-title.elementor-active .elementor-toggle-icon-closed,
.elementor-accordion .elementor-tab-title.elementor-active .elementor-accordion-icon-closed {
  display: none !important;
}

.elementor-toggle .elementor-tab-title.elementor-active .elementor-toggle-icon-opened,
.elementor-accordion .elementor-tab-title.elementor-active .elementor-accordion-icon-opened {
  display: inline-block !important;
}

.elementor-toggle .elementor-tab-title:not(.elementor-active) .elementor-toggle-icon-opened,
.elementor-accordion .elementor-tab-title:not(.elementor-active) .elementor-accordion-icon-opened {
  display: none !important;
}

.elementor-toggle .elementor-tab-title:not(.elementor-active) .elementor-toggle-icon-closed,
.elementor-accordion .elementor-tab-title:not(.elementor-active) .elementor-accordion-icon-closed {
  display: inline-block !important;
}

/* 5. Ensure slider background image displays clearly */
.elementor-widget-slides .swiper-slide-bg {
  opacity: 1 !important;
  visibility: visible !important;
}

/* 6. Reliable mobile header menu state.
 * Scope this to the outer dropdown nav so nested Products/Resources submenus
 * do not accidentally receive the open state.
 */
@media (max-width: 1024px) {
  .elementor-widget-nav-menu.elementor-nav-menu--toggle
    > .elementor-widget-container
    > nav.elementor-nav-menu--dropdown {
    z-index: 9997;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .elementor-widget-nav-menu.elementor-nav-menu--toggle
    > .elementor-widget-container
    > nav.elementor-nav-menu--dropdown.elementor-active {
    display: block !important;
    max-height: 100vh !important;
    opacity: 1 !important;
    transform: scaleY(1) !important;
    visibility: visible !important;
  }
}
