.atom-search-autocomplete__field {
	position: relative;
	min-width: 0;
	flex: 1 1 auto;
}

.atom-search-autocomplete__input::placeholder {
	color: #4e5c53;
	opacity: 1;
}

.atom-search-autocomplete__panel {
	position: absolute;
	z-index: 30;
	top: calc(100% + 6px);
	right: 0;
	left: 0;
	max-height: min(420px, 60vh);
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid var(--atom-line, #aeb8b1);
	border-radius: var(--atom-radius-lg, 8px);
	background: var(--atom-surface, #ffffff);
	box-shadow: 0 6px 8px rgba(20, 28, 22, 0.14);
}

.atom-search-autocomplete__panel[hidden] {
	display: none;
}

.atom-search-autocomplete__option {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	min-height: 48px;
	padding: 10px 12px;
	color: #162018;
	text-decoration: none;
}

.atom-search-autocomplete__option + .atom-search-autocomplete__option,
.atom-search-autocomplete__state + .atom-search-autocomplete__option,
.atom-search-autocomplete__generation-group + .atom-search-autocomplete__option {
	border-top: 1px solid #e2e7e3;
}

.atom-search-autocomplete__option:hover {
	background: #edf4ef;
	color: #0d1911;
	text-decoration: none;
}

.atom-search-autocomplete__option.is-active,
.atom-search-autocomplete__option[aria-selected="true"] {
	background: #e3f0e7;
	box-shadow: inset 0 0 0 2px #006b2c;
	color: #0d1911;
	text-decoration: none;
}

.atom-search-autocomplete__option--product {
	grid-template-columns: 56px minmax(0, 1fr);
}

.atom-search-autocomplete__generation-group {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	padding: 11px 12px 12px;
	background: var(--atom-paper, #fbfaf6);
}

.atom-search-autocomplete__generation-heading {
	grid-column: 1 / -1;
	color: var(--atom-muted, #647068);
	font-size: 12px;
	font-weight: 750;
	line-height: 1.35;
}

.atom-search-autocomplete__option--generation {
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid var(--atom-line, #cdd5cf);
	border-radius: var(--atom-radius-md, 6px);
	background: var(--atom-surface, #ffffff);
}

.atom-search-autocomplete__option--generation + .atom-search-autocomplete__option--generation {
	border-top: 1px solid var(--atom-line, #cdd5cf);
}

.atom-search-autocomplete__generation-result {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	color: var(--atom-brand, #004f1f);
	font-size: 12px;
	font-weight: 850;
	white-space: nowrap;
}

.atom-search-autocomplete__arrow {
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
}

.atom-search-autocomplete__media {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	overflow: hidden;
	border-radius: 6px;
	background: #edf1ee;
}

.atom-search-autocomplete__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.atom-search-autocomplete__media--placeholder {
	color: #004f1f;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.04em;
}

.atom-search-autocomplete__body,
.atom-search-autocomplete__main {
	min-width: 0;
}

.atom-search-autocomplete__main {
	display: block;
	font-size: 14px;
	font-weight: 850;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.atom-search-autocomplete__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	align-items: baseline;
	margin-top: 4px;
	color: #526158;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}

.atom-search-autocomplete__meta strong {
	color: #004f1f;
	font-size: 13px;
	font-weight: 900;
}

.atom-search-autocomplete__count--hint {
	border-radius: 999px;
	background: #e7f0e9;
	color: #004f1f;
	padding: 2px 7px;
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
}

.atom-search-autocomplete__state {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 11px 13px;
	color: #34433a;
	font-size: 14px;
	font-weight: 750;
	line-height: 1.4;
}

.atom-search-autocomplete__state--loading::before {
	content: "";
	width: 16px;
	height: 16px;
	margin-right: 9px;
	border: 2px solid rgba(0, 79, 31, 0.25);
	border-top-color: #004f1f;
	border-radius: 50%;
	animation: atom-search-spin 700ms linear infinite;
}

.atom-search-autocomplete__state--error {
	color: #6c2e20;
}

.atom-search-autocomplete__status {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

@keyframes atom-search-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 560px) {
	.atom-search-autocomplete__panel {
		max-height: min(360px, 55vh);
	}

	.atom-search-autocomplete__option {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.atom-search-autocomplete__generation-group {
		grid-template-columns: 1fr;
	}

	.atom-search-autocomplete__option--generation {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 8px;
	}

	.atom-search-autocomplete__option--product {
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 10px;
	}

	.atom-search-autocomplete__media {
		width: 48px;
		height: 48px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.atom-search-autocomplete__state--loading::before {
		animation: none;
		border-color: #004f1f;
		opacity: 0.65;
	}
}
