/* Price-check page built with Elementor containers.
   The hand-written page used plain block elements; Elementor containers are flex columns with a 10px padding and a gap,
   and every widget has a wrapper and a bottom margin. To keep the page pixel-identical - on the site AND inside the
   Elementor editor canvas, which loads this same file - it:
   - sets every container to display:block unless the page stylesheet (price-check-scoped.css) gives it flex/grid
     (flex-only panel options - direction, gap, alignment - therefore act only on containers the page lays out as
     flex/grid; padding, margin, width, background, borders, z-index... work everywhere),
   - resets Elementor's container *variables* (gap, padding, margin, width) to 0 / auto, so values an editor sets in the
     Elementor panel (written as more specific rules) still win,
   - removes the widget wrapper box (display:contents) so the element inside takes part in the parent's layout.
   Cascade: the --display rule has specificity (0,3,0) to beat Elementor's generated --display:flex; the rest is (0,2,0),
   loads after Elementor's own rules, and the scoped page rules load after this file. Scope: .speego-price-check. */

.speego-price-check .e-con {
  --flex-direction: initial;
  --flex-wrap: initial;
  --gap: 0px;
  --row-gap: 0px;
  --column-gap: 0px;
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  --margin-top: 0px;
  --margin-right: 0px;
  --margin-bottom: 0px;
  --margin-left: 0px;
  --width: auto;
  --min-height: 0px;
  min-width: 0;
  max-width: none;
  overflow: visible;
  box-sizing: border-box;
}
/* (0,4,0): the Elementor editor injects the document's generated CSS ("--display:flex" per container) AFTER the site
   stylesheets, so on a tie it would win inside the editor; this must out-rank it there as well. */
.speego-price-check.speego-price-check .elementor-element.e-con {
  --display: block;
}
/* Containers are static boxes on the site (as the original divs were). In the editor they keep Elementor's
   position:relative so selection frames and "+" handles line up. (:where keeps specificity at 0,2,0.) */
.speego-price-check:where(:not(.elementor-editor-preview)) .e-con {
  position: static;
}

.speego-price-check .elementor-widget,
.speego-price-check .elementor-widget-container {
  display: contents !important;
}
.speego-price-check .elementor-widget:not(:last-child) {
  margin-block-end: 0;
  margin-bottom: 0;
}

/* ---- Elementor editor canvas only ----
   A widget whose wrapper has no box cannot show Elementor's overlay frame. Hide that overlay so clicks reach the element
   (a click bubbles to the widget wrapper and selects it), and draw hover / selection outlines on the element itself. */
.speego-price-check.elementor-editor-preview .elementor-widget > .elementor-element-overlay {
  display: none !important;
}
.speego-price-check.elementor-editor-preview .elementor-widget:hover > .elementor-widget-container > :first-child {
  outline: 1px dashed #d5001c;
  outline-offset: -1px;
}
.speego-price-check.elementor-editor-preview .elementor-widget.elementor-element-editable > .elementor-widget-container > :first-child {
  outline: 2px solid #d5001c;
  outline-offset: -2px;
}
