/**
 * Header product search — pill field (RTL-first).
 */

.header-end-cluster {
	display: flex;
	flex-direction: row;
	align-items: center;
	flex: none;
	flex-grow: 0;
	order: 4;
	gap: 12px;
	margin-inline-start: auto;
}

.header-search {
	flex: none;
	flex-grow: 0;
	order: 2;
	width: 224px;
	max-width: 100%;
}

.header-search__form {
	margin: 0;
}

.header-search__field-wrap {
	position: relative;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: 224px;
	max-width: 100%;
	height: 41.6px;
}

.header-search__input {
	box-sizing: border-box;
	width: 100%;
	height: 41.6px;
	margin: 0;
	padding-block: 8px;
	padding-inline: 16px 40px;
	border: 0.8px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	font-family: var(--onoff-font-family);
	font-size: 16px;
	font-weight: 400;
	line-height: 30px;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.header-search__input::placeholder {
	color: rgba(255, 255, 255, 0.7);
	opacity: 1;
}

.header-search__input:hover {
	border-color: rgba(255, 255, 255, 0.45);
}

.header-search__input:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.55);
	background: rgba(255, 255, 255, 0.28);
	box-shadow: 0 0 0 3px rgba(242, 251, 4, 0.35);
}

.header-search__submit {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	color: rgba(255, 255, 255, 0.7);
	transform: translateY(-50%);
	cursor: pointer;
	transition: color 0.2s ease;
}

.header-search__submit:hover,
.header-search__submit:focus-visible {
	color: #fff;
	outline: none;
}

.header-search__icon {
	display: block;
	width: 16px;
	height: 16px;
}

/* Hide browser search cancel where it clashes with custom icon */
.header-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

@media (max-width: 899px) {
	.header-search {
		display: none;
	}
}
