/**
 * Rey Megamenu – one full-width strip below nav
 */

.rey-megamenu-strip {
	position: absolute;
	left: 0;
	width: 100%;
	z-index: 999998;
	pointer-events: none;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	top: calc(100% + var(--submenu-panels-distance, 15px));
	box-sizing: border-box;
}

.rey-megamenu-strip.rey-megamenu-strip--active {
	pointer-events: auto;
	visibility: visible;
	opacity: 1;
}

.rey-megamenu-strip-inner {
	width: 100%;
	max-width: 100%;
	background: #fff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
	overflow: hidden;
}

.rey-megamenu-panel {
	display: none !important;
	padding: 1.5rem 2rem;
	max-height: 80vh;
	overflow-y: auto;
	box-sizing: border-box;
}

/* Panel styles now come from visual editor inline styles */
.rey-megamenu-panel.rey-megamenu-panel--active {
	display: flex !important;
}

.rey-megamenu-placeholder {
	color: #666;
	font-style: italic;
	margin: 0;
}

/* Row Layout - Styles now come from visual editor inline styles */
.rey-megamenu-row {
	box-sizing: border-box;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 20px;
}

/* Inner row: children (columns) must live under this row */
.rey-megamenu-inner-row {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 10px;
}

/* Column Layout - Styles now come from visual editor inline styles */
.rey-megamenu-column {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
}

/* Inner column: children (elements) must live under this column */
.rey-megamenu-inner-column {
	display: flex;
	flex-direction: column;
}