/* Keep the footer's original flags; use the dropdown only inside the header. */
.ef-header-language-switcher { display: contents; }
.ef-header-language-switcher > .ef-header-languages { display: none; }

body .wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--ef-header-top, 0px);
	z-index: 1000;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #e5e5e5;
	background: #fff;
	box-shadow: none;
}
body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--ef-header-top, 32px); }
body .wp-site-blocks > header.wp-block-template-part .is-position-sticky {
	position: static !important;
	top: auto;
	background: #fff !important;
}
body .wp-site-blocks > header.wp-block-template-part .wp-block-group.alignfull:has(> .wp-block-group > nav.wp-block-navigation) {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0 !important;
	padding: 14px var(--wp--style--root--padding-right, 24px) 14px var(--wp--style--root--padding-left, 24px) !important;
	background: #fff;
}
body .wp-site-blocks > header.wp-block-template-part .wp-block-group:has(> nav.wp-block-navigation) {
	box-sizing: border-box;
	display: grid !important;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(16px, 2vw, 32px) !important;
	width: 100%;
	min-height: 48px;
	max-width: 1280px;
	margin: 0 auto !important;
	padding: 0;
}
body .wp-site-blocks > header.wp-block-template-part .wp-block-group:has(> nav.wp-block-navigation) > * {
	grid-row: 1 !important;
	min-width: 0;
	order: 0;
}
body .wp-site-blocks > header.wp-block-template-part .wp-block-group:has(> .wp-block-site-logo) {
	grid-column: 1 !important;
	display: block;
	min-width: 0;
	margin: 0;
	padding: 0;
}
body .wp-site-blocks > header.wp-block-template-part .wp-block-site-logo { min-width: 0; margin: 0; }
body .wp-site-blocks > header.wp-block-template-part .wp-block-site-logo a {
	display: flex;
	align-items: center;
	width: fit-content;
	max-width: 100%;
	min-height: 44px;
}
body .wp-site-blocks > header.wp-block-template-part .wp-block-site-logo img {
	display: block;
	width: clamp(180px, 16vw, 216px) !important;
	max-width: 100%;
	height: auto !important;
	max-height: 34px;
	object-fit: contain;
	object-position: left center;
}
body .wp-site-blocks > header.wp-block-template-part nav.wp-block-navigation {
	grid-column: 2 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 0;
	margin: 0 !important;
}
body .wp-site-blocks > header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open { background: #fff; }
body .wp-site-blocks > header.wp-block-template-part .wp-block-group:has(> .wc-block-mini-cart) {
	grid-column: 3 !important;
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center;
	justify-content: flex-end;
	gap: 8px !important;
	min-width: 0;
	margin: 0;
	padding: 0;
}
body .wp-site-blocks > header.wp-block-template-part .wp-block-woocommerce-customer-account { flex: 0 0 44px; width: 44px; margin: 0; }
body .wp-site-blocks > header.wp-block-template-part .wc-block-mini-cart { flex: 0 0 auto; margin: 0; }
body .wp-site-blocks > header.wp-block-template-part .wc-block-customer-account__link,
body .wp-site-blocks > header.wp-block-template-part .wc-block-mini-cart__button {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	gap: 8px;
	margin: 0;
	padding: 0 8px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #111;
	text-decoration: none;
}
body .wp-site-blocks > header.wp-block-template-part .wc-block-customer-account__link { width: 44px; padding: 0; }
body .wp-site-blocks > header.wp-block-template-part .wc-block-customer-account__account-icon,
body .wp-site-blocks > header.wp-block-template-part .wc-block-mini-cart__icon { width: 28px; height: 28px; }
body .wp-site-blocks > header.wp-block-template-part .wc-block-mini-cart__amount { font-size: 14px; font-weight: 500; white-space: nowrap; }
body .wp-site-blocks > header.wp-block-template-part .ef-header-language-switcher {
	position: relative;
	display: block;
	flex: 0 0 78px;
	width: 78px;
	height: 44px;
}
body .wp-site-blocks > header.wp-block-template-part .ef-header-language-switcher > .site-lang-switcher { display: none !important; }
body .wp-site-blocks > header.wp-block-template-part .ef-header-languages { display: block; width: 100%; margin: 0; padding: 0; border: 0; }
body .wp-site-blocks > header.wp-block-template-part .ef-header-languages summary {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 6px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #111;
	list-style: none;
	cursor: pointer;
}
body .wp-site-blocks > header.wp-block-template-part .ef-header-languages summary::-webkit-details-marker { display: none; }
body .wp-site-blocks > header.wp-block-template-part .ef-header-current-flag {
	box-sizing: border-box;
	display: block;
	flex: 0 0 22px;
	width: 22px;
	height: 16px;
	border: 1px solid #d1d1d1;
	border-radius: 2px;
	background: linear-gradient(to bottom, #fff 0 50%, #dc143c 50% 100%);
}
body .wp-site-blocks > header.wp-block-template-part .ef-header-current-code { font-size: 13px; font-weight: 600; line-height: 1; }
body .wp-site-blocks > header.wp-block-template-part .ef-header-languages[open] summary > svg { transform: rotate(180deg); }
body .wp-site-blocks > header.wp-block-template-part .ef-header-language-list {
	box-sizing: border-box;
	position: absolute;
	top: calc(100% + 20px);
	right: 0;
	z-index: 20;
	width: 190px;
	max-width: calc(100vw - 24px);
	margin: 0;
	padding: 6px;
	border: 1px solid #d1d1d1;
	border-radius: 5px;
	background: #fff;
	color: #111;
	list-style: none;
}
body .wp-site-blocks > header.wp-block-template-part .ef-header-language-list li { margin: 0; padding: 0; list-style: none; }
body .wp-site-blocks > header.wp-block-template-part .ef-header-language-list a {
	box-sizing: border-box;
	display: flex !important;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	border-radius: 3px;
	color: #111;
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none !important;
}
body .wp-site-blocks > header.wp-block-template-part .ef-header-language-list img { flex: 0 0 24px; box-shadow: none !important; }
body .wp-site-blocks > header.wp-block-template-part .ef-header-language-list a:hover,
body .wp-site-blocks > header.wp-block-template-part .ef-header-languages summary:hover,
body .wp-site-blocks > header.wp-block-template-part .wc-block-customer-account__link:hover,
body .wp-site-blocks > header.wp-block-template-part .wc-block-mini-cart__button:hover { background: #f2f2f2; }
body .wp-site-blocks > header.wp-block-template-part .ef-header-languages summary:focus-visible,
body .wp-site-blocks > header.wp-block-template-part .ef-header-language-list a:focus-visible,
body .wp-site-blocks > header.wp-block-template-part .wp-block-navigation__responsive-container-open:focus-visible,
body .wp-site-blocks > header.wp-block-template-part .wc-block-customer-account__link:focus-visible,
body .wp-site-blocks > header.wp-block-template-part .wc-block-mini-cart__button:focus-visible { outline: 2px solid #c8002a; outline-offset: -2px; }

@media (min-width: 1024px) {
	body .wp-site-blocks > header.wp-block-template-part .wp-block-navigation__responsive-container-open { display: none !important; }
	body .wp-site-blocks > header.wp-block-template-part .wp-block-navigation__responsive-container:not(.is-menu-open) { display: block !important; }
	body .wp-site-blocks > header.wp-block-template-part nav.wp-block-navigation .wp-block-navigation__responsive-container-content > .wp-block-navigation__container {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: center;
		gap: clamp(16px, 1.7vw, 28px);
		margin: 0;
	}
	body .wp-site-blocks > header.wp-block-template-part nav.wp-block-navigation .wp-block-navigation-item__content {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding: 0;
		color: #111;
		font-size: clamp(14px, 1.1vw, 16px);
		font-weight: 500;
		line-height: 1.4;
		white-space: nowrap;
		text-decoration: none;
	}
	body .wp-site-blocks > header.wp-block-template-part nav.wp-block-navigation .wp-block-navigation-item__content:hover,
	body .wp-site-blocks > header.wp-block-template-part nav.wp-block-navigation .wp-block-navigation-item__content[aria-current="page"] { color: #c8002a; }
	body .wp-site-blocks > header.wp-block-template-part nav.wp-block-navigation .wp-block-navigation-item__content:focus-visible { outline: 2px solid #c8002a; outline-offset: 4px; }
}
@media (max-width: 1023px) {
	body .wp-site-blocks > header.wp-block-template-part .wp-block-group.alignfull:has(> .wp-block-group > nav.wp-block-navigation) { padding: 10px 12px !important; }
	body .wp-site-blocks > header.wp-block-template-part .wp-block-group:has(> nav.wp-block-navigation) {
		grid-template-columns: minmax(0, 1fr) auto 48px;
		gap: 0 !important;
		min-height: 44px;
	}
	body .wp-site-blocks > header.wp-block-template-part .wp-block-site-logo img { width: 158px !important; max-height: 28px; }
	body .wp-site-blocks > header.wp-block-template-part nav.wp-block-navigation { grid-column: 3 !important; justify-self: end; width: 44px; }
	body .wp-site-blocks > header.wp-block-template-part .wp-block-group:has(> .wc-block-mini-cart) { grid-column: 2 !important; gap: 0 !important; }
	body .wp-site-blocks > header.wp-block-template-part .wp-block-navigation__responsive-container-open {
		box-sizing: border-box;
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 4px;
		background: #111;
		color: #fff;
	}
	body .wp-site-blocks > header.wp-block-template-part .wp-block-navigation__responsive-container-open svg { fill: currentColor; }
	body .wp-site-blocks > header.wp-block-template-part .wp-block-navigation__responsive-container-open:hover { background: #292929; }
	body .wp-site-blocks > header.wp-block-template-part .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
	body .wp-site-blocks > header.wp-block-template-part .wc-block-mini-cart { flex: 0 0 44px; width: 44px; }
	body .wp-site-blocks > header.wp-block-template-part .wc-block-mini-cart__button { width: 44px; height: 44px; padding: 0; gap: 0; }
	body .wp-site-blocks > header.wp-block-template-part .wc-block-mini-cart__amount { display: none !important; }
	body .wp-site-blocks > header.wp-block-template-part .ef-header-language-switcher { flex-basis: 44px; width: 44px; }
	body .wp-site-blocks > header.wp-block-template-part .ef-header-languages summary { gap: 5px; padding: 0; }
	body .wp-site-blocks > header.wp-block-template-part .ef-header-current-code { display: none; }
	body .wp-site-blocks > header.wp-block-template-part .ef-header-language-list { top: calc(100% + 16px); }
}
@media (min-width: 601px) and (max-width: 782px) {
	body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--ef-header-top, 46px); }
}
@media (max-width: 600px) {
	body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--ef-header-top, 0px); }
}
