.bj-search-form.has-smart-search {
	position: relative;
}

.bj-smart-search {
	background: #ffffff;
	border: 1px solid rgba(17, 17, 17, 0.16);
	border-radius: 6px;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
	left: 0;
	max-height: min(520px, 70vh);
	overflow-y: auto;
	position: absolute;
	right: 0;
	top: calc(100% + 7px);
	z-index: 1000;
}

.bj-smart-search__item {
	align-items: center;
	border-bottom: 1px solid rgba(17, 17, 17, 0.08);
	color: #17181b;
	display: grid;
	gap: 11px;
	grid-template-columns: 58px minmax(0, 1fr);
	min-height: 76px;
	padding: 9px 11px;
	text-decoration: none;
}

.bj-smart-search__item:last-child {
	border-bottom: 0;
}

.bj-smart-search__item:hover,
.bj-smart-search__item.is-active {
	background: #fff5c4;
	color: #111111;
}

.bj-smart-search__item img {
	background: #f6f6f6;
	border: 1px solid rgba(17, 17, 17, 0.08);
	border-radius: 5px;
	height: 58px;
	object-fit: contain;
	width: 58px;
}

.bj-smart-search__copy {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.bj-smart-search__copy small {
	color: #6d7077;
	font-size: 0.68rem;
	font-weight: 800;
}

.bj-smart-search__copy strong {
	font-size: 0.83rem;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.bj-smart-search__price,
.bj-smart-search__price .amount {
	color: #111111;
	font-size: 0.78rem;
	font-weight: 800;
}

.bj-smart-search__price del {
	color: #85878c;
	font-size: 0.7rem;
	margin-right: 5px;
}

.bj-smart-search__status {
	color: #646970;
	font-size: 0.82rem;
	padding: 17px;
	text-align: center;
}

.bj-smart-search__status.is-loading::before {
	animation: bj-smart-search-spin 0.75s linear infinite;
	border: 2px solid rgba(17, 17, 17, 0.18);
	border-right-color: #111111;
	border-radius: 50%;
	content: "";
	display: inline-block;
	height: 13px;
	margin-right: 7px;
	vertical-align: -2px;
	width: 13px;
}

body[data-bj-theme="dark"] .bj-smart-search {
	background: #2b2c30;
	border-color: rgba(255, 255, 255, 0.15);
}

body[data-bj-theme="dark"] .bj-smart-search__item {
	border-color: rgba(255, 255, 255, 0.09);
	color: #f4f6f8;
}

body[data-bj-theme="dark"] .bj-smart-search__item:hover,
body[data-bj-theme="dark"] .bj-smart-search__item.is-active {
	background: #434028;
	color: #ffffff;
}

body[data-bj-theme="dark"] .bj-smart-search__copy small,
body[data-bj-theme="dark"] .bj-smart-search__status {
	color: #c5ccd5;
}

body[data-bj-theme="dark"] .bj-smart-search__price,
body[data-bj-theme="dark"] .bj-smart-search__price .amount {
	color: #ffffff;
}

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

@media (max-width: 760px) {
	.bj-smart-search {
		max-height: min(430px, 58vh);
	}

	.bj-smart-search__item {
		grid-template-columns: 52px minmax(0, 1fr);
		min-height: 68px;
	}

	.bj-smart-search__item img {
		height: 52px;
		width: 52px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bj-smart-search__status.is-loading::before {
		animation: none;
	}
}
