/* WoW Hub Mobile Menu. Every property BeTheme also sets on a, ul, input and button is pinned here. */

html.whmm-ready .mfn-header-tmpl-menu-sidebar {
	display: none !important;
}

html.whmm-lock,
html.whmm-lock body {
	overflow: hidden !important;
}

/* Menu open (after the slide-in): iOS 26 Safari leaves the strip under its floating toolbar to the page, not to
   fixed boxes — so the page is hidden and the root takes the panel colour. */
html.whmm-cover,
html.whmm-cover body {
	background: #0f1218 !important;
}

html.whmm-cover body > *:not(.whmm) {
	visibility: hidden !important;
	opacity: 0 !important; /* children with their own visibility: visible (e.g. WooCommerce .required) stay hidden too */
}

.whmm {
	--whmm-bg: #0f1218;
	--whmm-card: #141922;
	--whmm-card-2: #181e29;
	--whmm-line: rgba(255, 255, 255, .07);
	--whmm-text: #e9ecf3;
	--whmm-muted: #8c95a8;
	--whmm-gold: #f5c33b;
	--whmm-gold-soft: rgba(245, 195, 59, .12);
	/* Full screen height, not inset: 0 — iOS 26 Safari ends a bottom: 0 box above its floating toolbar, and the page
	   would show through below the menu. 100lvh reaches under the toolbar; .whmm-body pads the hidden strip. */
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	height: 100vh;
	height: 100lvh;
	z-index: 100000;
	font-family: inherit;
	-webkit-tap-highlight-color: transparent;
}

.whmm[hidden] {
	display: none !important;
}

.whmm *,
.whmm *::before,
.whmm *::after {
	box-sizing: border-box;
}

.whmm-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 6, 10, .62);
	opacity: 0;
	transition: opacity .26s ease;
}

.whmm-panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 420px;
	background:
		radial-gradient(120% 60% at 100% 0, rgba(245, 195, 59, .07), transparent 60%),
		var(--whmm-bg);
	border-left: 1px solid rgba(245, 195, 59, .14);
	box-shadow: -24px 0 60px rgba(0, 0, 0, .45);
	color: var(--whmm-text);
	transform: translateX(100%);
	transition: transform .26s cubic-bezier(.2, .8, .2, 1);
}

.whmm.is-open .whmm-backdrop {
	opacity: 1;
}

.whmm.is-open .whmm-panel {
	transform: none;
}

.whmm-ico {
	flex: none;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Top bar */

.whmm-top {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	height: 60px;
	padding: 0 10px 0 16px;
	border-bottom: 1px solid var(--whmm-line);
}

.whmm .whmm-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--whmm-text);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: .01em;
	text-decoration: none;
}

.whmm-brand img {
	display: block;
	width: 34px;
	height: 34px;
	margin: 0;
	border-radius: 8px;
}

.whmm-brand b {
	color: var(--whmm-gold);
	font-weight: 700;
}

.whmm .whmm-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--whmm-line);
	border-radius: 12px;
	background: rgba(255, 255, 255, .04);
	box-shadow: none;
	color: var(--whmm-text);
	cursor: pointer;
}

.whmm-close .whmm-ico {
	width: 22px;
	height: 22px;
}

/* Scrolling body */

.whmm-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 16px 16px calc(28px + env(safe-area-inset-bottom, 0px));
}

/* The part of the 100lvh panel that sits under browser toolbars (0 when they are hidden or overlay nothing). */
@supports (height: 100dvh) {
	.whmm-body {
		padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px) + 100lvh - 100dvh);
	}
}

.whmm-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.whmm-actions.is-single {
	grid-template-columns: 1fr;
}

.whmm .whmm-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 0;
	min-height: 48px;
	padding: 0 10px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}

.whmm .whmm-btn--gold {
	background: linear-gradient(180deg, #f9d260, #f5c33b 55%, #e5ae22);
	box-shadow: 0 8px 20px -10px rgba(245, 195, 59, .7);
	color: #1b1405;
}

.whmm .whmm-btn--ghost {
	border: 1px solid rgba(245, 195, 59, .45);
	background: rgba(245, 195, 59, .06);
	color: var(--whmm-gold);
}

.whmm-search {
	position: relative;
	margin: 12px 0 0;
}

.whmm-search .whmm-ico {
	position: absolute;
	top: 50%;
	left: 14px;
	color: var(--whmm-muted);
	transform: translateY(-50%);
	pointer-events: none;
}

.whmm .whmm-search input {
	display: block;
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 14px 0 44px;
	border: 1px solid var(--whmm-line);
	border-radius: 12px;
	background: var(--whmm-card);
	box-shadow: none;
	color: var(--whmm-text);
	font: inherit;
	font-size: 16px; /* 16px keeps iOS from zooming on focus */
	line-height: 46px;
	-webkit-appearance: none;
	appearance: none;
}

.whmm .whmm-search input::placeholder {
	color: var(--whmm-muted);
	opacity: 1;
}

.whmm .whmm-search input:focus {
	border-color: rgba(245, 195, 59, .6);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(245, 195, 59, .16);
}

/* Sections */

.whmm-sec {
	margin: 22px 0 0;
}

.whmm-h {
	margin: 0 0 8px 4px;
	color: var(--whmm-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .09em;
	line-height: 1.3;
	text-transform: uppercase;
}

.whmm-games {
	display: grid;
	grid-template-columns: repeat(var(--whmm-cols, 3), minmax(0, 1fr));
	gap: 6px;
}

.whmm .whmm-game {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 0;
	min-height: 46px;
	padding: 0 6px;
	border: 1px solid var(--whmm-line);
	border-radius: 12px;
	background: var(--whmm-card);
	color: var(--whmm-text);
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.whmm-game i {
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--whmm-gold);
	box-shadow: 0 0 8px currentColor;
}

.whmm-game--retail i { background: #f5c33b; color: rgba(245, 195, 59, .6); }
.whmm-game--forever i { background: #6cc4ff; color: rgba(108, 196, 255, .6); }
.whmm-game--classic i { background: #e39b4f; color: rgba(227, 155, 79, .6); }

.whmm .whmm-list {
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--whmm-line);
	border-radius: 14px;
	background: var(--whmm-card);
	list-style: none;
}

.whmm .whmm-list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.whmm .whmm-list li + li {
	border-top: 1px solid var(--whmm-line);
}

.whmm .whmm-list li[hidden] {
	display: none;
}

.whmm .whmm-link {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--whmm-text);
	font: inherit;
	font-size: 15.5px;
	font-weight: 500;
	line-height: 1.25;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.whmm-link .whmm-ico {
	color: var(--whmm-muted);
}

.whmm-link span {
	min-width: 0;
	padding: 12px 0;
}

.whmm .whmm-more {
	justify-content: space-between;
	color: var(--whmm-gold);
	font-size: 14.5px;
	font-weight: 600;
}

.whmm .whmm-more .whmm-ico {
	color: var(--whmm-gold);
	transition: transform .2s ease;
}

.whmm-more[aria-expanded="true"] .whmm-ico {
	transform: rotate(180deg);
}

.whmm-foot {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 22px 0 0;
}

.whmm .whmm-chip {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 10px;
	border: 1px solid var(--whmm-line);
	border-radius: 12px;
	background: var(--whmm-card);
	color: var(--whmm-text);
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
}

.whmm-chip .whmm-ico {
	color: var(--whmm-gold);
}

/* States */

.whmm .whmm-link[aria-current="page"],
.whmm .whmm-chip[aria-current="page"] {
	background: var(--whmm-gold-soft);
	color: var(--whmm-gold);
}

.whmm .whmm-link[aria-current="page"] {
	box-shadow: inset 3px 0 0 var(--whmm-gold);
}

.whmm .whmm-link[aria-current="page"] .whmm-ico {
	color: var(--whmm-gold);
}

.whmm .whmm-game[aria-current="page"] {
	border-color: rgba(245, 195, 59, .55);
	background: var(--whmm-gold-soft);
	color: var(--whmm-gold);
}

/* BeTheme paints button:hover/:focus with its button colour (and phones keep :hover after a tap). */
.whmm .whmm-close:hover,
.whmm .whmm-close:focus,
.whmm .whmm-close:active {
	background: rgba(255, 255, 255, .04);
	box-shadow: none;
	color: var(--whmm-text);
}

.whmm .whmm-more:hover,
.whmm .whmm-more:focus,
.whmm .whmm-more:active {
	background: transparent;
	box-shadow: none;
	color: var(--whmm-gold);
}

.whmm a:focus-visible,
.whmm button:focus-visible {
	outline: 2px solid var(--whmm-gold);
	outline-offset: -2px;
}

@media (hover: hover) {
	.whmm .whmm-link:hover,
	.whmm .whmm-game:hover,
	.whmm .whmm-chip:hover,
	.whmm .whmm-close:hover {
		background: var(--whmm-card-2);
		color: var(--whmm-text);
	}
	.whmm .whmm-btn--gold:hover {
		filter: brightness(1.06);
		color: #1b1405;
	}
	.whmm .whmm-btn--ghost:hover {
		background: rgba(245, 195, 59, .12);
		color: var(--whmm-gold);
	}
}

.whmm .whmm-link:active,
.whmm .whmm-game:active,
.whmm .whmm-chip:active {
	background: var(--whmm-card-2);
}

/* Narrow phones: the two action buttons do not fit side by side. */
@media (max-width: 359px) {
	.whmm-actions {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.whmm-backdrop,
	.whmm-panel,
	.whmm-more .whmm-ico {
		transition: none;
	}
}
