/* Xpertpoin8 Elements: fixes for running the design inside WordPress and Elementor.
   Loaded last in every bundle. */

/* Elementor wraps every widget; the sections bring their own spacing */
.xp-canvas .e-con,
.xp-canvas .e-con > .e-con-inner { padding: 0; gap: 0; }
.xp-canvas .elementor-widget:not(:last-child) { margin-block-end: 0; }
.xp-canvas .elementor-widget[class*="elementor-widget-xp-"] { width: 100%; max-width: 100%; }

/* Logged-in view: keep the fixed headers below the WordPress admin bar */
.admin-bar.xp-canvas .site-header,
.admin-bar.xp-canvas .fl-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar.xp-canvas .site-header,
  .admin-bar.xp-canvas .fl-header { top: 46px; }
}

/* The design stylesheets print after Elementor's frontend.css, so the design wins over its
   generic resets on links and images. Two defaults it still changes are set back here:
   - iframes are capped at 100% wide; the live template frames are drawn at device size
     and scaled down by script, so they keep their own width
   - link underlines are removed; the 404 quick links are underlined in the design */
.xp-canvas .elementor .scaled-frame iframe,
.xp-canvas .elementor .viewer-screen iframe { max-width: none; }
.xp-canvas .elementor .error-links a { text-decoration: underline; }

/* Inside the Elementor editor a changed widget is re-rendered without a page load,
   so scroll-reveal content must be visible straight away */
.elementor-editor-active [data-reveal] { opacity: 1 !important; transform: none !important; }
