/**
 * Minimal layout compat for legacy Woodmart / Elementor markup still in DB.
 * Allows safe theme switch without rebuilding all Elementor templates at once.
 */

.wd-page-wrapper,
.website-wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wd-grid-g {
	display: grid;
	gap: var(--wd-gap-lg, 20px);
	grid-template-columns: repeat(var(--wd-col-lg, 1), minmax(0, 1fr));
}

@media (max-width: 1024px) {
	.wd-grid-g {
		grid-template-columns: repeat(var(--wd-col-md, var(--wd-col-lg, 1)), minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.wd-grid-g {
		grid-template-columns: repeat(var(--wd-col-sm, var(--wd-col-md, 1)), minmax(0, 1fr));
	}
}

.wd-col {
	min-width: 0;
}

.wd-content-area.site-content {
	width: 100%;
}

.wd-content-layout {
	padding-block: 1rem;
}

/* Woodmart footer chrome — markup may remain when parent CSS is stripped */
body.rabor-custom-shell :is(
	.wd-search-full-screen,
	.wd-search-full-screen-2,
	.wd-toolbar,
	.wd-toolbar-item,
	.wd-close-side,
	.wd-fs-widget-area
) {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
	height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}
