.mb-topbar {
	background: var(--mb-blue-deep);
	color: var(--mb-white);
	height: 46px;
	display: flex;
	align-items: center;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.mb-topbar__text {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mb-header {
	background: var(--mb-white);
	padding: 8px 0 12px;
}

.mb-header__row {
	display: flex;
	align-items: center;
	gap: 24px;
}

.mb-logo {
	flex: 0 0 auto;
	display: block;
	line-height: 0;
}

.mb-logo img {
	display: block;
	max-height: 113px;
	width: auto;
	max-width: 329px;
	height: auto;
	object-fit: contain;
}

.mb-search {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
}

.mb-search__form {
	position: relative;
	margin: 0;
}

.mb-search__bar {
	display: flex;
	align-items: stretch;
	height: 48px;
	border: 1px solid var(--mb-border);
	border-radius: var(--mb-radius-control);
	overflow: hidden;
	background: #f3f3f3;
}

.mb-search__form .live-search-results {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 4px);
	z-index: 40;
	width: auto;
	height: auto;
	background: #fff;
}

.mb-search__form .search-field {
	flex: 1 1 auto;
	border: 0;
	background: #f7f7f7;
	box-shadow: none;
	height: 48px;
	margin: 0;
	padding: 0 16px;
	font-size: 15px;
	min-width: 0;
}

.mb-search__form .search-field:focus {
	outline: none;
}

.mb-search__submit {
	flex: 0 0 130px;
	border: 0;
	background: #4a4a4a;
	color: var(--mb-white);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	border-radius: 0;
	margin: 0;
	height: 48px;
	line-height: 48px;
	padding: 0;
}

.mb-search__submit:hover {
	background: #333;
	color: var(--mb-white);
}

.mb-hotline {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: var(--mb-text);
	min-width: 176px;
}

.mb-hotline img {
	width: 50px;
	height: 50px;
	object-fit: contain;
	display: block;
}

.mb-hotline__meta {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.mb-hotline__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--mb-text);
}

.mb-hotline__num {
	font-size: 14px;
	font-weight: 600;
	color: var(--mb-blue);
}

.mb-nav-wrap {
	padding: 0 0 12px;
	overflow: visible;
	position: relative;
	z-index: 30;
}

.mb-nav {
	max-width: 1246px;
	margin: 0 auto;
	background: var(--mb-blue-nav);
	border-radius: 28px;
	min-height: 54px;
	display: flex;
	align-items: center;
	padding: 0 12px 0 8px;
	color: var(--mb-white);
	overflow: visible;
}

.mb-nav__list {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1 1 auto;
	gap: 4px;
}

.mb-nav__list > li {
	position: relative;
	margin: 0;
}

.mb-nav__list > li > a,
.mb-nav .nav-top-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--mb-white);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 16px 14px;
	text-decoration: none;
	white-space: nowrap;
}

.mb-nav__list > li > a:hover,
.mb-nav__list > li.current-menu-item > a,
.mb-nav__list > li.active > a {
	opacity: 0.9;
}

.mb-nav .nav-top-link .icon-angle-down {
	font-size: 12px;
	opacity: 0.85;
}

.mb-nav .nav-dropdown {
	background: var(--mb-white);
	color: var(--mb-text);
	border-radius: var(--mb-radius-control);
	padding: 12px 8px;
	text-align: left;
	z-index: 50;
}

.mb-nav .nav-dropdown .ux-menu-link__link {
	color: var(--mb-text);
	font-size: 13px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	padding: 6px 10px;
	text-decoration: none;
}

.mb-nav .nav-dropdown .ux-menu-link__link:hover {
	color: var(--mb-blue);
	background: #f4f8fb;
}

.mb-nav__cart {
	position: relative;
	margin-left: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	min-height: 44px;
	flex-shrink: 0;
	color: var(--mb-white);
	text-decoration: none;
	padding: 8px 14px 8px 8px;
	border-radius: 50%;
	font-weight: 700;
	gap: 6px;
}

.mb-nav__cart:hover,
.mb-nav__cart:focus-visible {
	color: var(--mb-white);
	background: rgba(255, 255, 255, .1);
}

.mb-nav__cart:focus-visible {
	outline: 2px solid var(--mb-white);
	outline-offset: 2px;
}

.mb-nav__cart-icon {
	display: block;
	flex: 0 0 auto;
}

.mb-nav__cart-count {
	position: absolute;
	top: 1px;
	right: 1px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--mb-white);
	color: var(--mb-blue-deep);
	font-size: 10px;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.mb-burger {
	display: none;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	padding: 10px;
	cursor: pointer;
}

.mb-burger span {
	display: block;
	height: 2px;
	background: var(--mb-blue-deep);
	margin: 6px 0;
	border-radius: 1px;
}

/* The mobile menu stays independent of the desktop mega menu. */
.mb-drawer {
	display: none;
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--mb-text);
	overflow: hidden;
}

.mb-drawer[open] { display: block; }
.mb-drawer::backdrop { background: transparent; }
.mb-drawer__backdrop { position: absolute; inset: 0; background: rgba(6, 30, 50, .48); }

.mb-drawer__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(calc(100% - 24px), 390px);
	height: 100%;
	height: 100dvh;
	background: var(--mb-surface);
	border-radius: 0 20px 20px 0;
	box-shadow: 12px 0 40px rgba(6, 30, 50, .14);
	overflow: hidden;
	animation: mb-drawer-enter .2s ease-out;
}

.mb-drawer__head { flex: 0 0 auto; padding: max(16px, env(safe-area-inset-top)) 20px 20px; border-bottom: 1px solid var(--mb-divider); }
.mb-drawer__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.mb-drawer__logo { color: var(--mb-blue-deep); font-size: 20px; font-weight: 700; }
.mb-drawer__logo img { display: block; width: 145px; height: 48px; object-fit: contain; }
.mb-drawer .mb-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	min-width: 0;
	height: 40px;
	min-height: 40px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--mb-border);
	border-radius: var(--mb-radius-control);
	background: var(--mb-surface-subtle);
	color: var(--mb-heading);
	font-size: 26px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
}
.mb-drawer .mb-search { width: 100%; }
.mb-drawer .mb-search__bar { height: 44px; }
.mb-drawer .mb-search__form .search-field { height: 44px; padding: 0 12px; font-size: 16px; }
.mb-drawer .mb-search__submit { flex-basis: 64px; min-width: 64px; height: 44px; line-height: 44px; }
.mb-drawer__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 16px; scrollbar-width: thin; scrollbar-color: var(--mb-border) transparent; }
.mb-drawer .mb-drawer__label { margin: 0 12px 12px; color: var(--mb-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.mb-drawer .mb-nav__list { display: flex; flex-direction: column; align-items: stretch; width: 100%; gap: 4px; margin: 0; padding: 0; }
.mb-drawer .mb-nav__list > li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 44px;
	align-items: center;
	width: 100%;
	margin: 0 !important;
	border-radius: var(--mb-radius-control);
}
.mb-drawer .mb-nav__list > li > a {
	display: flex;
	align-items: center;
	grid-column: 1 / -1;
	min-height: 52px;
	padding: 12px;
	border: 0;
	border-radius: var(--mb-radius-control);
	color: var(--mb-heading);
	font-family: var(--mb-font);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0;
	text-transform: none;
	white-space: normal;
}
.mb-drawer .mb-nav__list > .mb-drawer__group > a { grid-column: 1; }
.mb-drawer .mb-nav__list > li > a > .icon-angle-down { display: none; }
.mb-drawer .mb-nav__list > :is(.current-menu-item, .is-expanded) { background: var(--mb-surface-soft); }
.mb-drawer .mb-nav__list > :is(.current-menu-item, .is-expanded) > a { color: var(--mb-blue); font-weight: 600; }
.mb-drawer .mb-nav__list > li > a:hover { background: var(--mb-surface-soft); color: var(--mb-blue); }
.mb-drawer .mb-drawer__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	min-width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--mb-radius-control);
	background: var(--mb-surface-subtle);
	color: var(--mb-blue);
	box-shadow: none;
}
.mb-drawer__toggle::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-1px, -1px); transition: transform .15s ease; }
.mb-drawer__toggle[aria-expanded="true"]::after { transform: rotate(225deg) translate(-1px, -1px); }
.mb-drawer .nav-dropdown {
	position: static !important;
	grid-column: 1 / -1;
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
	width: 100% !important;
	min-width: 0;
	min-height: 0 !important;
	max-height: none;
	margin: 0;
	padding: 4px 8px 12px;
	border: 0;
	border-radius: 0 0 var(--mb-radius-control) var(--mb-radius-control);
	box-shadow: none;
	background: transparent;
}
.mb-drawer .mb-drawer__submenu[hidden] { display: none !important; }
.mb-drawer .nav-dropdown::before,
.mb-drawer .nav-dropdown::after { display: none; }
.mb-drawer .nav-dropdown .row { width: 100%; max-width: none; margin: 0; flex-direction: column; }
.mb-drawer .nav-dropdown .col { flex-basis: 100%; max-width: 100%; padding: 0; }
.mb-drawer .nav-dropdown :is(.col-inner, .ux-menu) { width: 100%; margin: 0; }
.mb-drawer .nav-dropdown .ux-menu-link { min-height: 0; margin: 0; }
.mb-drawer .nav-dropdown .ux-menu-link__link,
.mb-drawer .nav-dropdown > li > a {
	display: flex;
	align-items: center;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 0;
	border-radius: 6px;
	color: var(--mb-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	text-transform: none;
	letter-spacing: 0;
	white-space: normal;
}
.mb-drawer .nav-dropdown a:hover { background: var(--mb-surface); color: var(--mb-blue); }
.mb-drawer__footer { flex: 0 0 auto; padding: 16px 20px max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--mb-border); background: var(--mb-surface-subtle); }
.mb-drawer__cart { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 14px; border-radius: var(--mb-radius-control); background: var(--mb-blue); color: var(--mb-white); font-size: 14px; font-weight: 600; }
.mb-drawer__cart:hover { color: var(--mb-white); background: var(--mb-blue-hover); }
.mb-drawer__cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; margin-left: auto; padding: 0 6px; border-radius: 6px; background: rgba(255, 255, 255, .18); font-size: 12px; }
.mb-drawer__support { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; color: var(--mb-blue-deep); }
.mb-drawer__support img { width: 36px; height: 36px; object-fit: contain; }
.mb-drawer__support-label { display: block; color: var(--mb-muted); font-size: 12px; line-height: 1.5; }
.mb-drawer__support strong { display: block; font-size: 18px; line-height: 1.4; }
.mb-drawer :is(a, button, input):focus-visible { outline: 2px solid var(--mb-blue); outline-offset: 2px; }
@keyframes mb-drawer-enter { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .mb-drawer__panel { animation: none; } .mb-drawer__toggle::after { transition: none; } }

.mb-footer {
	background: var(--mb-footer-bg);
	padding: 36px 0 16px;
	color: var(--mb-text);
	font-size: 14px;
}

.mb-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 255px;
	gap: 28px;
}

.mb-footer h3,
.mb-footer__title {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 12px;
	text-transform: uppercase;
	color: var(--mb-blue-deep);
}

.mb-footer p {
	margin: 0 0 8px;
	line-height: 1.5;
}

.mb-footer__logo img {
	max-width: 220px;
	height: auto;
	margin-bottom: 12px;
}

.mb-footer__social {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 10px 0;
}

.mb-footer__social a {
	color: var(--mb-blue);
	font-weight: 600;
	text-decoration: none;
	line-height: 0;
}

.mb-footer__social-link img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	display: block;
}

.mb-footer__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-top: 8px;
}

.mb-footer__badges img {
	max-height: 42px;
	width: auto;
	display: block;
}

.mb-footer a {
	color: inherit;
}

.mb-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mb-footer__menu a {
	color: var(--mb-text);
	text-decoration: none;
	display: block;
	padding: 4px 0;
}

.mb-footer__menu a:hover {
	color: var(--mb-blue);
}

.mb-footer__map iframe {
	width: 255px;
	height: 255px;
	border: 0;
	max-width: 100%;
}

.mb-footer__blurb {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid rgba(11, 108, 179, 0.15);
	font-size: 13px;
	color: var(--mb-muted);
}

.mb-crumb {
	font-size: 13px;
	padding: 12px 0;
	color: var(--mb-muted);
}

.mb-crumb a {
	color: var(--mb-muted);
	text-decoration: none;
}

.mb-crumb .separator {
	margin: 0 6px;
}

@media (max-width: 849px) {
	.mb-topbar {
		display: none;
	}

	.mb-header__row {
		flex-wrap: wrap;
		gap: 10px;
	}

	.mb-burger {
		display: block;
	}

	.mb-logo img {
		max-height: 48px;
		max-width: 180px;
	}

	.mb-hotline {
		display: none;
	}

	.mb-search {
		order: 3;
		flex: 1 1 100%;
	}

	.mb-nav-wrap .mb-nav {
		display: none;
	}

	.mb-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.mb-footer__map iframe {
		width: 100%;
		height: 200px;
	}
}

@media (max-width: 549px) {
	.mb-footer__grid {
		grid-template-columns: 1fr;
	}
}

/* Compact header; the header scrolls with page content. */
.mb-theme #header, .mb-theme #header .header-wrapper { position: relative !important; top: auto !important; transform: none !important; }
.mb-theme #header { height: auto !important; }
.mb-theme .mb-topbar { height: 23px; font-size: 13px; }
.mb-theme .mb-header { padding: 6px 0 8px; }
.mb-theme .mb-logo img { max-height: 80px; max-width: 250px; }
.mb-theme .mb-hotline img { width: 40px; height: 40px; }
.mb-theme .mb-hotline__meta { gap: 2px; }
@media (max-width: 849px) {
    .mb-theme .mb-logo img { max-height: 40px; max-width: 160px; }
    .mb-theme .mb-search__bar, .mb-theme .mb-search__form .search-field, .mb-theme .mb-search__submit { height: 40px; line-height: 40px; }
}
