/**
 * Elementor-specific fixes to avoid conflicts with the Prooflet theme.
 */

/* Ensure Elementor sections don't inherit theme font overrides */
.elementor-page .elementor-widget-text-editor,
.elementor-page .elementor-widget-heading {
  font-family: inherit;
}

/* Fix default Elementor button to not conflict with .pl-btn */
.elementor-page .elementor-button {
  font-family: var(--pl-font-sans);
}

/* Remove extra padding when Elementor is active */
.elementor-page .site-main {
  padding: 0;
}

/* Ensure Elementor sections fill full width */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1280px;
}

/* Fix z-index for Elementor popups to stay above header */
.elementor-popup-modal {
  z-index: 110 !important;
}

/* Elementor nav widget shouldn't conflict with theme nav */
.elementor-page .pl-header {
  /* Theme header still works when Elementor Pro header isn't active */
}

/* When Elementor Theme Builder header is used, hide theme header */
.elementor-location-header ~ .pl-header {
  display: none;
}

/* Reset section padding if Elementor handles it */
.elementor-page .pl-blog-archive,
.elementor-page .pl-single,
.elementor-page .pl-page {
  padding-top: 0;
}
