.amin-megamenu,
.amin-megamenu__panel {
	--amm-orange: #f74506;
	--amm-orange-dark: #d63c05;
	--amm-cyan: #71c7e2;
	--amm-cyan-dark: #3aa7c7;
	--amm-tint: #fff5f1;
	--amm-ice: #f3fbfe;
	--amm-text: #1d2430;
	--amm-muted: #7a8699;
	--amm-line: #eef2f6;
	--amm-split: #dbe3ea;
	--amm-neutral: #f4f6f8;
}

.amin-megamenu {
	position: relative;
	display: inline-flex;
	z-index: 80;
	font-family: inherit;
	direction: rtl;
	text-align: right;
}

.amin-megamenu *,
.amin-megamenu *::before,
.amin-megamenu *::after,
.amin-megamenu__panel,
.amin-megamenu__panel *,
.amin-megamenu__panel *::before,
.amin-megamenu__panel *::after {
	box-sizing: border-box;
}

.amin-megamenu__panel {
	font-family: inherit;
	direction: rtl;
	text-align: right;
}

.elementor-element:has(.amin-megamenu),
.elementor-widget:has(.amin-megamenu),
.elementor-widget-container:has(.amin-megamenu) {
	overflow: visible !important;
}

.amin-megamenu__trigger,
.elementor-element .amin-megamenu__trigger,
.elementor-widget .amin-megamenu__trigger,
.elementor-element a.amin-megamenu__trigger,
.elementor-widget a.amin-megamenu__trigger {
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 5px 16px 5px 8px !important;
	border: 1px solid #e6ebf0 !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: var(--amm-text) !important;
	box-shadow: none !important;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	fill: currentColor;
	text-decoration: none !important;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.amin-megamenu.is-open .amin-megamenu__trigger,
.amin-megamenu__trigger:hover,
.amin-megamenu__trigger:focus,
.amin-megamenu__trigger:focus-visible,
.amin-megamenu__trigger:active,
.elementor-element .amin-megamenu__trigger:hover,
.elementor-widget .amin-megamenu__trigger:hover,
.elementor-element .amin-megamenu__trigger:focus {
	background: #fff !important;
	border-color: var(--amm-cyan) !important;
	color: var(--amm-orange) !important;
	box-shadow: none !important;
	outline: none !important;
	fill: var(--amm-orange);
}

.amin-megamenu__burger {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3.5px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--amm-orange);
	flex: 0 0 32px;
}

.amin-megamenu__burger span {
	display: block;
	width: 13px;
	height: 2px;
	border-radius: 999px;
	background: #fff;
}

.amin-megamenu__label {
	white-space: nowrap;
}

.amin-megamenu__panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr) 220px;
	width: min(1100px, calc(100vw - 24px));
	max-height: min(78vh, 640px);
	height: auto;
	align-items: stretch;
	border: 1px solid #e4eef3;
	border-radius: 16px;
	background: #fff;
	box-shadow: none;
	overflow: auto;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-4px);
	transform-origin: top right;
	transition: opacity 0.14s ease, transform 0.14s ease;
	z-index: 999999;
}

.amin-megamenu__panel::before {
	content: "";
	position: absolute;
	top: -14px;
	right: 0;
	width: 200px;
	height: 14px;
}

.amin-megamenu__panel.is-open {
	opacity: 1;
	pointer-events: auto;
	transform: none;
}

.amin-megamenu__panel[hidden] {
	display: none !important;
}

.amin-megamenu__panel.is-fixed {
	position: fixed;
	margin: 0;
}

.amin-megamenu__panel.is-smart .amin-megamenu__parents,
.amin-megamenu__panel.is-smart .amin-megamenu__pane {
	min-height: 0;
}

.amin-megamenu__close {
	display: none;
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 3;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--amm-text);
	cursor: pointer;
	align-items: center;
	justify-content: center;
}

.amin-megamenu__close svg {
	width: 16px;
	height: 16px;
	display: block;
}

.amin-megamenu__parents {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-height: var(--amm-panel-min, 360px);
	padding: 8px;
	background: var(--amm-ice);
	border-left: 1px solid var(--amm-split);
	overflow: auto;
}

.amin-megamenu__parent,
.amin-megamenu__panel a.amin-megamenu__parent {
	position: relative;
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr) 14px;
	align-items: center;
	gap: 8px;
	padding: 10px;
	border-radius: 10px;
	color: var(--amm-text) !important;
	background: transparent;
	text-decoration: none !important;
	box-shadow: none !important;
}

.amin-megamenu__parent:hover,
.amin-megamenu__parent.is-active,
.amin-megamenu__panel a.amin-megamenu__parent:hover,
.amin-megamenu__panel a.amin-megamenu__parent.is-active {
	background: #fff;
	color: var(--amm-orange) !important;
	text-decoration: none !important;
}

.amin-megamenu__parent.is-active {
	border: 1px solid #d7f0f8;
	border-right: 3px solid var(--amm-cyan);
}

.amin-megamenu__parent-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: #fff;
	border: 1px solid #e5f4fa;
	color: var(--amm-orange);
	overflow: hidden;
}

.amin-megamenu__parent-icon img,
.amin-megamenu__sub-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.amin-megamenu__parent-icon svg,
.amin-megamenu__sub-icon svg,
.amin-megamenu__chevron svg,
.amin-megamenu__more svg {
	width: 15px;
	height: 15px;
	display: block;
}

.amin-megamenu__parent-copy {
	min-width: 0;
	display: grid;
	gap: 2px;
}

.amin-megamenu__parent-name {
	font-size: 13.5px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.amin-megamenu__type {
	color: var(--amm-cyan-dark);
	font-size: 10.5px;
	font-weight: 600;
}

.amin-megamenu__qty {
	display: inline;
	margin-right: 4px;
	color: var(--amm-muted);
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}

.amin-megamenu__chevron {
	color: var(--amm-cyan);
}

.amin-megamenu__main {
	min-width: 0;
	background: #fff;
	border-left: 1px solid var(--amm-split);
}

.amin-megamenu__pane {
	display: none;
	flex-direction: column;
	min-height: var(--amm-panel-min, 360px);
	padding: 16px 18px;
}

.amin-megamenu__pane.is-active {
	display: flex;
}

.amin-megamenu__pane-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--amm-line);
}

.amin-megamenu__pane-head h3 {
	margin: 0;
	color: var(--amm-text);
	font-size: 16px;
	font-weight: 600;
	min-width: 0;
}

.amin-megamenu__more,
.amin-megamenu__panel a.amin-megamenu__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--amm-orange) !important;
	color: #fff !important;
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none !important;
	box-shadow: none !important;
	white-space: nowrap;
}

.amin-megamenu__more:hover,
.amin-megamenu__panel a.amin-megamenu__more:hover {
	background: var(--amm-cyan) !important;
	color: #08323c !important;
}

.amin-megamenu__subs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 10px;
	align-content: start;
}

.amin-megamenu__sub {
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--amm-neutral);
}

.amin-megamenu__sub:hover {
	background: #eceff3;
}

.amin-megamenu__sub-top,
.amin-megamenu__panel a.amin-megamenu__sub-top {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--amm-text) !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

.amin-megamenu__sub-top:hover,
.amin-megamenu__panel a.amin-megamenu__sub-top:hover {
	color: var(--amm-orange) !important;
}

.amin-megamenu__sub-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #e5f4fa;
	color: var(--amm-orange);
	overflow: hidden;
}

.amin-megamenu__sub-name {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13.5px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.amin-megamenu__parent-name .amin-megamenu__qty,
.amin-megamenu__sub-name .amin-megamenu__qty,
.amin-megamenu__pane-head .amin-megamenu__qty {
	font-weight: 600;
}

.amin-megamenu__topic {
	display: block;
	margin: 6px 36px 0 0;
	color: var(--amm-muted);
	font-size: 12px;
	line-height: 1.5;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.amin-megamenu__banners {
	width: 220px;
	min-width: 180px;
	flex: 0 0 220px;
	align-self: stretch;
	background: var(--amm-ice);
	overflow: auto;
}

.amin-megamenu__banner,
.amin-megamenu__panel a.amin-megamenu__banner {
	display: none !important;
	padding: 12px;
	text-decoration: none !important;
	box-shadow: none !important;
	background: transparent;
}

.amin-megamenu__banner.is-active,
.amin-megamenu__panel a.amin-megamenu__banner.is-active {
	display: block !important;
}

.amin-megamenu__banner img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: none;
	object-fit: contain;
	border-radius: 10px;
}

.amin-megamenu__empty {
	display: grid;
	gap: 10px;
	padding: 24px 12px;
	color: var(--amm-muted);
	text-align: center;
}

.amin-megamenu__empty a {
	color: var(--amm-orange) !important;
	font-weight: 600;
	text-decoration: none !important;
}

.amin-megamenu__empty--panel {
	grid-column: 1 / -1;
	align-content: center;
}

@media (max-width: 980px) {
	.amin-megamenu__panel {
		grid-template-columns: 200px minmax(0, 1fr) 180px;
	}

	.amin-megamenu__subs {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	body.amin-has-dock .amin-megamenu__panel,
	body.amin-has-dock .amin-megamenu__panel.is-open {
		display: none !important;
	}

	body.amin-has-dock .amin-megamenu,
	body.amin-has-dock .amin-megamenu__trigger {
		width: auto;
	}

	body.amin-megamenu-lock {
		overflow: hidden;
	}

	body:not(.amin-has-dock) .amin-megamenu,
	body:not(.amin-has-dock) .amin-megamenu__trigger {
		width: 100%;
	}

	body:not(.amin-has-dock) .amin-megamenu__trigger {
		justify-content: center;
	}

	.amin-megamenu__close {
		display: inline-flex;
	}

	.amin-megamenu__panel {
		grid-template-columns: 1fr;
		grid-template-rows: auto minmax(0, 1fr) auto;
		width: auto;
		max-height: min(86vh, calc(100vh - 16px));
		border-radius: 18px;
		overflow: hidden;
	}

	.amin-megamenu__parents {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 6px;
		min-height: 0;
		max-height: none;
		height: auto;
		padding: 12px 48px 10px 12px;
		border-left: 0;
		border-bottom: 1px solid var(--amm-line);
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}

	.amin-megamenu__parent,
	.amin-megamenu__panel a.amin-megamenu__parent {
		flex: 0 0 auto;
		min-width: 148px;
		grid-template-columns: 28px minmax(0, 1fr);
	}

	.amin-megamenu__parent .amin-megamenu__chevron {
		display: none;
	}

	.amin-megamenu__main {
		border-left: 0;
		min-height: 140px;
	}

	.amin-megamenu__pane {
		min-height: 0;
		padding: 12px 14px 16px;
	}

	.amin-megamenu__pane-head {
		align-items: flex-start;
		flex-wrap: wrap;
		margin-bottom: 10px;
		padding-bottom: 10px;
	}

	.amin-megamenu__pane-head h3 {
		font-size: 15px;
	}

	.amin-megamenu__subs {
		grid-template-columns: 1fr;
	}

	.amin-megamenu__banners {
		display: block;
		width: 100%;
		min-width: 0;
		max-height: 120px;
		border-top: 1px solid var(--amm-line);
	}

	.amin-megamenu__banner,
	.amin-megamenu__panel a.amin-megamenu__banner {
		padding: 10px 12px;
	}

	.amin-megamenu__banner img {
		max-height: 96px;
		width: 100%;
		object-fit: cover;
	}
}
