/**
 * WebDigiTech Gutenberg Library — shared block foundation.
 *
 * WDT blocks own their internal spacing and visual structure. Themes must not
 * inject separator borders, outlines or root shadows between adjacent WDT
 * sections. This reset intentionally targets only the root `.wdt-gl` element;
 * borders and shadows on cards, media, buttons and other inner elements remain
 * untouched.
 */

body:not(.block-editor-page) .wp-site-blocks > .wdt-gl,
body:not(.block-editor-page) .wp-site-blocks > * + .wdt-gl,
body:not(.block-editor-page) .wp-block-post-content > .wdt-gl,
body:not(.block-editor-page) .wp-block-post-content > * + .wdt-gl,
body:not(.block-editor-page) .entry-content > .wdt-gl,
body:not(.block-editor-page) .entry-content > * + .wdt-gl,
body:not(.block-editor-page) .is-layout-flow > .wdt-gl,
body:not(.block-editor-page) .is-layout-flow > * + .wdt-gl,
body:not(.block-editor-page) .is-layout-constrained > .wdt-gl,
body:not(.block-editor-page) .is-layout-constrained > * + .wdt-gl,
body:not(.block-editor-page) .wdt-gl {
	border-top: 0 !important;
	border-bottom: 0 !important;
	border-block-start: 0 !important;
	border-block-end: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
}

/* Match the frontend rule in the Gutenberg canvas as well. */
.editor-styles-wrapper .wdt-gl,
.block-editor-block-list__layout .wdt-gl {
	border-top: 0 !important;
	border-bottom: 0 !important;
	border-block-start: 0 !important;
	border-block-end: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
}

/* Flexible Content has an explicit opt-in section-border control. Preserve only
 * that deliberate WDT border; its default remains zero, so theme separators
 * are still suppressed. */
.wdt-gl-flexible-content {
	border-top: var(--wdt-gl-flex-section-border-top-width, 0) solid var(--wdt-gl-flex-section-border-color, transparent) !important;
	border-bottom: var(--wdt-gl-flex-section-border-bottom-width, 0) solid var(--wdt-gl-flex-section-border-color, transparent) !important;
}
