/* ==========================================================================
   WhizComms Mobile Menu
   Adjust the variables below to match your brand exactly.
   ========================================================================== */

:root {
	--wcm-bg: #16234f;            /* main panel navy background */
	--wcm-category-bg: #2A3F7E;   /* lighter blue for category header rows */
	--wcm-text: #ffffff;
	--wcm-text-muted: #c7cde3;
	--wcm-badge-bg: #F5C518;      /* yellow NEW badge */
	--wcm-badge-text: #1b2a57;
	--wcm-border-radius: 18px;
	--wcm-row-height: 52px;       /* tap-friendly minimum */
	--wcm-panel-width: 300px;
	--wcm-transition: 280ms ease;
}

/* Toggle (hamburger) button ------------------------------------------------ */
.wcm-toggle {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 28px;
	height: 24px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0;
}
.wcm-toggle span {
	display: block;
	height: 2px;
	width: 100%;
	background: currentColor;
	border-radius: 2px;
}

/* Overlay -------------------------------------------------------------- */
.wcm-menu {
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
}
.wcm-menu.is-open {
	pointer-events: auto;
}
.wcm-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	opacity: 0;
	transition: opacity var(--wcm-transition);
}
.wcm-menu.is-open .wcm-overlay {
	opacity: 1;
}

/* Panels container: each panel is full-height, slides in from the left --- */
.wcm-panels {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: var(--wcm-panel-width);
	max-width: 85vw;
}

.wcm-panel {
	position: absolute;
	inset: 0;
	background: var(--wcm-bg);
	border-radius: 0 var(--wcm-border-radius) var(--wcm-border-radius) 0;
	transform: translateX(-100%);
	transition: transform var(--wcm-transition);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
}

/* Root panel shows by default once the menu is open; sub-panels slide over it */
.wcm-menu.is-open .wcm-panel-root {
	transform: translateX(0);
}
.wcm-panel.is-active {
	transform: translateX(0);
	z-index: 2;
}

/* Header row (brand + close, or back + close) --------------------------- */
.wcm-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	flex-shrink: 0;
}
.wcm-brand {
	color: var(--wcm-text);
	font-size: 18px;
	font-weight: 600;
}
.wcm-close {
	background: none;
	border: 0;
	color: var(--wcm-text);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
}
.wcm-back {
	background: none;
	border: 0;
	color: var(--wcm-text);
	font-size: 15px;
	font-weight: 400;
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	padding: 4px;
}
.wcm-back-arrow {
	font-size: 18px;
}

.wcm-panel-title {
	display: none; /* the back-button row already communicates context; enable if you want a repeated title */
}

/* Lists / rows ----------------------------------------------------------- */
.wcm-list {
	list-style: none;
	margin: 0;
	padding: 0 8px 24px;
}

.wcm-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: var(--wcm-row-height);
	padding: 12px 12px;
	color: var(--wcm-text);
	text-decoration: none;
	font-weight: 400; /* never bold, per spec */
	font-size: 15px;
	background: none;
	border: 0;
	text-align: left;
	cursor: pointer;
	border-radius: 8px;
}
.wcm-row:hover,
.wcm-row:focus-visible {
	background: rgba(255, 255, 255, 0.06);
	outline: none;
}
.wcm-row-sub {
	padding-left: 20px;
	font-size: 14px;
	color: var(--wcm-text-muted);
}

.wcm-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.wcm-chevron {
	font-size: 20px;
	color: var(--wcm-text-muted);
}

/* NEW badge ---------------------------------------------------------------- */
.wcm-badge {
	display: inline-block;
	background: var(--wcm-badge-bg);
	color: var(--wcm-badge-text);
	font-size: 11px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 999px;
	line-height: 1.4;
}

/* Category headers inside a drill-down panel ------------------------------- */
.wcm-category {
	margin: 6px 0;
}
.wcm-category-title {
	display: block;
	background: var(--wcm-category-bg);
	color: var(--wcm-text);
	font-weight: 700;
	font-size: 14px;
	padding: 12px 14px;
	border-radius: 8px;
	margin-bottom: 2px;
}
.wcm-category-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Small screens ------------------------------------------------------------ */
@media (max-width: 380px) {
	:root {
		--wcm-panel-width: 260px;
	}
}
