/* Legacy shortcode pages (D9): fit the old child-theme blocks into the new theme shell.
   Internals keep their own styles; only outer width, font and a few global-reset clashes are handled here. */

/* Divi wrappers around the shortcode ([et_pb_fullwidth_code] etc.) add no spacing here. */
.cg-legacy .cg-dv-section, .cg-legacy .cg-dv-row, .cg-legacy .cg-dv-code { padding: 0; margin: 0; max-width: none; }

/* ---- Gifts finder ---- */
.cgl-finder-page { padding-bottom: clamp(32px, 5vw, 64px); }
.cgl-title { font-size: var(--erp-fs-2xl); margin: 8px 0 16px; }
/* Warning note typed into the page content with an inline Arial style. */
.cgl-finder-page .cgl-article > div[style*="fff3cd"] { font-family: inherit !important; border-radius: var(--erp-r) !important; }

/* ---- Μακέτες / Κατασκευή Ιστοσελίδας: align inner containers with the theme container ---- */
#mkt-page .mkt-container, #mgw-page .mgw-container { max-width: var(--erp-container); padding-inline: var(--erp-gutter); }
#mkt-page, #mgw-page { font-family: var(--erp-font); }
/* The theme sets h1–h6 colour/letter-spacing and a red a:hover globally; these blocks relied on
   inheritance. :where() keeps specificity at element level so the blocks' own class rules still win. */
:where(#mkt-page, #mgw-page, .cgf-wrap) :is(h1, h2, h3, h4, h5, h6) { color: inherit; letter-spacing: normal; }
:where(#mkt-page, #mgw-page, .cgf-wrap) a:hover { color: inherit; }
#mkt-page input, #mkt-page select, #mkt-page textarea, #mgw-page input, #mgw-page select, #mgw-page textarea { min-height: 0; }
