/* MKEO mobile drawer — scoped to Flatsome's native #main-menu overlay. */
@media (max-width: 849px) {
	.mfp-wrap.off-canvas:has(#main-menu) {
		--drawer-width: 100vw;
	}

	.mfp-wrap.off-canvas:has(#main-menu) .mfp-content {
		max-width: none;
		width: 100vw;
	}

	.mfp-wrap:has(#main-menu) .mfp-close {
		display: none;
	}

	#main-menu.mobile-sidebar {
		background: #101010;
		color: #fff;
		max-width: none;
		padding: 0;
		position: relative;
		width: 100%;
	}

	#main-menu .sidebar-menu {
		padding: 0 0 28px;
	}

	#main-menu .nav-sidebar {
		background: #101010;
		min-height: 100%;
		padding: 0;
	}

	#main-menu .nav-sidebar > li {
		border: 0;
	}

	#main-menu .nav-sidebar > .header-block {
		margin: 0;
		padding: 0;
	}

	#main-menu .header-block > div,
	#main-menu .header-block .block-html {
		width: 100%;
	}

	#main-menu .mkeo-mobile-drawer__intro {
		background: #111;
	}

	#main-menu .mkeo-mobile-drawer__top {
		align-items: center;
		border-bottom: 1px solid #282828;
		display: grid;
		grid-template-columns: 48px minmax(0, 1fr) auto;
		min-height: 78px;
		padding: 10px 15px;
	}

	#main-menu .mkeo-mobile-drawer__close {
		align-items: center;
		background: transparent;
		border: 0;
		box-shadow: none;
		color: #fff;
		display: inline-flex;
		height: 38px;
		justify-content: center;
		left: auto;
		margin: 0;
		opacity: 1;
		padding: 8px;
		position: static;
		right: auto;
		top: auto;
		width: 38px;
	}

	#main-menu .mkeo-mobile-drawer__close svg {
		fill: none;
		height: 22px;
		stroke: currentColor;
		stroke-linecap: round;
		stroke-width: 2;
		width: 22px;
	}

	#main-menu .mkeo-mobile-drawer__logo {
		align-items: center;
		display: flex;
		justify-content: center;
		min-width: 0;
	}

	#main-menu .mkeo-mobile-drawer__logo .ux-logo,
	#main-menu .mkeo-mobile-drawer__logo .ux-logo-link {
		margin: 0 auto;
	}

	#main-menu .mkeo-mobile-drawer__logo img {
		max-width: 155px;
		object-fit: contain;
	}

	#main-menu .mkeo-mobile-drawer__actions {
		display: flex;
		gap: 7px;
	}

	#main-menu .mkeo-mobile-drawer__action {
		align-items: center;
		background: transparent;
		border: 0;
		box-shadow: none;
		color: #fff;
		display: inline-flex;
		height: 40px;
		justify-content: center;
		margin: 0;
		padding: 6px;
		width: 40px;
	}

	#main-menu .mkeo-mobile-drawer__actions > button.mkeo-mobile-drawer__action {
		display: none;
	}

	#main-menu .mkeo-mobile-drawer__action:hover,
	#main-menu .mkeo-mobile-drawer__action:focus {
		color: var(--mkeo-green, #37d67a);
	}

	#main-menu .mkeo-mobile-drawer__action svg {
		fill: none;
		height: 28px;
		stroke: currentColor;
		stroke-linecap: round;
		stroke-linejoin: round;
		stroke-width: 1.8;
		width: 28px;
	}

	#main-menu .mkeo-mobile-drawer__account {
		background: linear-gradient(135deg, #082316, #00351f);
		border: 1px solid #075832;
		border-radius: 9px;
		margin: 14px;
		padding: 14px;
	}

	#main-menu .mkeo-mobile-drawer__account p {
		color: #cbd8d0;
		font-size: 14px;
		line-height: 1.25;
		margin: 0 0 14px;
		text-align: left;
	}

	#main-menu .mkeo-mobile-drawer__auth-buttons {
		display: grid;
		gap: 18px;
		grid-template-columns: repeat(2, minmax(0, 128px));
		justify-content: start;
	}

	#main-menu .mkeo-mobile-drawer__auth-buttons a {
		background: var(--mkeo-green, #2bd96b);
		border: 1px solid var(--mkeo-green, #2bd96b);
		border-radius: 4px;
		color: #07150d;
		font-size: 14px;
		font-weight: 700;
		line-height: 42px;
		min-height: 42px;
		padding: 0 8px;
		text-align: center;
		text-transform: uppercase;
	}

	#main-menu .mkeo-mobile-drawer__auth-buttons a:last-child {
		background: var(--mkeo-green, #2bd96b);
		color: #07150d;
	}

	#main-menu .mkeo-mobile-drawer__account--signed-in {
		align-items: center;
		display: grid;
		gap: 14px;
		grid-template-columns: 56px minmax(0, 1fr) auto;
		min-height: 92px;
		padding: 17px 16px;
	}

	#main-menu .mkeo-mobile-drawer__nav {
		margin: 0 14px 18px;
	}

	#main-menu .mkeo-mobile-drawer__links {
		background: #111;
		border: 1px solid #173529;
		border-radius: 9px;
		list-style: none;
		margin: 0;
		overflow: hidden;
		padding: 0 11px;
	}

	#main-menu .mkeo-mobile-drawer__link {
		border-bottom: 1px solid #202020;
		list-style: none;
		margin: 0;
		padding: 0;
	}

	#main-menu .mkeo-mobile-drawer__link:last-child {
		border-bottom: 0;
	}

	#main-menu .mkeo-mobile-drawer__link > a {
		align-items: center;
		color: #f3f3f3;
		display: flex;
		font-size: 17px;
		font-weight: 500;
		gap: 11px;
		letter-spacing: 0;
		line-height: 1.2;
		min-height: 62px;
		padding: 8px 0;
		text-transform: none;
	}

	#main-menu .mkeo-mobile-drawer__link > a:hover,
	#main-menu .mkeo-mobile-drawer__link > a:focus {
		color: #fff;
	}

	#main-menu .mkeo-mobile-drawer__link-icon {
		align-items: center;
		background: #272727;
		border-radius: 5px;
		color: #aaa;
		display: inline-flex;
		flex: 0 0 42px;
		height: 42px;
		justify-content: center;
	}

	#main-menu .mkeo-mobile-drawer__link-icon svg {
		fill: none;
		height: 27px;
		stroke: currentColor;
		stroke-linecap: round;
		stroke-linejoin: round;
		stroke-width: 1.9;
		width: 27px;
	}

	#main-menu .mkeo-mobile-drawer__link--bookmaker .mkeo-mobile-drawer__link-icon {
		background: #242015;
		color: #ffbc25;
	}

	#main-menu .mkeo-mobile-drawer__link--league .mkeo-mobile-drawer__link-icon {
		background: #13271d;
		color: #39e47e;
	}

	#main-menu .mkeo-mobile-drawer__link--tips .mkeo-mobile-drawer__link-icon {
		background: #2d1013;
		color: #ff2539;
	}

	#main-menu .mkeo-mobile-drawer__link--results .mkeo-mobile-drawer__link-icon {
		background: #102333;
		color: #29a9f4;
	}

	#main-menu .mkeo-mobile-drawer__arrow {
		fill: none;
		height: 28px;
		margin-left: auto;
		stroke: #08ee78;
		stroke-linecap: round;
		stroke-linejoin: round;
		stroke-width: 1.8;
		width: 28px;
	}

	#main-menu .mkeo-mobile-submenu[hidden] {
		display: none !important;
	}

	#main-menu .mkeo-mobile-submenu {
		background: #030405;
		bottom: 0;
		color: #fff;
		left: 0;
		min-height: 100%;
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
		position: absolute;
		right: 0;
		top: 0;
		z-index: 30;
	}

	#main-menu .mkeo-mobile-submenu__header {
		align-items: center;
		background: #141414;
		border-bottom: 1px solid #242424;
		display: grid;
		grid-template-columns: 48px minmax(0, 1fr) 48px;
		min-height: 78px;
		padding: 10px 15px;
		position: sticky;
		top: 0;
		z-index: 2;
	}

	#main-menu .mkeo-mobile-submenu__back {
		align-items: center;
		background: transparent;
		border: 0;
		box-shadow: none;
		color: #fff;
		display: inline-flex;
		height: 40px;
		justify-content: center;
		margin: 0;
		padding: 8px;
		width: 40px;
	}

	#main-menu .mkeo-mobile-submenu__back:hover,
	#main-menu .mkeo-mobile-submenu__back:focus {
		color: var(--mkeo-green, #00ed79);
	}

	#main-menu .mkeo-mobile-submenu__back svg {
		fill: none;
		height: 26px;
		stroke: currentColor;
		stroke-linecap: round;
		stroke-width: 1.8;
		width: 26px;
	}

	#main-menu .mkeo-mobile-submenu__header h2 {
		color: #f3f3f3;
		font-size: 20px;
		font-weight: 400;
		line-height: 1.2;
		margin: 0;
		text-align: center;
		text-transform: none;
	}

	#main-menu .mkeo-mobile-submenu__body {
		background: #030405;
		padding: 8px 12px 24px;
	}

	#main-menu .mkeo-mobile-bookmakers .mkeo-card--bookmakers {
		background: transparent;
		border: 0;
		border-radius: 0;
		margin: 0;
		padding: 0;
	}

	#main-menu .mkeo-mobile-bookmakers .mkeo-card__title {
		display: none;
	}

	#main-menu .mkeo-mobile-bookmakers .mkeo-list {
		margin: 0;
		padding: 0;
	}

	#main-menu .mkeo-mobile-bookmakers .mkeo-list li {
		border-bottom: 1px solid #1b1d1c;
		gap: 13px;
		min-height: 83px;
		padding: 8px 2px;
	}

	#main-menu .mkeo-mobile-bookmakers .mkeo-list__icon {
		background: #122a20;
		border-radius: 3px;
		color: #e5e8e6;
		flex: 0 0 43px;
		font-size: 18px;
		height: 43px;
		width: 43px;
	}

	#main-menu .mkeo-mobile-bookmakers .mkeo-list__icon--rank-1,
	#main-menu .mkeo-mobile-bookmakers .mkeo-list__icon--rank-2,
	#main-menu .mkeo-mobile-bookmakers .mkeo-list__icon--rank-3,
	#main-menu .mkeo-mobile-bookmakers .mkeo-list > li:nth-child(1) .mkeo-list__icon,
	#main-menu .mkeo-mobile-bookmakers .mkeo-list > li:nth-child(2) .mkeo-list__icon,
	#main-menu .mkeo-mobile-bookmakers .mkeo-list > li:nth-child(3) .mkeo-list__icon {
		background-color: transparent;
		flex-basis: 55px;
		height: 55px;
		width: 55px;
	}

	#main-menu .mkeo-mobile-bookmakers .mkeo-list__label {
		color: #f5f5f5;
		font-size: 19px;
		line-height: 1.15;
	}

	#main-menu .mkeo-mobile-bookmakers .mkeo-bookmaker-item__description {
		color: #777;
		font-size: 14px;
		line-height: 1.2;
		margin-top: 7px;
	}

	#main-menu .mkeo-mobile-bookmakers .mkeo-list__meta {
		background: #030405;
		border: 1px solid var(--mkeo-green, #00ed79);
		border-radius: 4px;
		color: var(--mkeo-green, #00ed79);
		font-size: 14px;
		font-weight: 500;
		line-height: 1;
		padding: 11px 9px;
	}

	#main-menu.mkeo-mobile-submenu-open .sidebar-menu {
		height: 100%;
		overflow: hidden;
	}

	#main-menu.mkeo-mobile-submenu-open {
		height: 100%;
		overflow: hidden !important;
	}

	#main-menu.mkeo-mobile-submenu-open .nav-sidebar {
		height: 100%;
		overflow: hidden;
	}

	#main-menu.mkeo-mobile-submenu-open .nav-sidebar > li:not(.mkeo-mobile-submenu-host) {
		display: none !important;
	}

	#main-menu.mkeo-mobile-submenu-open .mkeo-mobile-submenu-host,
	#main-menu.mkeo-mobile-submenu-open .header-block-block-1 {
		height: 100%;
		margin: 0;
		min-height: 100%;
		padding: 0;
	}

	#main-menu.mkeo-mobile-submenu-open .header-block-block-1 > :not(.mkeo-mobile-submenu) {
		display: none !important;
	}

	#main-menu.mkeo-mobile-submenu-open .mkeo-mobile-submenu:not([hidden]) {
		height: 100%;
		max-height: 100%;
		min-height: 100%;
	}

	#main-menu .mkeo-mobile-competitions .mkeo-card {
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		margin: 0;
		padding: 0;
	}

	#main-menu .mkeo-mobile-competitions .mkeo-card__title {
		display: none;
	}

	#main-menu .mkeo-mobile-competitions .mkeo-sport-widget__body {
		background: transparent;
		padding: 0;
	}

	#main-menu .mkeo-mobile-drawer__account--signed-in .mkeo-mobile-account__avatar {
		border: 2px solid #40db78;
		border-radius: 6px;
		flex: 0 0 56px;
		font-size: 22px;
	}

	#main-menu .mkeo-mobile-drawer__profile {
		display: flex;
		flex-direction: column;
		justify-content: center;
		line-height: 1.25;
		min-height: 56px;
		min-width: 0;
	}

	#main-menu .mkeo-mobile-drawer__profile small {
		color: #b9c7be;
		font-size: 13px;
		margin-bottom: 4px;
	}

	#main-menu .mkeo-mobile-drawer__profile strong {
		color: #fff;
		font-size: 17px;
		font-weight: 700;
		overflow: hidden;
		text-transform: uppercase;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	#main-menu .mkeo-mobile-drawer__logout {
		color: #57e389;
		font-size: 12px;
		font-weight: 700;
		white-space: nowrap;
		text-transform: uppercase;
	}

	#main-menu .nav-sidebar > .menu-item {
		background: #151515;
		border-bottom: 1px solid #292929;
		margin: 0;
	}

	#main-menu .nav-sidebar > .menu-item > a {
		align-items: center;
		color: #e9e9e9;
		display: flex;
		font-size: 13px;
		font-weight: 600;
		gap: 11px;
		letter-spacing: 0;
		line-height: 1.25;
		min-height: 48px;
		padding: 7px 18px 7px 14px;
		text-transform: none;
	}

	#main-menu .nav-sidebar > .menu-item > a::before {
		align-items: center;
		background: #26352c;
		border-radius: 5px;
		color: #52e185;
		content: "◆";
		display: inline-flex;
		flex: 0 0 30px;
		font-size: 14px;
		height: 30px;
		justify-content: center;
	}

	#main-menu .nav-sidebar > .menu-item:nth-of-type(2) > a::before { content: "⚽"; }
	#main-menu .nav-sidebar > .menu-item:nth-of-type(3) > a::before { content: "▤"; }
	#main-menu .nav-sidebar > .menu-item:nth-of-type(4) > a::before { content: "⌕"; }
	#main-menu .nav-sidebar > .menu-item:nth-of-type(5) > a::before { content: "▣"; }
	#main-menu .nav-sidebar > .menu-item:nth-of-type(6) > a::before { content: "✓"; }
	#main-menu .nav-sidebar > .menu-item:nth-of-type(7) > a::before { content: "♛"; }
	#main-menu .nav-sidebar > .menu-item:nth-of-type(8) > a::before { content: "◆"; }
	#main-menu .nav-sidebar > .menu-item:nth-of-type(9) > a::before { content: "★"; }

	#main-menu .nav-sidebar > .menu-item > a::after {
		border-right: 2px solid #42db76;
		border-top: 2px solid #42db76;
		content: "";
		height: 7px;
		margin-left: auto;
		transform: rotate(45deg);
		width: 7px;
	}

	#main-menu .nav-sidebar > .menu-item.current-menu-item > a,
	#main-menu .nav-sidebar > .menu-item > a:hover,
	#main-menu .nav-sidebar > .menu-item > a:focus {
		background: #1d1d1d;
		color: var(--mkeo-green, #38dc77);
	}

	#main-menu .header-block-block-2 {
		background: #101010;
		padding: 0 14px 22px;
	}

	#main-menu .header-block-block-2 .mkeo-card {
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		margin: 0 0 18px;
		padding: 0;
	}

	#main-menu .header-block-block-2 .mkeo-card__title {
		background: transparent;
		border: 0;
		color: #fff;
		font-size: 17px;
		font-weight: 700;
		letter-spacing: .02em;
		margin: 0;
		padding: 0 0 14px;
	}

	#main-menu .header-block-block-2 .mkeo-card__title::after {
		display: none;
	}

	#main-menu .header-block-block-2 .mkeo-sport-widget__body {
		background: transparent;
		padding: 0;
	}

	#main-menu .mkeo-sidebar-list__item {
		background: linear-gradient(90deg, #1F1F1F 0%, rgba(17, 17, 17, 0) 100%);
		border: 0;
		border-radius: 4px;
		margin-bottom: 4px;
		min-height: 43px;
		padding: 8px 10px;
	}

	#main-menu .mkeo-competition-list__identity {
		padding-left: 5px;
	}

	#main-menu .mkeo-competition-list__logo,
	#main-menu .mkeo-competition-list__fallback {
		flex: 0 0 40px;
		height: 40px;
		object-fit: contain;
		width: 40px;
	}

	#main-menu .mkeo-competition-list__name {
		color: #d7d7e3;
		font-size: 16px;
	}

	#main-menu .mkeo-competition-list__favorite {
		color: #9a9aa1;
		flex-basis: 34px;
	}

	#main-menu .mkeo-competition-list__favorite:hover,
	#main-menu .mkeo-competition-list__favorite:focus,
	#main-menu .mkeo-competition-list__favorite.is-active {
		color: #f4e45b;
	}

	#main-menu .mkeo-competition-list__favorite::before {
		height: 24px;
		-webkit-mask-size: 24px 24px;
		mask-size: 24px 24px;
		width: 24px;
	}

	#main-menu .mkeo-competition-list__all {
		display: none;
	}

	#main-menu .mkeo-country-list {
		column-gap: 22px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 6px;
	}

	#main-menu .mkeo-country-list__item.is-active,
	#main-menu .mkeo-country-list__item:hover,
	#main-menu .mkeo-country-list__item:focus-within {
		background-color: #121212;
		background-image: linear-gradient(90deg, rgb(22, 66, 15) 0%, rgba(22, 66, 15, 0) 100%);
	}

	#main-menu .mkeo-country-list__item.is-active .mkeo-country-list__name,
	#main-menu .mkeo-country-list__item:hover .mkeo-country-list__name,
	#main-menu .mkeo-country-list__item:focus-within .mkeo-country-list__name {
		color: #d2d2d2;
	}

	#main-menu .mkeo-country-list__identity {
		gap: 9px;
		padding-left: 5px;
	}

	#main-menu .mkeo-country-list__flag,
	#main-menu .mkeo-country-list__fallback {
		flex-basis: 36px;
		height: 36px;
		width: 36px;
	}

	#main-menu .mkeo-country-list__name {
		color: #e2d58c;
		font-size: 15px;
	}

	#main-menu .mkeo-country-list__favorite {
		display: none;
	}

	#main-menu .mkeo-sport-widget--countries {
		border-top: 1px solid #272727;
		padding-top: 18px;
	}
}

/* The drawer itself is mobile-only; keep UX Builder previews readable. */
.ux-builder-iframe #main-menu .mkeo-mobile-drawer__intro {
	display: block;
}
