/**
 * Pura Vape — Elementor compatibility layer.
 *
 * Pages rebuilt as Elementor documents keep the theme's own structural classes
 * so main.css continues to own every pixel. Elementor fights that in three ways:
 *
 *   1. .e-con sets its own display (flex), width and box model.
 *   2. Every widget renders inside two wrapper divs, which break any grid or
 *      flex container that expects the real markup as its direct children.
 *   3. elementor-frontend.css is printed AFTER the theme stylesheet, so on equal
 *      specificity Elementor wins.
 *
 * This file is enqueued at priority 100, after elementor-frontend, and uses
 * .e-con.<class> (0,2,0) to outrank Elementor's .e-con rules (0,1,0). No
 * !important is needed anywhere.
 */

/* ---- 1. hand the box model back to the theme ---------------------------- */

.e-con.page-hero,
.e-con.section,
.e-con.trustbar,
.e-con.wholesale,
.e-con.wrap,
.e-con.steps-grid,
.e-con.tier-grid,
.e-con.feature-grid,
.e-con.contact-grid,
.e-con.about-split,
.e-con.faq-layout,
.e-con.model-band,
.e-con.bulkbuy {
	padding: 0;
	margin: 0;
	--padding-block-start: 0;
	--padding-block-end: 0;
	--padding-inline-start: 0;
	--padding-inline-end: 0;
	--margin-block-start: 0;
	--margin-block-end: 0;
	--margin-inline-start: 0;
	--margin-inline-end: 0;
}

/* Grid gaps come from main.css, but Elementor's .e-con{gap:var(--gap)} is
   printed later at the same specificity, so each one is restated here. */
.e-con.steps-grid,
.e-con.tier-grid {
	gap: 1.4rem;
}

.e-con.feature-grid {
	gap: 1.3rem;
}

.e-con.contact-grid {
	gap: 1.6rem;
}

.e-con.about-split {
	gap: 2.4rem;
}

.e-con.faq-layout {
	gap: 2rem;
}

.e-con.trustbar > .e-con.wrap {
	gap: 1px;
}

/* ---- 2. display modes, restated from main.css --------------------------- */

.e-con.page-hero,
.e-con.section,
.e-con.trustbar,
.e-con.wholesale,
.e-con.model-band {
	display: block;
}

.e-con.steps-grid,
.e-con.tier-grid,
.e-con.feature-grid,
.e-con.contact-grid,
.e-con.about-split,
.e-con.faq-layout,
.e-con.bulkbuy {
	display: grid;
}

.e-con.wrap {
	display: block;
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding: 0 24px;
}

/* main.css: .trustbar .wrap is itself the grid of .tb-item */
.e-con.trustbar > .e-con.wrap {
	display: grid;
}

/* ---- 3. padding the theme owns ------------------------------------------ */

.e-con.section {
	padding: 3.6rem 0;
}

.e-con.page-hero {
	padding: 3.2rem 0 2.8rem;
}

.e-con.pv-pt0 {
	padding-top: 0;
}

/* ---- 4. flatten Elementor's widget wrappers -----------------------------
 * pv-flat          the widget is only a holder; it and its container vanish so
 *                  the markup inside becomes a direct child of the grid above.
 * a theme element  the widget IS the card (.step, .tier, ...), so it keeps its
 *                  own box and only the inner container is flattened, letting
 *                  the theme's padding, border and flex rules reach the
 *                  real children.
 * ------------------------------------------------------------------------ */

.elementor-widget.pv-flat,
.elementor-widget.pv-flat > .elementor-widget-container,
.elementor-widget.pv-flat .elementor-shortcode {
	display: contents;
}

.elementor-widget.step > .elementor-widget-container,
.elementor-widget.tier > .elementor-widget-container,
.elementor-widget.feature > .elementor-widget-container,
.elementor-widget.section-head > .elementor-widget-container,
.elementor-widget.tier-note > .elementor-widget-container,
.elementor-widget.ws-inner > .elementor-widget-container,
.elementor-widget.cform-card > .elementor-widget-container,
.elementor-widget.faq-group > .elementor-widget-container,
.elementor-widget.as-text > .elementor-widget-container,
.elementor-widget.faq-more > .elementor-widget-container {
	display: contents;
}

/* Elementor gives every widget a bottom margin; theme gaps handle spacing. */
.e-con .elementor-widget {
	margin-block-end: 0;
}

/* A widget that IS a themed card must keep the theme's own layout and width.
 *
 * These selectors are deliberately long. Elementor ships
 *   .elementor.elementor .e-con > .elementor-widget { max-width: 100% }
 * at specificity (0,4,0), which outranks a plain .elementor-widget.section-head
 * (0,2,0) no matter which stylesheet is printed last. Mirroring Elementor's own
 * selector and adding the theme class takes these to (0,5,0). */

.elementor.elementor .e-con > .elementor-widget.section-head {
	max-width: 640px;
	margin: 0 auto 2rem;
}

.elementor.elementor .e-con > .elementor-widget.section-head.split {
	max-width: none;
	margin: 0 0 2rem;
}

.elementor.elementor .e-con > .elementor-widget.tier {
	display: flex;
	flex-direction: column;
	max-width: none;
}

.elementor.elementor .e-con > .elementor-widget.ws-inner {
	display: grid;
	max-width: none;
}

.elementor.elementor .e-con > .elementor-widget.step,
.elementor.elementor .e-con > .elementor-widget.feature {
	max-width: none;
}

/* ---- 5. section variants that were inline styles in the PHP templates ---- */

.pv-bg-light {
	background: var(--light);
}

/* ---- 6. editor only: keep empty structural blocks selectable ------------- */

.elementor-editor-active .e-con.page-hero,
.elementor-editor-active .e-con.trustbar,
.elementor-editor-active .e-con.wholesale {
	min-height: 40px;
}

/* ---- 7. homepage containers -------------------------------------------- */

.e-con.model-band {
	padding: 3.2rem 0 3.4rem;
}

.e-con.bulkbuy {
	gap: 1.4rem;
}

/* The bulk-buy feature panel is a flex column card, like .tier. */
.elementor.elementor .e-con > .elementor-widget.bulk-feature {
	display: flex;
	flex-direction: column;
	max-width: none;
}

.elementor-widget.bulk-feature > .elementor-widget-container {
	display: contents;
}
