.elementor-widget-tooto-desktop-mega-menu {
	width: 100%;
	max-width: none;
}

.tooto-desktop-mega-menu {
	--tooto-mega-menu-height: clamp(481px, calc(276.57px + 14.1964vw), 640px);
	--tooto-menu-background: #fff;
	--tooto-image-background: #ededed;
	--tooto-menu-text-color: #464646;
	--tooto-menu-active-color: #000;
	--tooto-menu-hover-color: #f33030;
	--tooto-extension-color: #f33030;
	--tooto-menu-padding-top: 48px;
	--tooto-menu-padding-bottom: 64px;
	--tooto-menu-item-gap: 24px;
	--tooto-secondary-item-gap: 12px;
	position: relative;
	isolation: isolate;
	width: 100vw;
	max-width: none;
	height: var(--tooto-mega-menu-height);
	margin-inline: calc(50% - 50vw);
	overflow: hidden;
	background: linear-gradient(
		to right,
		var(--tooto-menu-background) 0 50%,
		var(--tooto-image-background) 50% 100%
	);
}

.tooto-mega-menu__container.ct-container {
	position: relative;
	z-index: 2;
	display: block;
	height: 100%;
	min-height: 0;
	padding: 0;
}

.tooto-mega-menu__left {
	display: flex;
	flex-direction: column;
	gap: var(--tooto-menu-item-gap);
	width: 50%;
	height: 100%;
	min-height: 0;
	padding-block: var(--tooto-menu-padding-top) var(--tooto-menu-padding-bottom);
	padding-inline-end: clamp(24px, 3vw, 64px);
	background: var(--tooto-menu-background);
}

.tooto-mega-menu__nav {
	min-height: 0;
	/* Keep long menus scrollable, with room for the existing keyboard outline. */
	margin: -7px;
	padding: 7px;
	overflow: auto;
	overscroll-behavior: contain;
}

.tooto-mega-menu__list {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: var(--tooto-menu-item-gap);
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tooto-mega-menu__item {
	margin: 0;
	padding: 0;
	line-height: 1;
}

.tooto-mega-menu__link {
	display: inline-block;
	max-width: 100%;
	padding: 0;
	color: var(--tooto-menu-text-color);
	font-family: Poppins, sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	text-wrap: balance;
	transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tooto-mega-menu__link:hover,
.tooto-mega-menu__link:focus-visible {
	color: var(--tooto-menu-hover-color);
}

.tooto-mega-menu__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 5px;
}

.tooto-mega-menu__primary-list > .tooto-mega-menu__item.is-active > .tooto-mega-menu__primary-link {
	color: var(--tooto-menu-active-color);
	font-weight: 600;
}

.tooto-mega-menu__primary-list > .tooto-mega-menu__item.is-active > .tooto-mega-menu__primary-link:hover,
.tooto-mega-menu__primary-list > .tooto-mega-menu__item.is-active > .tooto-mega-menu__primary-link:focus-visible,
.tooto-mega-menu__secondary-list > .tooto-mega-menu__item.is-active > .tooto-mega-menu__secondary-link {
	color: var(--tooto-menu-hover-color);
}

.tooto-mega-menu__secondary-list {
	gap: var(--tooto-secondary-item-gap);
	margin-block-start: var(--tooto-secondary-item-gap);
}

.tooto-mega-menu__secondary-link {
	font-size: 16px;
}

.tooto-mega-menu__extension {
	flex-shrink: 0;
	margin-top: auto;
}

.tooto-mega-menu__extension[hidden],
.tooto-mega-menu__extension-slot[hidden] {
	display: none;
}

.tooto-mega-menu__extension-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--tooto-extension-color);
	font-family: Poppins, sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
}

.tooto-mega-menu__extension-link:hover,
.tooto-mega-menu__extension-link:focus-visible {
	color: var(--tooto-extension-color);
}

.tooto-mega-menu__extension-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 5px;
}

.tooto-mega-menu__extension-icon {
	flex: 0 0 auto;
	width: 28px;
	height: 20px;
	max-width: none;
	transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tooto-mega-menu__extension-link:hover .tooto-mega-menu__extension-icon,
.tooto-mega-menu__extension-link:focus-visible .tooto-mega-menu__extension-icon {
	transform: translateX(4px);
}

.tooto-mega-menu__extension-slot,
.tooto-mega-menu__extension-slot > .e-con {
	width: 100%;
}

.tooto-mega-menu__image-stage {
	position: absolute;
	z-index: 1;
	inset-block: 0;
	inset-inline-start: 50%;
	width: 50%;
	overflow: hidden;
	background: var(--tooto-image-background);
}

.tooto-mega-menu__image-layer {
	position: absolute;
	inset: 0;
	opacity: 0;
	transform: scale(1.015);
	transition:
		opacity 280ms cubic-bezier(0.22, 1, 0.36, 1),
		transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tooto-mega-menu__image-layer.is-active {
	opacity: 1;
	transform: scale(1);
}

.tooto-desktop-mega-menu .tooto-mega-menu__image-layer > .tooto-mega-menu__image,
.tooto-desktop-mega-menu .tooto-mega-menu__image-layer > picture {
	display: block;
	width: 100%;
	height: 100%;
}

.tooto-desktop-mega-menu .tooto-mega-menu__image-layer .tooto-mega-menu__image {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: var(--tooto-image-fit, cover);
	object-position: var(--tooto-image-position, center center);
}

.tooto-mega-menu__editor-warning,
.tooto-mega-menu__editor-empty {
	padding: 16px;
	border: 1px solid #d63638;
	background: #fff8e5;
	color: #1d2327;
	font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tooto-mega-menu__editor-warning {
	position: absolute;
	z-index: 5;
	inset-inline-start: 16px;
	inset-block-end: 16px;
}

.ct-active > .sub-menu .tooto-mega-menu__container,
.ct-active > .sub-menu .tooto-mega-menu__image-stage {
	animation: tooto-mega-menu-content-in 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes tooto-mega-menu-content-in {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 999.98px) {
	.elementor-widget-tooto-desktop-mega-menu,
	.tooto-desktop-mega-menu {
		display: none !important;
	}
}

@media (min-width: 1000px) and (max-width: 1199.98px) {
	.tooto-mega-menu__left {
		padding-inline-end: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tooto-mega-menu__container,
	.tooto-mega-menu__image-stage,
	.tooto-mega-menu__image-layer,
	.tooto-mega-menu__link,
	.tooto-mega-menu__extension-icon {
		animation: none !important;
		transition: none !important;
		transform: none !important;
	}
}

/* Opt-in Products layout; stacked menus retain their own geometry and controls. */
.tooto-desktop-mega-menu[data-tooto-layout="split"] {
	--tooto-primary-width: 268px;
	--tooto-column-gap: 60px;
	--tooto-split-image-width: 45.4861%;
	--tooto-split-inset: calc((100% - min(var(--theme-container-width, 90%), var(--theme-normal-container-max-width, 1560px))) / 2);
	background: var(--tooto-menu-background);

	.tooto-mega-menu__container.ct-container {
		width: 100%;
		max-width: none;
	}

	.tooto-mega-menu__left {
		position: relative;
		width: calc(100% - var(--tooto-split-image-width));
		padding-inline-start: var(--tooto-split-inset);
		padding-inline-end: clamp(24px, 3vw, 48px);
		--tooto-effective-primary: min(var(--tooto-primary-width), 40%);
		--tooto-effective-gap: min(var(--tooto-column-gap), 8vw);
	}

	.tooto-mega-menu__nav {
		position: relative;
		display: grid;
		grid-template-columns: var(--tooto-effective-primary) minmax(0, 1fr);
		column-gap: var(--tooto-effective-gap);
		flex: 1;
		margin: 0;
		padding: 0;
		overflow: visible;
	}

	.tooto-mega-menu__nav::before {
		content: '';
		position: absolute;
		inset-block: -16px -70px;
		inset-inline-start: calc(min(var(--tooto-primary-width), 40%) + var(--tooto-effective-gap) / 2);
		width: 1px;
		background: #ededed;
		pointer-events: none;
	}

	.tooto-mega-menu__primary-list,
	.tooto-mega-menu__secondary-list {
		grid-row: 1;
		min-height: 0;
		overflow: auto;
		overscroll-behavior: contain;
		/* Keep focus rings visible inside each scrollable column. */
		margin: -7px;
		padding: 7px;
	}

	.tooto-mega-menu__primary-list { grid-column: 1; }
	.tooto-mega-menu__secondary-list { grid-column: 2; }
	.tooto-mega-menu__secondary-list[hidden] { display: none; }
	.tooto-mega-menu__primary-list > .tooto-mega-menu__item {
		display: flex;
		align-items: stretch;
		justify-content: space-between;
		gap: 0;
	}
	.tooto-mega-menu__link { font-size: 16px; font-weight: 400; text-wrap: wrap; }
	.tooto-mega-menu__primary-link {
		display: block;
		flex: 1;
		min-width: 0;
		padding-inline-end: 8px;
	}
	.tooto-mega-menu__primary-list > .tooto-mega-menu__item:hover > .tooto-mega-menu__primary-link {
		color: var(--tooto-menu-hover-color);
	}
	.tooto-mega-menu__image-stage {
		inset-inline-start: auto;
		inset-inline-end: 0;
		width: var(--tooto-split-image-width);
	}
	.tooto-mega-menu__extension { width: min(var(--tooto-primary-width), 40%); }
	.tooto-mega-menu__extension-icon { width: 21px; height: 20px; }
	.tooto-mega-menu__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: flex-end;
		flex: 0 0 24px;
		width: 24px;
		min-height: 24px;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		color: var(--tooto-menu-text-color);
		cursor: pointer;
	}
	.tooto-mega-menu__toggle img { width: 6px; height: 12px; }
	.tooto-mega-menu__toggle:focus-visible { outline: 2px solid var(--tooto-menu-hover-color); outline-offset: 3px; }
}

/* A hidden branch cancels its animations; revealing it restarts the stagger.
 * No timers or persistent opacity state can leak across rapid branch changes. */
@media (min-width: 1000px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.tooto-desktop-mega-menu[data-tooto-layout="split"] .tooto-mega-menu__secondary-list:not([hidden]) > .tooto-mega-menu__item {
		animation: tooto-mega-secondary-in 320ms cubic-bezier(0.22, 1, 0.36, 1) var(--tooto-secondary-enter-delay, 0ms) both;
	}

	/* A keyboard-focused link must be visible immediately, even during a delay. */
	.tooto-desktop-mega-menu[data-tooto-layout="split"] .tooto-mega-menu__secondary-list > .tooto-mega-menu__item:focus-within {
		animation: none;
	}
}

@keyframes tooto-mega-secondary-in {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}
