/* ==========================================================================
Table of Contents:
--------------------------------------------------------------------------
1.  General Styles
2.  WordPress Block Styles
3.  Research Insights Styles
4.  Marketo Form Styles (moved to assets/scss/components/_marketforms.scss)
5.  Responsive Styles
6.  File Block Styles
========================================================================== */

/* ==========================================================================
1. General Styles
========================================================================== */
  
.gg-list-style-margin-30 {
    padding-left: 30px;
}

/* ==========================================================================
2. WordPress Block Styles
========================================================================== */

body .wp-block-cover .wp-block-cover__inner-container,
body .wp-block-cover-image .wp-block-cover__inner-container {
    position: static;
    z-index: 1;
}

/* ==========================================================================
3. Research Insights Styles
========================================================================== */

.single-research-insights .gg-post-content .wp-block-post-content ul {
    list-style-type: none;
}

/* ==========================================================================
4. Marketo Form Styles
========================================================================== */

/* Marketo form styles have been moved to assets/scss/components/_marketforms.scss */
/* This file is now imported through the main styles.scss compilation process */

/* ==========================================================================
5. Responsive Styles
========================================================================== */

@media only screen and (max-width: 600px) {
  .h-473 .wp-block-media-text__media {
      min-height: 200px;
      width: 100%;
  }
}

/* ==========================================================================
6. File Block Styles
========================================================================== */

/* File Block, Hide PDF title */
.wp-block-cloudcatch-light-modal-block__content .wp-block-file > a {
  display: none !important;
}

/* ==========================================================================
7. OneTrust Consent Banner Fixes
========================================================================== */

/* 
IMPORTANT: Minimal OneTrust fixes only.
OneTrust handles its own overlay, banner display, and dismissal logic.
We only provide fallback for timeout scenarios.
*/

/* Always ensure OneTrust banner z-index is above overlay (even when hidden) */
/* This prevents overlay from appearing above banner during transitions */
/* We only override z-index - let OneTrust handle all visibility/display logic */
/* Position is needed for z-index to work - use relative as fallback, OneTrust's fixed/absolute will override */
#onetrust-banner-sdk {
  position: relative; /* Required for z-index to work - OneTrust's inline fixed/absolute will override */
  z-index: 2147483647 !important; /* Maximum z-index value (overlay is 2147483645) */
  pointer-events: auto !important;
  /* Don't force display/visibility - let OneTrust handle hiding after acceptance */
}

/* Ensure buttons have high z-index and are clickable */
/* Only set z-index - let OneTrust handle visibility/display */
/* Position is needed for z-index to work */
#onetrust-banner-sdk button,
#onetrust-banner-sdk #onetrust-accept-btn-handler,
#onetrust-banner-sdk #onetrust-pc-btn-handler,
#onetrust-banner-sdk #onetrust-button-group,
#onetrust-banner-sdk #onetrust-button-group-parent {
  position: relative; /* Required for z-index to work - OneTrust's positioning will override if needed */
  z-index: 2147483647 !important;
  pointer-events: auto !important;
  /* Don't force display/visibility - let OneTrust handle it */
  /* Only ensure z-index so buttons are above overlay */
}

/* Ensure Accept button always uses brand color */
#onetrust-banner-sdk #onetrust-accept-btn-handler {
  background-color: #002776 !important;
  color: #ffffff !important; /* White text for contrast on dark blue background */
  border-color: #002776 !important;
}

/* Fallback: Disable overlay pointer events when banner is present */
/* This ensures the banner buttons remain clickable even if overlay is blocking */
/* The JavaScript fallback handlers will also manage this, but CSS provides immediate protection */
body:not(.oneTrust-timeout-fallback) .onetrust-pc-dark-filter {
  /* Let OneTrust handle overlay normally - only interfere if timeout occurs */
}

/* When timeout fallback is active, ensure overlay doesn't block */
.oneTrust-timeout-fallback .onetrust-pc-dark-filter {
  pointer-events: none !important;
}

/* Only hide banner if OneTrust completely fails to initialize */
body:not([data-ot-init="true"]) #onetrust-consent-sdk {
  /* Only apply if OneTrust has truly failed - let OneTrust handle normal display */
}

/* Minimal fallback for timeout scenarios only */
.oneTrust-timeout-fallback #onetrust-consent-sdk {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}