/* Global fix for Digitain iframe positioning */

/* Hide only Digitain iframes created directly in the body */
body > iframe:not([id]):not([class]),
body > iframe[src*="digitain"],
body > iframe[src*="sport"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  z-index: -999 !important;
  pointer-events: none !important;
}

/* Force only the sports iframe to be properly positioned */
/* Only applies to the specific sports iframe, not GTM or other iframes */
#sports-iframe,
#sports-container #sports-iframe {
  position: relative !important; /* Changed from absolute to relative */
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 600px !important; /* Fixed height instead of 100% */
  border: none !important;
  z-index: 1 !important; /* Lower z-index to not overlap site elements */
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Ensure the sports container is visible and properly positioned */
#sports-container {
  position: relative !important;
  z-index: 1 !important; /* Lower z-index to not overlap site elements */
  height: 600px !important; /* Fixed height */
  width: 100% !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Fix for the site layout */
body {
  overflow-x: hidden !important;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
  #sports-container,
  #sports-iframe,
  #sports-container #sports-iframe {
    height: 500px !important;
  }
}