/**
 * AMQ Standalone Mega Menu – Frontend CSS
 *
 * Completely standalone — no theme or Elementor dependency.
 * Uses CSS custom properties for easy theming.
 */

/* ============================================
   Shortcode visibility: desktop-only / mobile-only
   ============================================ */
@media (max-width: 991px) {
	.amq-smm-desktop-only {
		display: none !important;
	}
}

@media (min-width: 992px) {
	.amq-smm-mobile-only {
		display: none !important;
	}
}

/* ============================================
   CSS Custom Properties (defaults)
   ============================================ */
:root {
	--amq-smm-bar-bg: #00315a;
	--amq-smm-bar-text: #2E2D2C;
	--amq-smm-dropdown-bg: #ffffff;
	--amq-smm-dropdown-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
	--amq-smm-link-color: #3a3a3a;
	--amq-smm-link-hover: #00315a;
	--amq-smm-heading-color: #2e2d2c;
	--amq-smm-border-color: #e0e0e0;
	--amq-smm-btn-bg: #f0f0f0;
	--amq-smm-btn-hover: #e5e5e5;
}

/* ============================================
   Hide duplicate Elementor header section
   (Second logo row with unrendered [xoo_wsc_cart])
   ============================================ */
.elementor-element-719c6c1 {
	/* This Elementor section contains a redundant second logo 
	   and an unrendered [xoo_wsc_cart] shortcode. */
	display: none !important;
}

/* ============================================
   Root Reset
   ============================================ */
.amq-smm-root *,
.amq-smm-root *::before,
.amq-smm-root *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.amq-smm-root {
	font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
	line-height: 1.5;
	position: relative;
	z-index: 9999;
}

/* ============================================
   Desktop: Menu Bar
   ============================================ */
.amq-smm-bar {
	display: flex;
	align-items: center;
	width: 100%;
	background-color: transparent;
}

/* Hide burger on desktop */
.amq-smm-burger-btn {
	display: none;
}

/* Hide burger panel and overlay on desktop */
.amq-smm-burger-panel,
.amq-smm-overlay {
	display: none;
}

/* Hide swipe bar on desktop */
.amq-smm-swipe-bar {
	display: none;
}

.amq-smm-desktop-nav {
	flex: 1 1 0%;
	min-width: 0;
}

.amq-smm-nav-wrapper {
	width: 100%;
}

.amq-smm-menu {
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	align-items: center;
	justify-content: center;
	width: 100%;
}

/* Top-level items */
.amq-smm-item--top {
	position: relative;
}

.amq-smm-item--top>a {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--amq-smm-bar-text) !important;
	text-decoration: none !important;
	padding: 0 20px;
	height: 45px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.5px;
	white-space: nowrap;
	transition: background-color 0.2s ease;
}

.amq-smm-item--top>a:hover {
	background-color: rgba(255, 255, 255, 0.15);
}

/* ── Badge / Pill ─────────────────────────── */
.amq-smm-has-badge {
	padding-top: 6px;
}

.amq-smm-badge {
	display: block;
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	padding: 3px 14px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	border-radius: 20px;
	pointer-events: none;
	z-index: 1;
	letter-spacing: 0.02em;
}

/* Dropdown arrow for items with mega menu (desktop) – matches FA fa-angle-down */
@media (min-width: 992px) {

	.amq-smm-has-mega>a::after,
	.amq-smm-item--top.menu-item-has-children>a::after {
		content: '';
		display: inline-block;
		width: 12px;
		height: 12px;
		margin-left: 5px;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='white' d='M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z'/%3E%3C/svg%3E");
		background-size: contain;
		background-repeat: no-repeat;
		background-position: center;
		opacity: 0.8;
		transition: transform 0.2s ease;
		vertical-align: middle;
		flex-shrink: 0;
	}

	.amq-smm-item--top:hover>a::after,
	.amq-smm-item--top.amq-smm-hover>a::after {
		transform: rotate(180deg);
	}
}

/* ============================================
   Mega Menu Dropdown — CSS :hover
   ============================================ */
.amq-smm-mega-container {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 99999;
	width: 100vw;
	background: var(--amq-smm-dropdown-bg);
	box-shadow: var(--amq-smm-dropdown-shadow);
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	padding: 0;
	transition: opacity 0.18s ease, visibility 0.18s ease;
}

.amq-smm-item--top:hover>.amq-smm-mega-container,
.amq-smm-item--top.amq-smm-hover>.amq-smm-mega-container {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.amq-smm-item--top.amq-smm-active>.amq-smm-mega-container {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Standard sub-menus (non-mega) */
.amq-smm-item--top>.sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 99999;
	min-width: 240px;
	background: var(--amq-smm-dropdown-bg);
	box-shadow: var(--amq-smm-dropdown-shadow);
	list-style: none;
	margin: 0;
	padding: 8px 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease, visibility 0.15s ease;
	border-radius: 0 0 6px 6px;
}

.amq-smm-item--top:hover>.sub-menu,
.amq-smm-item--top.amq-smm-hover>.sub-menu,
.amq-smm-item--top.amq-smm-active>.sub-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.amq-smm-item--top>.sub-menu .menu-item>a {
	display: block;
	padding: 8px 20px;
	color: var(--amq-smm-link-color) !important;
	font-size: 13px;
	text-decoration: none !important;
	transition: background-color 0.15s ease;
}

.amq-smm-item--top>.sub-menu .menu-item>a:hover {
	background-color: #f5f5f5;
	color: var(--amq-smm-link-hover) !important;
}

/* ============================================
   Mega Menu: Top Button (CTA)
   ============================================ */
.amq-smm-top-button {
	background: #f2f5f7;
	padding: 14px 24px;
	text-align: center;
	border: none;
	border-radius: 3px;
	max-width: 1010px;
	margin: 16px auto 0;
}

.amq-smm-top-btn-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--amq-smm-heading-color) !important;
	text-decoration: none !important;
	font-size: 15px;
	font-weight: 600;
	transition: opacity 0.2s ease;
}

.amq-smm-top-btn-link:hover {
	opacity: 0.75;
}

.amq-smm-top-btn-icon {
	height: 40px;
	width: auto;
	object-fit: contain;
}

/* ============================================
   Mega Menu: Items Grid
   ============================================ */
.amq-smm-mega-items {
	padding: 20px 30px 24px;
	max-width: 1010px;
	margin: 0 auto;
}

/* ── Template: Grid mit Bildern ────────────── */
.amq-smm-template-grid .amq-smm-mega-items {
	display: grid;
	gap: 6px 16px;
}

.amq-smm-template-grid.amq-smm-cols-2 .amq-smm-mega-items {
	grid-template-columns: repeat(2, 1fr);
}

.amq-smm-template-grid.amq-smm-cols-3 .amq-smm-mega-items {
	grid-template-columns: repeat(3, 1fr);
}

.amq-smm-template-grid.amq-smm-cols-4 .amq-smm-mega-items {
	grid-template-columns: repeat(4, 1fr);
}

/* Grid template: bottom buttons span full width */
.amq-smm-template-grid .amq-smm-bottom-buttons {
	grid-column: 1 / -1;
	width: 100%;
	max-width: none;
	padding: 4px 0 0;
	margin: 0;
}

/* Grid template: section heading spans all columns */
.amq-smm-template-grid .amq-smm-grid-title {
	grid-column: 1 / -1;
	font-size: 16.5px;
	font-weight: 700;
	color: #2e2d2c;
	padding-bottom: 8px;
	margin: 4px 0 2px;
	border-bottom: 1px solid #000000;
	letter-spacing: -0.01em;
}

/* ── Template: Gruppiert mit Überschriften ──── */
/* Default: asymmetric layout (e.g. Matratzen: wide left + narrow right) */
.amq-smm-template-grouped .amq-smm-mega-items {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	grid-template-rows: 1fr auto;
	gap: 0 50px;
	align-items: stretch;
}

/* First group (e.g. Federkernmatratzen): left column, row 1 */
.amq-smm-template-grouped .amq-smm-group:first-child {
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
}

/* Second group (e.g. Schaummatratzen): right column, spans both rows */
.amq-smm-template-grouped .amq-smm-group:nth-child(2) {
	grid-column: 2;
	grid-row: 1 / 3;
	min-width: 0;
	align-self: stretch;
	padding-left: 20px;
	display: flex;
	flex-direction: column;
}

/* Bottom buttons: left column, row 2 (under first group) */
.amq-smm-template-grouped .amq-smm-bottom-buttons {
	grid-column: 1;
	grid-row: 2;
	width: 100%;
	padding: 10px 0 0;
	margin: 0;
	max-width: none;
	align-self: end;
}

.amq-smm-group-title {
	font-size: 16.5px;
	font-weight: 700;
	color: #2e2d2c;
	padding-bottom: 8px;
	margin-bottom: 8px;
	border-bottom: 1px solid #000000;
	letter-spacing: -0.01em;
}

.amq-smm-template-grouped .amq-smm-group-items {
	display: flex;
	flex-direction: column;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* First group: 2-column grid for product items (Matratzen only) */
.amq-smm-template-grouped .amq-smm-group:first-child .amq-smm-group-items {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0;
}

/* Non-first groups: single column layout */
.amq-smm-template-grouped .amq-smm-group:not(:first-child) .amq-smm-group-items {
	grid-template-columns: 1fr;
}

/* ── Grouped: Equal columns (e.g. Decken & Kissen) ──── */
/* When grouped template has no bottom buttons → equal 2-col layout */
.amq-smm-template-grouped.amq-smm-cols-2 .amq-smm-mega-items {
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto;
	gap: 0 60px;
}

.amq-smm-template-grouped.amq-smm-cols-2 .amq-smm-group:first-child {
	grid-column: 1;
	grid-row: 1;
}

.amq-smm-template-grouped.amq-smm-cols-2 .amq-smm-group:nth-child(2) {
	grid-column: 2;
	grid-row: 1;
	padding-left: 20px;
}

/* Equal-column groups: single-column item list (not 2-col sub-grid) */
.amq-smm-template-grouped.amq-smm-cols-2 .amq-smm-group-items {
	grid-template-columns: 1fr !important;
}


/* ── Grouped: 4 equal columns ──── */
.amq-smm-template-grouped.amq-smm-cols-4 .amq-smm-mega-items {
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: auto;
	gap: 0 30px;
}

.amq-smm-template-grouped.amq-smm-cols-4 .amq-smm-group:first-child {
	grid-column: 1;
	grid-row: 1;
}

.amq-smm-template-grouped.amq-smm-cols-4 .amq-smm-group:nth-child(2) {
	grid-column: 2;
	grid-row: 1;
	padding-left: 15px;
}

.amq-smm-template-grouped.amq-smm-cols-4 .amq-smm-group:nth-child(3) {
	grid-column: 3;
	grid-row: 1;
	padding-left: 15px;
}

.amq-smm-template-grouped.amq-smm-cols-4 .amq-smm-group:nth-child(4) {
	grid-column: 4;
	grid-row: 1;
	padding-left: 15px;
}

.amq-smm-template-grouped.amq-smm-cols-4 .amq-smm-group-items {
	grid-template-columns: 1fr !important;
}

/* Bottom buttons: span all 4 columns */
.amq-smm-template-grouped.amq-smm-cols-4 .amq-smm-bottom-buttons {
	grid-column: 1 / -1;
	grid-row: 2;
}

/* ── Template: Einfache Liste ──────────────── */
.amq-smm-template-list .amq-smm-mega-items {
	display: grid;
	gap: 4px;
}

.amq-smm-template-list.amq-smm-cols-2 .amq-smm-mega-items {
	grid-template-columns: repeat(2, 1fr);
}

.amq-smm-template-list.amq-smm-cols-3 .amq-smm-mega-items {
	grid-template-columns: repeat(3, 1fr);
}

.amq-smm-template-list.amq-smm-cols-4 .amq-smm-mega-items {
	grid-template-columns: repeat(4, 1fr);
}

.amq-smm-template-list .amq-smm-mega-link {
	padding: 8px 12px;
}

.amq-smm-template-list .amq-smm-item-image {
	display: none;
}

/* ── Template: Kompakt ─────────────────────── */
.amq-smm-template-compact .amq-smm-mega-items {
	display: grid;
	gap: 8px;
}

.amq-smm-template-compact.amq-smm-cols-2 .amq-smm-mega-items {
	grid-template-columns: repeat(2, 1fr);
}

.amq-smm-template-compact.amq-smm-cols-3 .amq-smm-mega-items {
	grid-template-columns: repeat(3, 1fr);
}

.amq-smm-template-compact.amq-smm-cols-4 .amq-smm-mega-items {
	grid-template-columns: repeat(4, 1fr);
}

.amq-smm-template-compact .amq-smm-item-image {
	width: 32px;
	height: 32px;
}

.amq-smm-template-compact .amq-smm-mega-link {
	padding: 6px 8px;
	font-size: 12px;
}

/* ============================================
   Mega Link (Image + Text Card)
   ============================================ */
.amq-smm-mega-link {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 10px 4px;
	border-radius: 4px;
	color: var(--amq-smm-link-color) !important;
	text-decoration: none !important;
	font-size: 14px !important;
	line-height: 1.3 !important;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.amq-smm-mega-link:hover {
	color: var(--amq-smm-link-hover) !important;
}

.amq-smm-item-image {
	width: 80px;
	height: 66px;
	object-fit: contain;
	flex-shrink: 0;
	border-radius: 0;
}

.amq-smm-item-label {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	color: #3a3a3a;
}

/* ============================================
   Mega Menu: Bottom Buttons
   ============================================ */
.amq-smm-bottom-buttons {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 12px;
}

.amq-smm-bottom-btn-link {
	display: block;
	padding: 12px 24px;
	background: #f5f5f5;
	color: var(--amq-smm-heading-color) !important;
	text-decoration: none !important;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	border-radius: 3px;
	border: none;
	transition: background-color 0.15s ease;
}

.amq-smm-bottom-btn-link:hover {
	background: #ebebeb;
}

.amq-smm-bottom-btn-arrow {
	margin-right: 6px;
	font-weight: 700;
	color: #2e2d2c;
}

/* ============================================
   Group Headings (non-link items)
   ============================================ */
.amq-smm-item--heading>a {
	pointer-events: none;
	cursor: default;
}

/* ============================================
   Admin notice (no menu selected)
   ============================================ */
.amq-smm-notice {
	background: #fff3cd;
	color: #856404;
	padding: 12px 20px;
	border: 1px solid #ffc107;
	border-radius: 4px;
	font-size: 14px;
	margin: 10px 0;
}

.amq-smm-notice a {
	color: #0a2a5e;
	font-weight: 600;
}

/* ============================================
   MOBILE (≤ 991px)
   ============================================ */
@media (max-width: 991px) {

	/* Menu bar: burger + swipe nav in one row */
	.amq-smm-bar {
		display: flex;
		align-items: center;
		width: 100%;
		background-color: transparent;
		position: relative;
	}

	/* Show burger button */
	.amq-smm-burger-btn {
		display: flex !important;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
		background: transparent !important;
		border: none;
		color: var(--amq-smm-bar-text);
		padding: 0 10px;
		cursor: pointer;
		z-index: 10;
		outline: none;
		width: 48px;
		height: 45px;
	}

	.amq-smm-burger-btn:hover,
	.amq-smm-burger-btn:active,
	.amq-smm-burger-btn:focus {
		background: transparent !important;
		border: none;
		outline: none;
		box-shadow: none;
	}

	.amq-smm-burger-btn svg {
		width: 24px;
		height: 24px;
		stroke: var(--amq-smm-bar-text);
	}

	/* Desktop nav becomes horizontal swipe bar with fade-out */
	.amq-smm-desktop-nav {
		display: block !important;
		flex: 1 1 0%;
		min-width: 0;
		overflow: hidden;
		-webkit-mask-image: linear-gradient(to right, black 0%, black 75%, transparent 100%);
		mask-image: linear-gradient(to right, black 0%, black 75%, transparent 100%);
	}

	.amq-smm-desktop-nav .amq-smm-menu {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: visible;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		justify-content: flex-start;
		gap: 0;
	}

	.amq-smm-desktop-nav .amq-smm-menu::-webkit-scrollbar {
		display: none;
	}

	/* Smaller items on mobile */
	.amq-smm-desktop-nav .amq-smm-item--top>a {
		padding: 0 12px;
		font-size: 13px;
		height: 45px;
		letter-spacing: 0.3px;
	}

	/* Badge on mobile: compact position inline */
	.amq-smm-desktop-nav .amq-smm-has-badge {
		padding-top: 6px;
	}

	.amq-smm-desktop-nav .amq-smm-badge {
		display: none !important;
	}

	/* Hide dropdown chevrons on mobile swipe bar */
	.amq-smm-desktop-nav .amq-smm-item--top>a>.amq-smm-chevron {
		display: none;
	}

	.amq-smm-item--top>a {
		padding: 10px 14px;
		font-size: 13px;
	}

	/* Disable CSS hover on mobile */
	.amq-smm-item--top:hover>.amq-smm-mega-container,
	.amq-smm-item--top:hover>.sub-menu {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}

	/* Tap-to-open mega on mobile */
	.amq-smm-item--top.amq-smm-active>.amq-smm-mega-container {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		top: auto !important;
		width: 100vw;
		max-height: 70vh;
		overflow-y: auto;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
		z-index: 999999;
	}

	.amq-smm-item--top.amq-smm-active>.sub-menu {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		top: auto !important;
		width: 100vw;
		max-height: 70vh;
		overflow-y: auto;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
		z-index: 999999;
	}

	/* Mobile: reduce grid columns */
	.amq-smm-template-grid .amq-smm-mega-items,
	.amq-smm-template-compact .amq-smm-mega-items {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.amq-smm-template-list .amq-smm-mega-items {
		grid-template-columns: 1fr !important;
	}

	.amq-smm-template-grouped .amq-smm-mega-items {
		display: flex !important;
		flex-direction: column;
		gap: 16px;
	}

	/* Mobile: remove column border in grouped template */
	.amq-smm-template-grouped .amq-smm-group:nth-child(2) {
		border-left: none;
		padding-left: 0;
	}

	.amq-smm-template-grouped .amq-smm-group-items {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	/* ── Swipe Bar (hidden — desktop-nav is now the swipe bar) ── */
	.amq-smm-swipe-bar {
		display: none !important;
	}

	.amq-smm-swipe-wrapper {
		width: 100%;
	}

	.amq-smm-swipe-menu {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		list-style: none;
		margin: 0;
		padding: 0;
		gap: 0;
	}

	.amq-smm-swipe-menu::-webkit-scrollbar {
		display: none;
	}

	.amq-smm-swipe-menu>.menu-item {
		flex-shrink: 0;
	}

	.amq-smm-swipe-menu>.menu-item>a {
		display: block;
		color: var(--amq-smm-bar-text) !important;
		text-decoration: none !important;
		padding: 8px 16px;
		font-size: 13px;
		font-weight: 500;
		white-space: nowrap;
		opacity: 0.85;
		transition: opacity 0.15s ease;
	}

	.amq-smm-swipe-menu>.menu-item>a:hover {
		opacity: 1;
	}

	/* ── Burger Panel ─────────────────────────── */
	.amq-smm-burger-panel {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		width: 85vw;
		max-width: 380px;
		height: 100vh;
		height: 100dvh;
		background: #fff;
		z-index: 1000000;
		overflow-y: auto;
		overflow-x: hidden;
		transform: translateX(-100%);
		transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
	}

	.amq-smm-burger-panel.open {
		transform: translateX(0);
	}

	/* Close button — dark header strip */
	.amq-smm-burger-close {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		background: var(--amq-smm-bar-bg);
		border: none;
		padding: 12px 16px;
		cursor: pointer;
		width: 100%;
		outline: none;
	}

	.amq-smm-burger-close:hover,
	.amq-smm-burger-close:active,
	.amq-smm-burger-close:focus {
		background: var(--amq-smm-bar-bg);
		border: none;
		outline: none;
		box-shadow: none;
	}

	.amq-smm-burger-close svg {
		width: 22px;
		height: 22px;
		stroke: #fff;
	}

	/* Burger panel menu items */
	.amq-smm-burger-panel .amq-smm-burger-list {
		display: flex;
		flex-direction: column;
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.amq-smm-burger-panel .amq-smm-item--top {
		position: relative;
		width: 100%;
	}

	.amq-smm-burger-panel .amq-smm-item--top>a {
		display: flex;
		align-items: center;
		width: 100%;
		color: #2e2d2c !important;
		background: none !important;
		padding: 14px 48px 14px 20px;
		border-bottom: 1px solid #f0f0f0;
		font-size: 15px;
		font-weight: 600;
		letter-spacing: 0.2px;
		text-decoration: none !important;
		text-align: left;
		height: auto;
		white-space: normal;
	}

	.amq-smm-burger-panel .amq-smm-item--top>a:hover,
	.amq-smm-burger-panel .amq-smm-item--top>a:active {
		background: #f8f8f8 !important;
	}

	/* Hide desktop chevrons in burger panel */
	.amq-smm-burger-panel .amq-smm-chevron {
		display: none;
	}

	/* Chevron for items with children */
	.amq-smm-burger-panel .menu-item-has-children>a::after,
	.amq-smm-burger-panel .amq-smm-has-mega>a::after {
		content: '';
		display: block;
		width: 0;
		height: 0;
		border-left: 5px solid transparent;
		border-right: 5px solid transparent;
		border-top: 6px solid #999;
		position: absolute;
		right: 20px;
		top: 20px;
		transform: none;
		transition: transform 0.25s ease;
	}

	.amq-smm-burger-panel .amq-smm-active>a::after {
		transform: rotate(180deg);
	}

	/* Sub-menus in burger panel — accordion style */
	.amq-smm-burger-panel .amq-smm-item--top>.amq-smm-mega-container,
	.amq-smm-burger-panel .amq-smm-item--top>.sub-menu {
		position: static !important;
		width: 100% !important;
		max-height: none;
		box-shadow: none;
		opacity: 0;
		visibility: hidden;
		display: none;
		background: #fafafa;
		border-top: none;
	}

	.amq-smm-burger-panel .amq-smm-item--top.amq-smm-active>.amq-smm-mega-container,
	.amq-smm-burger-panel .amq-smm-item--top.amq-smm-active>.sub-menu {
		display: block;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		border-bottom: 1px solid #e8e8e8;
	}

	/* Overlay */
	.amq-smm-overlay {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.5);
		z-index: 999999;
		transition: opacity 0.3s ease;
	}

	.amq-smm-overlay.active {
		display: block;
	}
}

/* ============================================
   Desktop: hide mobile-only elements
   ============================================ */
@media (min-width: 992px) {
	.amq-smm-swipe-bar {
		display: none !important;
	}

	.amq-smm-burger-btn {
		display: none !important;
	}

	.amq-smm-burger-panel {
		display: none !important;
	}

	.amq-smm-overlay {
		display: none !important;
	}
}

/* ============================================
   Burger Panel: content layout overrides
   ============================================ */
@media (max-width: 991px) {

	/* Single-column in burger panel */
	.amq-smm-burger-panel .amq-smm-mega-items {
		display: flex !important;
		flex-direction: column !important;
		gap: 0 !important;
		max-width: 100% !important;
		padding: 8px 0 !important;
	}

	/* Remove grid/flex layout from groups in burger */
	.amq-smm-burger-panel .amq-smm-template-grouped .amq-smm-group:nth-child(2) {
		border-left: none;
		padding-left: 0;
	}

	.amq-smm-burger-panel .amq-smm-group-items {
		display: flex !important;
		flex-direction: column !important;
		gap: 0 !important;
	}

	.amq-smm-burger-panel .amq-smm-group-items .amq-smm-mega-link,
	.amq-smm-burger-panel .amq-smm-group-items .menu-link.amq-smm-mega-link {
		padding: 10px 20px !important;
		border-bottom: 1px solid #f0f0f0;
	}

	.amq-smm-burger-panel .amq-smm-mega-link,
	.amq-smm-burger-panel .menu-link.amq-smm-mega-link {
		padding: 10px 20px !important;
		border-bottom: 1px solid #f0f0f0;
	}

	.amq-smm-burger-panel .amq-smm-item-image {
		width: 50px;
		height: 40px;
		flex-shrink: 0;
	}

	/* Group titles in burger */
	.amq-smm-burger-panel .amq-smm-group-title,
	.amq-smm-burger-panel .amq-smm-grid-title {
		font-size: 14px;
		font-weight: 700;
		color: #2e2d2c;
		padding: 14px 20px 8px;
		margin: 0;
		text-transform: uppercase;
		letter-spacing: 0.5px;
		border-bottom: 1px solid #e8e8e8;
	}

	/* Bottom buttons in burger panel */
	.amq-smm-burger-panel .amq-smm-bottom-buttons {
		margin-top: 4px;
		padding: 0;
	}

	.amq-smm-burger-panel .amq-smm-bottom-btn-link {
		padding: 12px 20px !important;
		font-size: 14px;
	}

	/* Top CTA in burger panel */
	.amq-smm-burger-panel .amq-smm-top-button {
		padding: 12px 20px;
	}

	.amq-smm-burger-panel .amq-smm-top-btn-link {
		padding: 12px 20px;
		display: block;
		text-align: center;
	}

	/* Badge in burger panel — hidden */
	.amq-smm-burger-panel .amq-smm-badge {
		display: none !important;
	}

	.amq-smm-burger-panel .amq-smm-has-badge {
		padding-top: 0;
	}
}