/* Nunito wird bereits über Avadas style.css geladen – hier keine eigene
   @font-face-Deklaration nötig, font-family wird unten direkt verwendet. */

/* ==========================================================================
   Trigger (Hamburger-Icon)
   ========================================================================== */
.cmm-trigger {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 34px;
	height: 34px;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
}
.cmm-trigger-bar {
	display: block;
	width: 26px;
	height: 2px;
	background-color: currentColor;
}

/* ==========================================================================
   Overlay
   ========================================================================== */
.cmm-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--cmm-duration, 300ms) ease;
	z-index: 9998;
	cursor: pointer; /* Fallback, falls im Backend kein eigenes Cursor-Bild hinterlegt ist */
}
.cmm-overlay.cmm-open {
	opacity: 1;
	visibility: visible;
}

/* ==========================================================================
   Panel
   ========================================================================== */
.cmm-panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: var(--cmm-width, 340px);
	max-width: 90vw;
	display: flex;
	flex-direction: column;

	background: -webkit-linear-gradient(bottom left, rgb(103, 35, 109) 0%, rgb(158, 0, 93) 100%);
	background: -o-linear-gradient(bottom left, rgb(103, 35, 109) 0%, rgb(158, 0, 93) 100%);
	background: linear-gradient(to top right, var(--cmm-bg-1, rgb(103, 35, 109)) 0%, var(--cmm-bg-2, rgb(158, 0, 93)) 100%);

	font-family: var(--cmm-font, 'Nunito', sans-serif);
	color: var(--cmm-text, #ffffff);

	transform: translateX(100%);
	transition: transform var(--cmm-duration, 300ms) ease;
	z-index: 9999;
	overflow-x: hidden;
	overflow-y: auto;
}
.cmm-panel.cmm-open {
	transform: translateX(0);
}

.cmm-close {
	align-self: flex-end;
	background: transparent;
	border: 0;
	color: var(--cmm-text, #ffffff);
	font-size: 28px;
	line-height: 1;
	padding: 16px 20px;
	cursor: pointer;
}

body.cmm-noscroll {
	overflow: hidden;
}

/* ==========================================================================
   Menü-Ebenen (Drill-down)
   ========================================================================== */
.cmm-levels {
	position: relative;
}

.cmm-level::after{
	display:block;
	height:var(--cmm-line-thickness, 2px);
	width:90%;
	background:var(--cmm-line, white);
	margin:0 auto;
	content:'';
}

.cmm-level {
	display: none;
}
.cmm-level.cmm-active {
	display: block;
}

.cmm-level-heading {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 60px 24px 6px;
}
.cmm-heading-line {
	flex: 1 1 20px;
	height: var(--cmm-line-thickness, 2px);
	background-color: var(--cmm-line, rgba(255, 255, 255, 1));
}
.cmm-heading-text {
	flex: 0 1 auto;
	max-width: 80%;
	font-family: var(--cmm-font, 'Nunito', sans-serif);
	font-weight: var(--cmm-heading-weight, 700);
	font-size: var(--cmm-heading-size, 30px);
	white-space: normal;
	overflow-wrap: break-word;
	word-break: break-word;
	text-align: center;
	line-height: 1.2;
	color: var(--cmm-text, #ffffff);
}

.cmm-list {
	list-style: none;
	margin: 0;
	padding: 6px 24px 24px;
}

.cmm-item a,
.cmm-back-link {
	display: block;
	color: var(--cmm-text, #ffffff);
	text-decoration: none !important;
	font-size: 20px;
	font-family: var(--cmm-font, 'Nunito', sans-serif);
	font-weight: var(--cmm-item-weight, 400);
	text-align:center;
}

.cmm-item-current > a {
	text-decoration: var(--cmm-current-decoration, none) var(--cmm-current-color, currentColor) !important;
	text-decoration-thickness: var(--cmm-current-thickness, 2px) !important;
	text-underline-offset: 3px;
}

.cmm-item{
	margin-bottom:14px;
}

.cmm-item.cmm-has-sub > a{
	padding-left:12.3px;
}

.cmm-item.cmm-has-sub > a::after {
	content: '+';
	float: right;
	font-weight: 700;
	color:var(--cmm-text, white);
}

.cmm-back-item {
	background:var(--cmm-backbtn-bg, white);
	border-radius:var(--cmm-backbtn-radius, 30px);
	padding:var(--cmm-backbtn-padding, 15px 40px);
	margin-top:10px;
	margin-bottom:20px;
	max-width: fit-content;
	margin-left: auto;
	margin-right: auto;
	border-style: solid;
	border-color: var(--cmm-backbtn-border-color, transparent);
	border-width: var(--cmm-backbtn-border-width, 0px);
	box-sizing: border-box;
}
.cmm-back-link {
	font-weight: 700;
	border-bottom: none;
	padding-top: 4px;
	color:var(--cmm-backbtn-text, #000000);
}
.cmm-back-icon {
	display: inline-block;
	font-weight: 700;
	vertical-align: middle;
	margin-right: 4px;
}
.cmm-back-icon--image {
	vertical-align: middle;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}
.cmm-back-icon--svg {
	vertical-align: middle;
	line-height: 0;
}
.cmm-back-icon--svg svg {
	display: block;
	fill: currentColor;
	position: relative;
	top: -2px;
}

.cmm-item-highlight > a {
	font-weight: 700;
	color: var(--cmm-text, #ffffff);
	position: relative;
}
/*.cmm-item-highlight > a::before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ffffff;
	margin-right: 10px;
	vertical-align: middle;
}*/

/* ==========================================================================
   Unterer Bereich: Bild + Text
   ========================================================================== */
.cmm-bottom {
	flex: 0 0 auto;
	padding: 60px 24px 60px;
}
.cmm-bottom-image {
	max-width: 340px;
	height: auto;
	display: block;
	margin-bottom: 10px;
	border-radius: 4px;
	margin-left:auto;
	margin-right:auto;
	width:50%;
}
.cmm-bottom-text {
	font-family: var(--cmm-font, 'Nunito', sans-serif);
	font-size: 20px;
	color: var(--cmm-text, #ffffff);
	opacity: 0.9;
	text-align:center;
	margin-top:20px;
}

.cmm-bottom-text a,
.cmm-bottom-text a:hover{
	color:var(--cmm-text, white);
	text-decoration:underline;
}
.cmm-bottom-image--white {
	filter: brightness(0) invert(1);
}
.cmm-bottom-image--black {
	filter: brightness(0);
}

/* Avada-Icons an Menüpunkten (seit 2.3.0) */
.cmm-item-icon {
	display: inline-block;
	font-size: var(--cmm-icon-size, 22px);
	line-height: 1;
	vertical-align: -0.1em;
}

/* Nur für Screenreader sichtbar (z. B. Text bei „Icon only“) */
.cmm-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Warenkorb-Zähler (seit 2.5.0) */
.cmm-icon-wrap {
	position: relative;
	display: inline-block;
}

.cmm-cart-count {
	font-family: var(--cmm-font, 'Nunito', sans-serif);
	font-weight: 700;
	line-height: 1;
}

.cmm-cart-count.is-leer {
	display: none;
}

.cmm-cart-count--badge {
	position: absolute;
	top: -0.55em;
	right: -0.9em;
	min-width: 1.7em;
	padding: 0.25em 0.4em;
	border-radius: 999px;
	background: var(--cmm-cart-bg, #ffffff);
	color: var(--cmm-cart-text, #000000);
	font-size: 11px;
	text-align: center;
	box-sizing: border-box;
}

.cmm-cart-count--inline {
	margin-left: 0.35em;
	color: inherit;
	font-size: 0.8em;
	vertical-align: middle;
}
