.ep-header-tools {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	position: relative;
	width: 100%;
	min-width: 0;
	color: #102f4b;
}

.ep-header-tools .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ep-header-tools__search {
	position: relative;
	width: clamp(210px, 20vw, 300px);
	margin: 0;
	z-index: 1;
}

.ep-header-tools__search:focus-within {
	z-index: 10001;
}

.ep-header-tools__search-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 46px;
	width: 100%;
	min-height: 46px;
	overflow: hidden;
	border: 1px solid #c3d0da;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 4px 18px rgba(16, 47, 75, 0.06);
}

.ep-header-tools__search input[type="search"] {
	width: 100%;
	min-width: 0;
	height: 46px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 0;
	outline: 0;
	background: transparent;
	color: #17324a;
	font: inherit;
	font-size: 14px;
	line-height: 1.3;
	box-shadow: none;
}

.ep-header-tools__search input[type="search"]::placeholder {
	color: #64798a;
	opacity: 1;
}

.ep-header-tools__search button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	min-width: 46px;
	height: 46px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #0170b9;
	color: #fff;
	cursor: pointer;
	box-shadow: none;
}

.ep-header-tools__search button span {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ep-header-tools__search button svg,
.ep-header-tools__mobile-search summary svg,
.ep-header-tools__cart-fallback svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ep-header-tools__search button:hover,
.ep-header-tools__search button:focus-visible {
	background: #0a638d;
	color: #fff;
}

.ep-header-tools__search-row:focus-within {
	border-color: #0170b9;
	box-shadow: 0 0 0 3px rgba(1, 112, 185, 0.18);
}

.ep-header-tools__results[hidden] {
	display: none !important;
}

.ep-header-tools__results {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 10002;
	width: min(380px, calc(100vw - 32px));
	max-height: min(520px, calc(100vh - 120px));
	overflow-x: hidden;
	overflow-y: auto;
	border: 1px solid #c7d5df;
	border-radius: 11px;
	background: #fff;
	box-shadow: 0 20px 48px rgba(7, 24, 40, 0.2);
}

.ep-header-tools__results-status {
	margin: 0;
	padding: 10px 13px;
	border-bottom: 1px solid #e0e8ed;
	color: #637889;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
}

.ep-header-tools__results-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ep-header-tools__result-option {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr);
	gap: 11px;
	align-items: center;
	min-height: 74px;
	margin: 0;
	padding: 9px 13px;
	border-bottom: 1px solid #e7edf1;
	color: #102f4b !important;
	cursor: pointer;
}

.ep-header-tools__result-option.is-active,
.ep-header-tools__result-option:hover {
	background: #eef7fc;
}

.ep-header-tools__result-option:focus-visible {
	outline: 2px solid #0170b9;
	outline-offset: -2px;
}

.ep-header-tools__result-image {
	display: block;
	width: 54px;
	height: 54px;
	margin: 0;
	object-fit: contain;
	border: 1px solid #e0e8ed;
	border-radius: 7px;
	background: #f5f8f9;
}

.ep-header-tools__result-copy {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ep-header-tools__result-name {
	display: -webkit-box;
	overflow: hidden;
	color: #102f4b;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.3;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ep-header-tools__result-price {
	color: #0170b9;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.25;
}

.ep-header-tools__results-all {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 42px;
	padding: 10px 13px;
	background: #f7fafb;
	color: #0170b9 !important;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.3;
	text-decoration: none !important;
}

.ep-header-tools__results-all::after {
	content: "\2192";
	font-size: 16px;
	line-height: 1;
}

.ep-header-tools__results-all:hover,
.ep-header-tools__results-all:focus-visible {
	background: #eaf5fb;
	color: #0a638d !important;
}

.ep-header-tools__mobile-search {
	display: none;
	position: relative;
	margin: 0;
}

.ep-header-tools__mobile-search summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid #d3dde4;
	border-radius: 8px;
	background: #fff;
	color: #102f4b;
	cursor: pointer;
}

.ep-header-tools__mobile-search summary::-webkit-details-marker {
	display: none;
}

.ep-header-tools__mobile-search summary:hover,
.ep-header-tools__mobile-search summary:focus-visible,
.ep-header-tools__mobile-search[open] summary {
	border-color: #0170b9;
	color: #0170b9;
	box-shadow: 0 0 0 3px rgba(1, 112, 185, 0.14);
}

.ep-header-tools__mobile-panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 10000;
	width: min(340px, calc(100vw - 32px));
	width: min(340px, calc(100dvw - 32px));
	max-width: calc(100vw - 32px);
	max-width: calc(100dvw - 32px);
	padding: 10px;
	border: 1px solid #d3dde4;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 18px 44px rgba(7, 17, 29, 0.18);
}

.ep-header-tools__search--mobile {
	width: 100%;
}

.ep-header-tools__search--mobile .ep-header-tools__results {
	position: static;
	width: 100%;
	max-height: min(430px, calc(100vh - 190px));
	max-height: min(430px, calc(100dvh - 190px));
	margin-top: 8px;
	box-shadow: 0 10px 24px rgba(7, 24, 40, 0.13);
}

.ep-header-tools__cart {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}

.ep-header-tools__cart-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 44px;
	height: 44px;
	border: 1px solid #d3dde4;
	border-radius: 8px;
	background: #fff;
	color: #102f4b !important;
	text-decoration: none !important;
}

.ep-header-tools__cart-fallback:hover,
.ep-header-tools__cart-fallback:focus-visible {
	border-color: #0170b9;
	color: #0170b9 !important;
	box-shadow: 0 0 0 3px rgba(1, 112, 185, 0.14);
}

.ep-header-tools__cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: #0170b9;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.ep-telegram-strip {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	margin: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.11);
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	background: #102f4b;
	color: #fff;
	box-shadow: 0 5px 16px rgba(8, 27, 43, 0.12);
}

.ep-telegram-strip__link {
	display: flex;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	min-height: 39px;
	margin: 0;
	padding: 8px 18px;
	background: transparent;
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-decoration: none !important;
	transition: background-color 160ms ease, color 160ms ease;
}

.ep-telegram-strip__link:hover {
	background: #173f60;
	color: #fff !important;
}

.ep-telegram-strip__link:focus-visible {
	position: relative;
	z-index: 1;
	outline: 2px solid #fff;
	outline-offset: -4px;
	background: #173f60;
	color: #fff !important;
}

.ep-telegram-strip__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	color: #41b9f5;
}

.ep-telegram-strip__icon svg {
	display: block;
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.ep-telegram-strip__text {
	min-width: 0;
}

.ep-telegram-strip__action {
	flex: 0 0 auto;
	color: #8ed8ff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.01em;
}

/* The native FunnelKit floating launcher is useful while browsing products,
 * but duplicates the primary controls on the dedicated Cart and Checkout. */
body.woocommerce-cart #fkcart-floating-toggler,
body.woocommerce-checkout #fkcart-floating-toggler {
	display: none !important;
}

@media (max-width: 1024px) {
	.ep-header-tools {
		gap: 7px;
	}

	.ep-header-tools__search--desktop {
		display: none;
	}

	.ep-header-tools__mobile-search {
		display: block;
		position: static;
	}
}

@media (max-width: 600px) {
	.ep-telegram-strip__link {
		gap: 7px;
		min-height: 38px;
		padding: 8px 12px;
		font-size: 12px;
	}

	.ep-telegram-strip__action {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ep-header-tools *,
	.ep-header-tools *::before,
	.ep-header-tools *::after,
	.ep-telegram-strip *,
	.ep-telegram-strip *::before,
	.ep-telegram-strip *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
