.odk-product-search {
	position: relative;
	width: min(100%, 560px);
	max-width: 100%;
	flex: 0 1 560px;
}

.odk-product-search__form {
	position: relative;
	display: flex;
	align-items: stretch;
	width: 100%;
}

.odk-product-search__input {
	width: 100%;
	min-width: 0;
	height: 42px;
	padding: 0 46px 0 14px;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 4px;
	background: #fff;
	color: var(--global-palette3, #1a202c);
	font-size: 0.96rem;
	line-height: 1;
}

.odk-product-search__input:focus {
	border-color: var(--odk-accent, #f08b80);
	box-shadow: 0 0 0 2px rgba(240, 139, 128, 0.18);
	outline: none;
}

.odk-product-search__submit,
.odk-product-search__mobile-trigger,
.odk-product-search__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--global-palette3, #1a202c);
	box-shadow: none;
	cursor: pointer;
}

.odk-product-search__submit {
	position: absolute;
	top: 0;
	right: 0;
	width: 42px;
	height: 42px;
}

.odk-product-search__submit:hover,
.odk-product-search__submit:focus,
.odk-product-search__mobile-trigger:hover,
.odk-product-search__mobile-trigger:focus,
.odk-product-search__close:hover,
.odk-product-search__close:focus {
	background: transparent;
	color: var(--odk-accent, #f08b80);
	box-shadow: none;
}

.odk-product-search__icon {
	width: 20px;
	height: 20px;
}

.odk-product-search__mobile-trigger {
	display: none;
	width: 42px;
	height: 42px;
}

.odk-product-search__suggestions {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	left: 0;
	z-index: 10020;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.odk-product-search__item {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 2px 12px;
	align-items: start;
	padding: 10px 12px;
	color: var(--global-palette3, #1a202c);
	text-decoration: none;
}

.odk-product-search__item + .odk-product-search__item {
	border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.odk-product-search__item:hover,
.odk-product-search__item:focus {
	background: var(--global-palette8, #f7fafc);
	color: var(--global-palette3, #1a202c);
	text-decoration: none;
}

.odk-product-search__thumb {
	grid-row: 1 / span 2;
	width: 48px;
	height: 48px;
	object-fit: cover;
	background: var(--global-palette8, #f7fafc);
}

.odk-product-search__name {
	grid-column: 2;
	overflow: hidden;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.28;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.odk-product-search__price {
	grid-column: 2;
	justify-self: start;
	color: var(--odk-accent, #f08b80);
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.1;
	white-space: nowrap;
}

.odk-product-search__price del {
	display: none;
}

.odk-product-search__empty {
	padding: 12px;
	color: var(--global-palette5, #4a5568);
	font-size: 0.92rem;
}

.odk-product-search__modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	pointer-events: none;
}

.odk-product-search__backdrop {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(0, 0, 0, 0.42);
	box-shadow: none;
	cursor: pointer;
	opacity: 0;
	transition: opacity 180ms ease;
}

.odk-product-search__panel {
	position: relative;
	z-index: 1;
	width: min(100% - 28px, 520px);
	margin: 18px auto 0;
	padding: 52px 16px 18px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
	opacity: 0;
	transform: translateY(-10px);
	transition: opacity 180ms ease, transform 240ms ease;
}

.odk-product-search__modal.is-open {
	pointer-events: auto;
}

.odk-product-search__modal.is-open .odk-product-search__backdrop,
.odk-product-search__modal.is-open .odk-product-search__panel {
	opacity: 1;
}

.odk-product-search__modal.is-open .odk-product-search__panel {
	transform: translateY(0);
}

.odk-product-search__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 38px;
	height: 38px;
	font-size: 28px;
	line-height: 1;
}

.odk-product-search__form--mobile .odk-product-search__suggestions {
	position: static;
	right: auto;
	left: auto;
	width: 100%;
	margin-top: 10px;
	box-shadow: none;
}

.odk-product-search__form--mobile {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

@media (min-width: 768px) {
	.odk-product-search {
		min-width: 450px;
	}
}

@media (max-width: 767px) {
	.odk-product-search {
		width: auto;
		min-width: 0;
		flex: 0 0 auto;
	}

	.odk-product-search__form--desktop {
		display: none;
	}

	.odk-product-search__mobile-trigger {
		display: inline-flex;
	}

	.odk-product-search__item {
		gap: 2px 10px;
	}

	.odk-product-search__name {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		text-overflow: clip;
		white-space: normal;
	}

	.odk-product-search__price {
		font-size: 0.78rem;
		line-height: 1.2;
		white-space: normal;
	}
}

@media (prefers-reduced-motion: reduce) {
	.odk-product-search__backdrop,
	.odk-product-search__panel {
		transition: none;
	}
}
