/* PostGhost Elements: small fixes so Elementor widgets match the original design. */

/* Text editor: the spacing is set on the widget, not on the paragraphs inside. */
.elementor-widget-text-editor p,
.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol { margin-top: 0; }
.elementor-widget-text-editor > *:last-child,
.elementor-widget-text-editor .elementor-widget-container > *:last-child,
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* Headings used for labels keep their size from the widget settings. */
.elementor-widget-heading .elementor-heading-title { margin: 0; }
.elementor-widget-heading .elementor-heading-title a { color: inherit; text-decoration: none; }
.pg-nowrap .elementor-heading-title { white-space: nowrap; }

/* Tables inside text widgets scroll on small screens. */
.elementor-widget-text-editor table { width: 100%; border-collapse: collapse; }
@media (max-width: 767px) {
	.elementor-widget-text-editor:has(table) { overflow-x: auto; }
}

/* Icons and images from SVG files keep their shape. */
.elementor-widget-icon .elementor-icon svg { height: auto; }
.elementor-widget-image img[src$=".svg"] { width: 100%; height: auto; }

/* Accordion (FAQ) look. */
.elementor-widget-accordion .elementor-accordion-item { border-radius: 16px; margin-bottom: 10px; overflow: hidden; }
.elementor-widget-accordion .elementor-accordion-item + .elementor-accordion-item { border-top-width: 1px; }
.elementor-widget-accordion .elementor-tab-title a { color: inherit; text-decoration: none; }

/* Transparency helpers (set in Advanced > CSS Classes): pg-op-5 ... pg-op-95. */
.pg-op-5{opacity:0.05}.pg-op-10{opacity:0.1}.pg-op-15{opacity:0.15}.pg-op-20{opacity:0.2}.pg-op-25{opacity:0.25}.pg-op-30{opacity:0.3}.pg-op-35{opacity:0.35}.pg-op-40{opacity:0.4}.pg-op-45{opacity:0.45}.pg-op-50{opacity:0.5}.pg-op-55{opacity:0.55}.pg-op-60{opacity:0.6}.pg-op-65{opacity:0.65}.pg-op-70{opacity:0.7}.pg-op-75{opacity:0.75}.pg-op-80{opacity:0.8}.pg-op-85{opacity:0.85}.pg-op-90{opacity:0.9}.pg-op-95{opacity:0.95}

/* Headings written in a Text Editor (they hold coloured words) take the widget's font settings. */
.elementor-widget-text-editor :is(h1,h2,h3,h4,h5,h6) { font: inherit; color: inherit; letter-spacing: inherit; margin: 0; }
/* FAQ icons: small, like the original design. */
.elementor-widget-accordion .elementor-accordion-icon { font-size: 14px; }
.elementor-widget-accordion .elementor-accordion-icon svg { width: 14px; height: 14px; }

/* Price switch (monthly / yearly): the switch button sets body.pg-yearly. */
.pg-y { display: none; }
body.pg-yearly .pg-m { display: none; }
body.pg-yearly .pg-y { display: inline; }
