/**
 * Front-end layout for nextora/header (block theme).
 * Color defaults: theme.json → styles.blocks["nextora/header"] (background, text, link, button).
 * Nav: .nextora-navigation-from-location--primary + nav-menus.css (--nextora-nav-*).
 * Icons / hamburger / utilities: --wp--style--color (block text from theme.json or sidebar).
 * CTA: .wp-element-button — theme.json elements.button (solid) or outline override below.
 */

.nextora-header-block {
	box-sizing: border-box;
	font-family: var(--wp--style--font-family, var(--wp--preset--font-family--sans));
	font-size: var(--wp--style--font-size, inherit);
}

.nextora-header-block--border-bottom {
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: color-mix(in srgb, currentColor 18%, transparent);
}

/**
 * Block text color: Core sets `color` on `.wp-block-nextora-header`.
 * Link color: Core enqueues `.wp-elements-* a` — :where() avoids overriding Core when vars are unset.
 * Optional `--nextora-header-nav-*` overrides on the block wrapper (via theme hooks / filters).
 */
.nextora-header-block .nextora-navigation-from-location--primary .nextora-header-menu {
	display: flex;
	flex-wrap: wrap;
	gap: var(--nextora-header-menu-item-spacing, var(--wp--preset--spacing--20, 1.25rem));
}

.nextora-header-block .nextora-navigation-from-location--primary .nextora-header-menu > li > a {
	font-family: inherit;
	font-size: inherit;
	font-weight: var(--wp--style--font-weight, 500);
}

:where(.nextora-header-block .nextora-navigation-from-location--primary .nextora-header-menu > li > a) {
	color: var(--nextora-header-nav-top, inherit);
}

:where(
	.nextora-header-block .nextora-navigation-from-location--primary .nextora-header-menu > li > a:hover,
	.nextora-header-block .nextora-navigation-from-location--primary .nextora-header-menu > li > a:focus-visible
) {
	color: var(--nextora-header-nav-top-hover, var(--nextora-header-nav-top, inherit));
	text-decoration-color: color-mix(in srgb, currentColor 70%, transparent);
}

.nextora-header-block .nextora-navigation-from-location--primary .nextora-header-menu > li.current-menu-item > a,
.nextora-header-block .nextora-navigation-from-location--primary .nextora-header-menu > li.current-menu-ancestor > a {
	color: var(--nextora-header-nav-top-active, var(--nextora-header-nav-top, inherit));
	text-decoration-color: currentColor;
}

.nextora-header-block .nextora-navigation-from-location--primary .nextora-header-menu > li > a:focus-visible {
	outline-color: var(--wp--preset--color--primary, var(--nextora-nav-focus-ring, currentColor));
}

/* Flyout: theme tokens; header attributes override via --nextora-header-nav-submenu-* */
.nextora-header-block .nextora-header-menu .sub-menu {
	background-color: var(--nextora-header-nav-submenu-bg, var(--nextora-nav-submenu-bg));
	color: var(--nextora-header-nav-submenu-link, var(--nextora-nav-panel-fg));
	border-color: var(--nextora-header-nav-submenu-border, var(--nextora-nav-submenu-border));
}

.nextora-header-block .nextora-navigation-from-location--primary .nextora-header-menu .sub-menu a {
	color: inherit;
}

.nextora-header-block .nextora-navigation-from-location--primary .nextora-header-menu .sub-menu a:hover,
.nextora-header-block .nextora-navigation-from-location--primary .nextora-header-menu .sub-menu a:focus-visible {
	color: var(--nextora-header-nav-submenu-link-hover, var(--nextora-nav-panel-hover-fg));
	background-color: var(--nextora-header-nav-submenu-row-hover, var(--nextora-nav-row-hover));
}

.nextora-header-block .nextora-header-menu .sub-menu .current-menu-item > a,
.nextora-header-block .nextora-header-menu .sub-menu .current-menu-ancestor > a {
	color: var(--nextora-header-nav-submenu-link-active, var(--nextora-nav-panel-active-fg));
	background-color: var(--nextora-header-nav-submenu-row-active, var(--nextora-nav-panel-active-bg));
}

.nextora-header-block .nextora-header-menu .sub-menu a:focus-visible {
	outline-color: var(--wp--preset--color--primary, var(--nextora-nav-focus-ring, currentColor));
}

/**
 * Sticky on this block only (siblings in `header.wp-block-template-part` scroll away).
 * Pin line, left, and width are set in header-sticky.ts from `header.wp-block-template-part`.
 * Parent shells: overflow visible in resources/css/modules/base/body.css.
 */
.nextora-header-block__sticky-spacer {
	display: block;
	height: 0;
	pointer-events: none;
}

.nextora-header-block--sticky-always:not(.nextora-header-block--is-pinned),
.nextora-header-block--sticky-scroll-up:not(.nextora-header-block--is-pinned) {
	position: sticky;
	top: var(--nextora-header-sticky-top, 0px);
}

.nextora-header-block--sticky-always,
.nextora-header-block--sticky-scroll-up {
	z-index: 100;
	width: 100%;
	max-width: none;
	align-self: start;
}

.nextora-header-block--sticky-always.nextora-header-block--is-pinned,
.nextora-header-block--sticky-scroll-up.nextora-header-block--is-pinned {
	position: fixed;
	top: var(--nextora-header-sticky-top, 0px);
	left: var(--nextora-header-sticky-left, 0px);
	width: var(--nextora-header-sticky-width, 100%);
	right: auto;
}

/* Scroll-up show/hide on the block root (only while pinned — see header-sticky.ts). */
.nextora-header-block--sticky-scroll-up.nextora-header-block--is-pinned {
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
	transform: translateY(var(--nextora-header-sticky-translate-y, 0px));
}

@media (prefers-reduced-motion: reduce) {
	.nextora-header-block--sticky-scroll-up.nextora-header-block--is-pinned {
		transition-duration: 0.01ms;
	}
}

.nextora-header-block__inner {
	/* display: flex; */
	display: grid;
	grid-template-columns: 1fr 3fr 1fr;
	/* flex-wrap: wrap; */
	align-items: center;
	justify-content: space-between;
	gap: clamp(var(--wp--preset--spacing--10, 1rem), 2vw, var(--nextora-gutter, 1.5rem));
}

@media (max-width: 768px) {
	.nextora-header-block__inner {
		grid-template-columns: 1fr auto;
	}
}

/* Layout: two rows (mobile: top row only; ≥768px: + menu row) */
.nextora-header-block--layout-two-row .nextora-header-block__inner {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
}

.nextora-header-block__row--top {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: clamp(var(--wp--preset--spacing--10, 1rem), 2vw, var(--nextora-gutter, 1.5rem));
	width: 100%;
	min-width: 0;
}

.nextora-header-block__row--nav {
	display: none;
	width: 100%;
	min-width: 0;
}

@media (min-width: 768px) {
	.nextora-header-block--layout-two-row .nextora-header-block__inner {
		gap: var(--wp--preset--spacing--10, 0.85rem);
	}

	.nextora-header-block__row--nav {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.nextora-header-block--layout-two-row .nextora-header-block__row--nav .nextora-header-block__nav-source {
		flex: 1 1 auto;
		justify-content: center;
		width: 100%;
	}
}

@media (min-width: 768px) {
	/* Logo | centered nav | icons */
	.nextora-header-block--layout-logo-nav-center .nextora-header-block__inner {
		display: grid;
		/* grid-template-columns: auto minmax(0, 1fr) auto; */
		/* grid-template-columns: auto minmax(0, 2fr) auto; */
		align-items: center;
		column-gap: clamp(var(--wp--preset--spacing--10, 1rem), 2vw, var(--nextora-gutter, 1.5rem));
		row-gap: var(--wp--preset--spacing--10, 0.85rem);
	}

	.nextora-header-block--layout-logo-nav-center .nextora-header-block__logo {
		grid-column: 1;
		z-index: 3;
	}

	.nextora-header-block--layout-logo-nav-center .nextora-header-block__nav-source {
		grid-column: 2;
		flex: 0 1 auto;
		width: 100%;
		max-width: 100%;
		justify-self: center;
		justify-content: center;
	}

	.nextora-header-block--layout-logo-nav-center .nextora-header-block__actions {
		grid-column: 3;
		justify-self: end;
	}

	/* Nav (left) | centered logo | icons (right) — explicit areas so order matches logic
	 * even though DOM is logo, nav, actions. min-width:0 + fit-content prevents an extra grid row. */
	.nextora-header-block--layout-nav-start-logo-center .nextora-header-block__inner {
		display: grid;
		/* grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); */
		grid-template-columns: 3fr 1fr 3fr;
		grid-template-rows: auto;
		grid-template-areas: "nav logo actions";
		align-items: center;
		column-gap: clamp(var(--wp--preset--spacing--10, 1rem), 2vw, var(--nextora-gutter, 1.5rem));
		width: 100%;
	}

	.nextora-header-block--layout-nav-start-logo-center .nextora-header-block__nav-source {
		grid-area: nav;
		justify-self: start;
		align-self: center;
		width: fit-content;
		max-width: 100%;
		min-width: 0;
		justify-content: flex-start;
		flex: 0 1 auto;
	}

	.nextora-header-block--layout-nav-start-logo-center
		.nextora-header-block__nav-source
		.nextora-header-block__nav-el {
		width: auto;
		max-width: 100%;
		min-width: 0;
	}

	.nextora-header-block--layout-nav-start-logo-center .nextora-header-block__logo {
		grid-area: logo;
		justify-self: center;
		align-self: center;
	}

	.nextora-header-block--layout-nav-start-logo-center .nextora-header-block__logo .nextora-header-block__logo-link {
		justify-content: center;
	}

	.nextora-header-block--layout-nav-start-logo-center .nextora-header-block__actions {
		grid-area: actions;
		justify-self: end;
		align-self: center;
		width: fit-content;
		max-width: 100%;
		min-width: 0;
	}
}

.nextora-header-block__logo {
	flex: 0 0 auto;
	min-width: 0;
	line-height: 0;
}

.nextora-header-block__logo-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
}

.nextora-header-block__logo-text {
	font-weight: 600;
	font-size: var(--wp--preset--font-size--medium);
	letter-spacing: -0.02em;
	color: inherit;
	line-height: 1.2;
}

@media (max-width: 425px) {
	.nextora-header-block__logo-text {
		width: 140px;
		max-width: 100%;
	}
}

.nextora-header-block__logo-img {
	display: block;
	width: auto;
	height: auto;
	max-width: min(100%, var(--nextora-header-logo-max-width, 150px));
}

.nextora-header-block__logo-img--mobile {
	display: none;
}

@media (max-width: 767px) {
	.nextora-header-block__logo-img--desktop {
		display: none;
	}

	.nextora-header-block__logo-img--mobile {
		display: block;
		max-width: min(100%, var(--nextora-header-logo-max-width-mobile, var(--nextora-header-logo-max-width, 150px)));
	}

	.nextora-header-block__logo-img:not(.nextora-header-block__logo-img--desktop):not(
			.nextora-header-block__logo-img--mobile
		) {
		max-width: min(100%, var(--nextora-header-logo-max-width-mobile, var(--nextora-header-logo-max-width, 150px)));
	}
}

.nextora-header-block__nav-source {
	flex: 1 1 auto;
	min-width: 0;
	justify-content: flex-end;
	/* < 768px: desktop menu is cloned into the portal; this source stays in DOM for cloning only */
	display: none;
}

@media (min-width: 768px) {
	.nextora-header-block__nav-source {
		display: flex;
	}
}

.nextora-header-block__nav-empty {
	display: none;
}

.nextora-header-block__actions {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: var(--wp--preset--spacing--10, 0.65rem);
}

/* Follow Us dropdown — before search in utilities */
.nextora-header-block__follow-us {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.nextora-header-block__follow-us-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	box-sizing: border-box;
	margin: 0;
	padding: 0.35rem 0.5rem;
	border: none;
	border-radius: 0.375rem;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: inherit;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
	transition:
		color var(--nextora-nav-t, 0.18s ease),
		background-color var(--nextora-nav-t, 0.18s ease),
		opacity var(--nextora-nav-t, 0.18s ease);
}

.nextora-header-block__follow-us-toggle:hover,
.nextora-header-block__follow-us-toggle:focus-visible {
	opacity: 0.75;
}

.nextora-header-block__follow-us-toggle:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary, currentColor);
	outline-offset: 2px;
}

.nextora-header-block__follow-us-chevron {
	display: block;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.nextora-header-block__follow-us--open .nextora-header-block__follow-us-chevron {
	transform: rotate(180deg);
}

.nextora-header-block__follow-us-scrim {
	display: none;
}

.nextora-header-block__follow-us-panel {
	position: absolute;
	inset-inline-end: 0;
	top: calc(100% + 0.65rem);
	z-index: 100010;
	box-sizing: border-box;
	width: min(20rem, calc(100vw - 2rem));
	padding: 1.35rem 1.25rem 1.15rem;
	border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	border-radius: 1.25rem;
	background: var(--wp--preset--color--base, #fff);
	color: var(--wp--preset--color--contrast, #111);
	box-shadow:
		0 18px 40px color-mix(in srgb, var(--wp--preset--color--contrast, #000) 14%, transparent),
		0 2px 8px color-mix(in srgb, var(--wp--preset--color--contrast, #000) 6%, transparent);
}

/* Full-width fallback only when JS detects horizontal overflow (--stacked). */
.nextora-header-block__follow-us--stacked .nextora-header-block__follow-us-scrim {
	position: fixed;
	inset: 0;
	z-index: 100009;
	display: block;
	background: color-mix(in srgb, var(--wp--preset--color--contrast, #000) 28%, transparent);
}

.nextora-header-block__follow-us--stacked .nextora-header-block__follow-us-panel {
	position: fixed;
	inset-inline: max(1rem, env(safe-area-inset-left, 0px)) max(1rem, env(safe-area-inset-right, 0px));
	width: auto;
	max-width: none;
	max-height: min(32rem, calc(100dvh - 5rem));
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.nextora-header-block__follow-us-socials {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}
.nextora-header-block__follow-us-socials li {
	display: inline-flex;
}

.nextora-header-block__follow-us-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.2rem;
	height: 1.2rem;
	color: inherit;
	text-decoration: none;
	transition: opacity 0.18s ease;
}

.nextora-header-block__follow-us-social-link:hover,
.nextora-header-block__follow-us-social-link:focus-visible {
	opacity: 0.65;
}

.nextora-header-block__follow-us-social-link:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary, currentColor);
	outline-offset: 2px;
	border-radius: 0.25rem;
}

.nextora-header-block__follow-us-support {
	margin: 0 0 1rem !important;
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	line-height: 1.45;
	text-align: center;
	color: color-mix(in srgb, currentColor 90%, transparent);
}

.nextora-header-block__follow-us-contacts {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	margin-bottom: 1rem;
	padding: 0.65rem;
	border-radius: 0.85rem;
	background: color-mix(in srgb, currentColor 6%, transparent);
}

.nextora-header-block__follow-us-contact {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 0.65rem;
	padding: 0.55rem 0.65rem;
	border-radius: 0.65rem;
	color: inherit;
	text-decoration: none;
	transition: background-color 0.18s ease;
}

.nextora-header-block__follow-us-contact:hover,
.nextora-header-block__follow-us-contact:focus-visible {
	background: color-mix(in srgb, currentColor 8%, transparent);
}

.nextora-header-block__follow-us-contact:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary, currentColor);
	outline-offset: 2px;
}

.nextora-header-block__follow-us-contact-icon,
.nextora-header-block__follow-us-contact-chevron {
	display: inline-flex;
	line-height: 0;
	color: color-mix(in srgb, currentColor 72%, transparent);
}
.nextora-header-block__follow-us-contact-icon svg,
.nextora-header-block__follow-us-contact-chevron svg {
	width: 1.2rem;
	height: 1.2rem;
}
.nextora-header-block__follow-us-contact-chevron {
	opacity: 0.45;
}

.nextora-header-block__follow-us-contact-text {
	min-width: 0;
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.nextora-header-block__follow-us-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 2.75rem;
	padding: 0.65rem 1rem;
	border: 2px solid var(--wp--preset--color--contrast, #111);
	border-radius: 30rem;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease,
		opacity 0.2s ease;
}

.nextora-header-block__follow-us-cta:hover,
.nextora-header-block__follow-us-cta:focus-visible {
	background: var(--wp--preset--color--contrast, #111);
	color: var(--wp--preset--color--base, #fff);
}

.nextora-header-block__follow-us-cta:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary, currentColor);
	outline-offset: 2px;
}

/* Drawer variant — cloned into mobile canvas menu; hidden in desktop nav source. */
@media (min-width: 768px) {
	.nextora-header-block__follow-us--drawer {
		display: none !important;
	}
}

.nextora-primary-nav-portal__mount .nextora-header-block__follow-us--drawer {
	position: relative;
	z-index: 2;
	display: block;
	width: 100%;
	flex-shrink: 0;
	margin-block-start: auto;
	padding: 1.2rem 0;
	padding-inline: 0;
	border-block-start: 1px solid
		var(--nextora-nav-mobile-drawer-border, color-mix(in srgb, currentColor 12%, transparent));
}

.nextora-primary-nav-portal__mount .nextora-header-block__follow-us--drawer.nextora-header-block__follow-us--open {
	z-index: 30;
}

.nextora-primary-nav-portal__mount .nextora-header-block__follow-us--drawer .nextora-header-block__follow-us-toggle {
	display: flex;
	width: auto;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	font-size: var(--wp--preset--font-size--base, 1rem);
	font-weight: 500;
	line-height: 1.35;
	text-align: start;
	border: none;
	border-radius: 0;
	background: transparent;
	color: inherit;
	-webkit-tap-highlight-color: transparent;
	transition:
		background-color var(--nextora-nav-t, 0.18s ease),
		color var(--nextora-nav-t, 0.18s ease);
}

@media (min-width: 767px) {
	.nextora-primary-nav-portal__mount
		.nextora-header-block__follow-us--drawer
		.nextora-header-block__follow-us-toggle:hover,
	.nextora-primary-nav-portal__mount
		.nextora-header-block__follow-us--drawer
		.nextora-header-block__follow-us-toggle:focus-visible {
		background-color: var(--nextora-nav-panel-hover-bg, color-mix(in srgb, currentColor 8%, transparent));
	}

	.nextora-primary-nav-portal__mount
		.nextora-header-block__follow-us--drawer
		.nextora-header-block__follow-us-toggle:focus-visible {
		outline: 2px solid var(--wp--preset--color--primary, currentColor);
		outline-offset: 2px;
	}
}

.nextora-primary-nav-portal__mount .nextora-header-block__follow-us--drawer .nextora-header-block__follow-us-chevron {
	width: 1.125rem;
	height: 1.125rem;
	opacity: 0.72;
}

.nextora-primary-nav-portal__mount .nextora-header-block__follow-us--drawer .nextora-header-block__follow-us-panel {
	position: absolute;
	inset-inline: 0;
	top: auto;
	bottom: calc(100% + 0.5rem);
	z-index: 31;
	width: 100%;
	max-width: 450px;
	max-height: min(32rem, calc(100dvh - 6rem));
	margin: 0;
	padding: 1rem;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	border-radius: 0.875rem;
	background: var(--nextora-nav-mobile-drawer-bg, var(--wp--preset--color--base, #fafafa));
	color: inherit;
	box-shadow:
		0 -12px 32px color-mix(in srgb, var(--wp--preset--color--contrast, #000) 16%, transparent),
		0 -4px 12px color-mix(in srgb, var(--wp--preset--color--contrast, #000) 8%, transparent);
}

.nextora-primary-nav-portal__mount .nextora-header-block__follow-us--drawer .nextora-header-block__follow-us-scrim {
	display: none !important;
}

.nextora-primary-nav-portal__mount .nextora-header-block__follow-us--drawer .nextora-header-block__follow-us-socials {
	justify-content: center;
	gap: 0.75rem;
	margin-block-end: 1rem;
}

.nextora-primary-nav-portal__mount
	.nextora-header-block__follow-us--drawer
	.nextora-header-block__follow-us-social-link {
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 999px;
	background: color-mix(in srgb, currentColor 8%, transparent);
}

.nextora-primary-nav-portal__mount
	.nextora-header-block__follow-us--drawer
	.nextora-header-block__follow-us-social-link
	svg {
	width: 1.125rem;
	height: 1.125rem;
}

.nextora-primary-nav-portal__mount .nextora-header-block__follow-us--drawer .nextora-header-block__follow-us-support {
	margin-block: 0 0.85rem;
	font-size: 0.875rem;
	line-height: 1.5;
	opacity: 0.82;
}

.nextora-primary-nav-portal__mount .nextora-header-block__follow-us--drawer .nextora-header-block__follow-us-contacts {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-block-end: 0.85rem;
}

.nextora-primary-nav-portal__mount
	.nextora-header-block__follow-us--drawer.nextora-header-block__follow-us--open
	.nextora-header-block__follow-us-panel:not([hidden]) {
	animation: nextora-follow-us-drawer-in 0.22s ease;
}

@keyframes nextora-follow-us-drawer-in {
	from {
		opacity: 0;
		transform: translateY(0.65rem);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nextora-primary-nav-portal__mount
		.nextora-header-block__follow-us--drawer.nextora-header-block__follow-us--open
		.nextora-header-block__follow-us-panel:not([hidden]) {
		animation: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nextora-header-block__follow-us-chevron,
	.nextora-header-block__follow-us-toggle,
	.nextora-header-block__follow-us-social-link,
	.nextora-header-block__follow-us-contact,
	.nextora-header-block__follow-us-cta {
		transition: none;
	}
}

.nextora-header-block__utilities {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: var(--wp--preset--spacing--05, 0.5rem);
	line-height: 0;
}

/**
 * Simple header search (`nextora_header_block_render_simple_search_form()`) —
 * underline input with icon-only submit overlaid at the logical start.
 */
.nextora-header-block__search--simple {
	flex: 1 1 auto;
	min-width: 0;
	max-width: min(20rem, 100%);
}

.nextora-header-block__search--simple .search-form {
	display: block;
	min-width: 0;
	width: 100%;
}

.nextora-header-block__search--simple .nextora-header-block__search-simple-field {
	position: relative;
	min-width: 0;
	flex: 1 1 auto;
}

.nextora-header-block__search--simple .nextora-header-block__search-simple-field label {
	display: block;
	width: 100%;
	margin: 0;
	cursor: text;
	min-width: 0;
}

.nextora-header-block__search--simple .search-field {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	padding: 0.45rem 0;
	padding-inline-start: 2.5rem;
	border: none;
	border-radius: 0;
	border-bottom: 1px solid color-mix(in srgb, currentColor 26%, transparent);
	background: transparent;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 450;
	line-height: 1.45;
	letter-spacing: -0.02em;
	color: inherit;
	transition: border-color 0.18s ease;
}

.nextora-header-block__search--simple .search-field::placeholder {
	color: color-mix(in srgb, currentColor 48%, transparent);
	opacity: 1;
}

.nextora-header-block__search--simple .search-field:hover {
	border-bottom-color: color-mix(in srgb, currentColor 38%, transparent);
}

.nextora-header-block__search--simple .search-field:focus {
	outline: none;
	border-bottom-color: color-mix(in srgb, var(--wp--preset--color--primary, currentColor) 52%, currentColor);
}

.nextora-header-block__search--simple .search-submit {
	position: absolute;
	inset-inline-start: 0;
	top: 50%;
	z-index: 1;
	transform: translateY(-50%);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: none;
	border-radius: 0.375rem;
	background-color: transparent;
	font-family: inherit;
	line-height: 0;
	color: inherit;
	transition: background-color var(--nextora-nav-t, 0.16s ease);
	-webkit-appearance: none;
	appearance: none;
}

.nextora-header-block__search--simple .search-submit:hover {
	background-color: color-mix(in srgb, currentColor 12%, transparent);
}

.nextora-header-block__search--simple .search-submit:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--wp--preset--color--primary, currentColor) 45%, transparent);
	outline-offset: 2px;
}

.nextora-header-block__search--simple .nextora-header-block__search-submit-icon {
	display: block;
	width: 1.15rem;
	height: 1.15rem;
	flex-shrink: 0;
	color: inherit;
}

@media (max-width: 1023.98px) {
	.nextora-header-block__search--simple .search-field {
		font-size: 1rem;
		line-height: 1.5;
		-webkit-text-size-adjust: 100%;
		text-size-adjust: 100%;
	}

	.nextora-header-block__search--simple .search-submit,
	.nextora-header-block__search--simple .search-field {
		-webkit-tap-highlight-color: transparent;
	}

	.nextora-header-block__search--simple .search-submit {
		width: 2.75rem;
		height: 2.75rem;
	}

	.nextora-header-block__search--simple .search-field {
		padding-inline-start: 2.85rem;
		padding-block: 0.55rem;
	}

	.nextora-header-block__search--simple .nextora-header-block__search-submit-icon {
		width: 1.25rem;
		height: 1.25rem;
	}
}

@media (max-width: 767.98px) {
	.nextora-header-block__search--simple {
		max-width: none;
		flex: 1 1 8rem;
	}

	.nextora-header-block__utilities {
		column-gap: 0.25rem;
		row-gap: 0.25rem;
		align-items: center;
		min-width: 0;
		flex-shrink: 1;
	}

	.nextora-header-block__actions {
		min-width: 0;
		flex-shrink: 1;
	}

	.nextora-header-block__follow-us-toggle {
		font-size: 0.8125rem;
		padding: 0.3rem 0.4rem;
	}

	.nextora-header-block__follow-us-panel {
		border-radius: 1rem;
	}
}

@media (min-width: 768px) and (max-width: 1023.98px) {
	.nextora-header-block__search--simple {
		max-width: min(26rem, 46vw);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nextora-header-block__search--simple .search-field,
	.nextora-header-block__search--simple .search-submit {
		transition-duration: 0.01ms;
	}
}

/**
 * Spotlight trigger: icon buttons should match the header block Text color (not Link-only).
 */
.nextora-header-block__search--spotlight button[data-nextora-modal-open] {
	color: var(--wp--style--color, inherit);
}

.nextora-header-block__search--spotlight button[data-nextora-modal-open]:hover,
.nextora-header-block__search--spotlight button[data-nextora-modal-open]:focus-visible {
	color: var(--wp--style--color, inherit);
	opacity: 0.7;
	/* background-color: color-mix(in srgb, currentColor 14%, transparent); */
}

.nextora-header-block__search--spotlight button[data-nextora-modal-open]:focus-visible {
	outline-color: var(--wp--preset--color--primary, currentColor);
}

/**
 * Cart + account: match spotlight search trigger — 2.5rem square ghost control, rounded-md.
 * @see modal-markup.php `trigger_class` (size-10, inline-flex, rounded-md).
 */
.nextora-header-block__utilities .nextora-header-block__cart-link,
.nextora-header-block__utilities .nextora-header-block__cart--woo .wc-block-mini-cart__button,
.nextora-header-block__utilities .nextora-header-block__account-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 2.5rem;
	height: 2.5rem;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0.375rem;
	background: transparent;
	color: var(--wp--style--color, inherit);
	text-decoration: none;
	transition:
		color var(--nextora-nav-t, 0.18s ease),
		background-color var(--nextora-nav-t, 0.18s ease);
}

.nextora-header-block__utilities .nextora-header-block__account-link:visited {
	color: var(--wp--style--color, inherit);
}

.nextora-header-block__utilities .nextora-header-block__account-link--with-text {
	width: auto;
	max-width: 12rem;
	min-width: 2.5rem;
	height: 2.5rem;
	padding-inline: 0.5rem;
	gap: 0.35rem;
	justify-content: center;
}

.nextora-header-block__utilities .nextora-header-block__cart-link:hover,
.nextora-header-block__utilities .nextora-header-block__cart-link:focus-visible,
.nextora-header-block__utilities .nextora-header-block__cart--woo .wc-block-mini-cart__button:hover,
.nextora-header-block__utilities .nextora-header-block__cart--woo .wc-block-mini-cart__button:focus-visible,
.nextora-header-block__utilities .nextora-header-block__account-link:hover,
.nextora-header-block__utilities .nextora-header-block__account-link:focus-visible {
	color: var(--wp--style--color, inherit);
	opacity: 0.7;
	/* background-color: color-mix(in srgb, currentColor 14%, transparent); */
}

.nextora-header-block__utilities .nextora-header-block__cart-link:focus-visible,
.nextora-header-block__utilities .nextora-header-block__cart--woo .wc-block-mini-cart__button:focus-visible,
.nextora-header-block__utilities .nextora-header-block__account-link:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary, currentColor);
	outline-offset: 2px;
}

/* Cart: quantity badge sits on the trigger corner */
.nextora-header-block__cart .nextora-header-block__cart-link,
.nextora-header-block__cart--woo .wc-block-mini-cart__button {
	position: relative;
}

/* WooCommerce Mini-Cart block in header utilities */
.nextora-header-block__cart--woo {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
}

.nextora-header-block__cart--woo .wc-block-mini-cart {
	margin: 0;
}

.nextora-header-block__cart--woo .wc-block-mini-cart__button {
	appearance: none;
	font: inherit;
	cursor: pointer;
	text-align: inherit;
	padding: 0;
	border: none;
	background: transparent;
}

.nextora-header-block__cart--woo .wc-block-mini-cart__quantity-badge {
	position: relative;
	display: inline-flex;
	line-height: 0;
}

.nextora-header-block__cart--woo .wc-block-mini-cart__icon {
	width: 2rem;
	height: 2rem;
}

.nextora-header-block__cart--woo .wc-block-mini-cart__badge {
	position: absolute;
	inset-inline-end: -0.2rem;
	top: 0.125rem;
	min-width: 1rem;
	height: 1rem;
	font-size: 0.7rem;
	font-weight: 600;
	line-height: 1rem;
	font-variant-numeric: tabular-nums;
}

.nextora-header-block__cart--woo .wc-block-mini-cart__amount {
	display: none;
}

.nextora-header-block__cart-placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	color: var(--wp--style--color, inherit);
	opacity: 0.65;
}

.nextora-header-block__cart-placeholder-icon {
	display: inline-flex;
	line-height: 0;
}

/* Drawer overlay may be portaled to body — keep above sticky header / nav portal */
.nextora-header-block__cart--woo .wc-block-components-drawer__screen-overlay,
body > .wc-block-components-drawer__screen-overlay {
	z-index: 1000;
}

.nextora-header-block__cart-icon,
.nextora-header-block__account-icon {
	display: inline-flex;
	line-height: 0;
	flex-shrink: 0;
}

.nextora-header-block__cart-badge {
	position: absolute;
	inset-inline-end: -0.2rem;
	top: 0.125rem;
	z-index: 1;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1rem;
	height: 1rem;
	padding: 0 0.28rem;
	font-size: 0.7rem;
	font-weight: 600;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	color: var(--wp--style--color, inherit);
	pointer-events: none;
}

.nextora-header-block__cart-badge:empty {
	display: none;
}

.nextora-header-block__cart-count {
	margin: 0;
	padding: 0;
	font: inherit;
	font-weight: inherit;
	font-size: inherit;
	line-height: 1;
	min-width: 0;
	text-align: center;
	opacity: 1;
}

.nextora-header-block__account-text {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* CTA — .wp-element-button skips header link ink; outline overrides block elements.button fill below. */
.nextora-header-block__cta-wrap {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.nextora-header-block__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 2.5rem;
	font-family: inherit;
	text-decoration: none;
	white-space: nowrap;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease,
		opacity 0.2s ease;
}

.nextora-header-block__cta-icon {
	display: inline-flex;
	line-height: 0;
	flex-shrink: 0;
}

.nextora-header-block__cta-icon--left {
	margin-inline-end: 0.5rem;
}

.nextora-header-block__cta-icon--right {
	margin-inline-start: 0.5rem;
}

.nextora-header-block__cta-icon svg {
	display: block;
	width: auto;
	height: auto;
}

.wp-block-nextora-header .nextora-header-block__cta.nextora-header-block__cta--outline.wp-element-button,
.wp-block-nextora-header .nextora-header-block__cta.nextora-header-block__cta--outline.wp-element-button:visited {
	background-color: transparent;
	border: 2px solid var(--wp--preset--color--primary, #000);
	border-radius: 30rem;
	padding: 0.625rem 1.5rem;
	color: var(--wp--preset--color--primary, #000);
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	font-weight: 300;
	line-height: 1.25;
}

.wp-block-nextora-header .nextora-header-block__cta.nextora-header-block__cta--outline.wp-element-button:hover,
.wp-block-nextora-header .nextora-header-block__cta.nextora-header-block__cta--outline.wp-element-button:focus-visible {
	background-color: var(--wp--preset--color--primary, #000);
	border-color: var(--wp--preset--color--primary, #000);
	color: var(--wp--preset--color--base, #fff);
}

.nextora-header-block__cta:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary, currentColor);
	outline-offset: 2px;
}

/* Mini-cart trigger: native `<button>` reset beyond utility rules */
button.nextora-header-block__cart-link.nextora-header-block__cart-trigger {
	appearance: none;
	font: inherit;
	cursor: pointer;
	text-align: inherit;
}

/* Match spotlight trigger hit target (modal-markup.php uses size-10) */
.nextora-header-block__menu-toggle {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
	color: var(--wp--style--color, inherit);
	cursor: pointer;
	border-radius: 0.375rem;
	transition:
		background-color var(--nextora-nav-t, 0.18s ease),
		color var(--nextora-nav-t, 0.18s ease);
}

.nextora-header-block__menu-toggle:hover,
.nextora-header-block__menu-toggle:focus-visible {
	background-color: color-mix(in srgb, currentColor 14%, transparent);
}

.nextora-header-block__menu-toggle:focus-visible {
	outline: 2px solid var(--nextora-nav-focus-ring-on-dark, currentColor);
	outline-offset: 2px;
}

.nextora-header-block__hamburger-line {
	display: block;
	width: 1.35rem;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
}

@media (min-width: 768px) {
	.nextora-header-block__menu-toggle {
		display: none !important;
	}
}

html.nextora-header-follow-us-open {
	overflow: hidden;
}

@media (max-width: 767.98px) {
	.nextora-header-block__utilities--hide-follow-us-mobile .nextora-header-block__follow-us {
		display: none !important;
	}

	.nextora-header-block__utilities .nextora-header-block__cart-link,
	.nextora-header-block__utilities .nextora-header-block__cart--woo .wc-block-mini-cart__button,
	.nextora-header-block__utilities .nextora-header-block__account-link,
	.nextora-header-block__cart--woo .wc-block-mini-cart {
		width: 2rem;
		height: 2rem;
	}

	.nextora-header-block__cart--woo .wc-block-mini-cart__icon {
		width: 1.5rem;
		height: 1.5rem;
	}

	.nextora-header-block__cart-placeholder {
		width: 2rem;
		height: 2rem;
	}

	.nextora-header-block__utilities--hide-search-mobile .nextora-header-block__search {
		display: none !important;
	}

	.nextora-header-block__utilities--hide-cart-mobile .nextora-header-block__cart {
		display: none !important;
	}

	.nextora-header-block__utilities--hide-cta-mobile .nextora-header-block__cta-wrap {
		display: none !important;
	}
	.nextora-header-block__menu-toggle,
	.nextora-header-block__search--spotlight button[data-nextora-modal-open] {
		width: 2rem;
		height: 2rem;
	}
	.nextora-header-block__search--spotlight button[data-nextora-modal-open] svg {
		width: 20px;
		height: 20px;
	}
}
