#searchDataList,
.search-results-panel {
	width: 100%;
	max-width: calc(100vw - 24px);
	display: none;
	z-index: 9999;
	left: 0;
	top: calc(100% + 8px);
}

.search-spinner {
	display: none;
	position: absolute;
	right: 78px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 21;
}

#searchDataList .search-suggest-panel,
.search-results-panel .search-suggest-panel {
	border: 1px solid #dce3ef;
	border-radius: 2px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(15, 37, 78, 0.18);
	overflow: hidden;
}

#searchDataList .search-layout,
.search-results-panel .search-layout {
	display: flex;
	align-items: stretch;
	min-height: 390px;
}

#searchDataList .search-left,
.search-results-panel .search-left {
	background: #fff;
	border-right: 1px solid #dce3ef;
	min-height: 390px;
	flex: 0 0 210px;
	max-width: 210px;
}

#searchDataList .search-tab-button,
.search-results-panel .search-tab-button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	border: 0;
	background: transparent;
	padding: 13px 16px;
	color: #3d4657;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	cursor: pointer;
	border-bottom: 1px solid #dce3ef;
}

#searchDataList .search-tab-button.active,
.search-results-panel .search-tab-button.active {
	background: #173fae;
	color: #fff;
}

#searchDataList .search-tab-button .fa,
.search-results-panel .search-tab-button .fa {
	font-size: 12px;
}

#searchDataList .search-tab-pane,
.search-results-panel .search-tab-pane {
	display: none;
	padding: 0;
}

#searchDataList .search-tab-pane.active,
.search-results-panel .search-tab-pane.active {
	display: block;
}

#searchDataList .search-left-link,
.search-results-panel .search-left-link {
	display: block;
	padding: 11px 16px;
	color: #1f2c45;
	font-size: 12px;
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid #edf1f7;
}

#searchDataList .search-left-link:hover,
#searchDataList .search-left-link.is-active,
.search-results-panel .search-left-link:hover,
.search-results-panel .search-left-link.is-active {
	background: #edf3ff;
	color: #173fae;
}

#searchDataList .search-main,
.search-results-panel .search-main {
	padding: 14px 12px 12px;
	flex: 1 1 auto;
	min-width: 0;
	background: #fff;
}

#searchDataList .search-side-promos,
.search-results-panel .search-side-promos {
	flex: 0 0 248px;
	max-width: 248px;
	padding: 14px 14px 14px 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #fff;
}

#searchDataList .search-side-promo,
.search-results-panel .search-side-promo {
	display: block;
	border: 1px solid #edf1f7;
	overflow: hidden;
	background: #f7f9fd;
	text-decoration: none;
}

#searchDataList .search-side-promo img,
.search-results-panel .search-side-promo img {
	display: block;
	width: 100%;
	height: 110px;
	object-fit: cover;
}

#searchDataList .search-grid,
.search-results-panel .search-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

#searchDataList .search-card,
.search-results-panel .search-card {
	border: 1px solid #edf1f7;
	padding: 8px 8px 10px;
	background: #fff;
	height: 100%;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	position: relative;
}

#searchDataList .search-card:hover,
.search-results-panel .search-card:hover {
	border-color: #c7d8ff;
	box-shadow: 0 8px 18px rgba(15, 58, 144, 0.08);
}

#searchDataList .search-card-media,
.search-results-panel .search-card-media {
	display: block;
	position: relative;
	text-align: center;
	margin-bottom: 3px;
	min-height: 90px;
}

#searchDataList .search-card img,
.search-results-panel .search-card img {
	width: 100%;
	height: 90px;
	object-fit: contain;
}

#searchDataList .search-card-badge,
.search-results-panel .search-card-badge {
	position: absolute;
	top: 0;
	left: 0;
	background: #79c447;
	color: #fff;
	font-size: 9px;
	font-weight: 600;
	line-height: 1;
	padding: 3px 6px;
	border-radius: 2px;
	text-transform: lowercase;
}

#searchDataList .search-card-rating,
.search-results-panel .search-card-rating {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1px;
	min-height: 12px;
	margin: 2px 0 4px;
}

#searchDataList .search-card-star,
.search-results-panel .search-card-star {
	font-size: 9px;
	line-height: 1;
	color: #cdd4e1;
}

#searchDataList .search-card-star.is-on,
.search-results-panel .search-card-star.is-on {
	color: #f59a23;
}

#searchDataList .search-card-title,
.search-results-panel .search-card-title {
	color: #3b4a66;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.3;
	min-height: 50px;
	margin: 0 0 6px;
	text-align: center;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-decoration: none;
}

#searchDataList .search-card-title:hover,
#searchDataList .search-card-title.is-active,
.search-results-panel .search-card-title:hover,
.search-results-panel .search-card-title.is-active {
	color: #0f4abf;
}

#searchDataList .search-card-price,
.search-results-panel .search-card-price {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 4px;
	margin: auto 0 8px;
	min-height: 20px;
	white-space: nowrap;
	flex-wrap: nowrap;
}

#searchDataList .search-card-price-main,
.search-results-panel .search-card-price-main {
	color: #1d50c2;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

#searchDataList .search-card-price-old,
.search-results-panel .search-card-price-old {
	color: #a2aaba;
	font-size: 8px;
	text-decoration: line-through;
	line-height: 1;
}

#searchDataList .search-card-btn,
.search-results-panel .search-card-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: #1f2630;
	color: #fff;
	border-radius: 4px;
	padding: 8px 5px;
	font-size: 10px;
	font-weight: 600;
	text-decoration: none;
	border: 0;
	width: 100%;
	white-space: nowrap;
}

#searchDataList .search-card-btn.disabled,
.search-results-panel .search-card-btn.disabled {
	background: #8c97a8;
	cursor: not-allowed;
}

#searchDataList .search-empty,
.search-results-panel .search-empty {
	color: #6c7892;
	font-size: 14px;
	padding: 10px 14px;
}

#searchDataList .search-more,
.search-results-panel .search-more {
	text-align: right;
	margin-top: 10px;
}

#searchDataList .search-more a,
.search-results-panel .search-more a {
	color: #f45000;
	font-weight: 700;
	text-decoration: none;
}

#searchDataList .search-more a.is-active,
.search-results-panel .search-more a.is-active {
	text-decoration: underline;
}

#searchDataList .search-suggest-panel-default .search-tab-pane,
.search-results-panel .search-suggest-panel-default .search-tab-pane {
	display: none !important;
}

.search-notice {
	margin-bottom: 10px;
	border-radius: 4px;
}

.search-notice-info {
	background: #f5f8ff;
	border: 1px solid #d7e2ff;
}

.search-notice-warn {
	background: #fff8ec;
	border: 1px solid #ffe1ae;
}

.search-highlight {
	background: #fff1bd;
	color: inherit;
	padding: 0;
}

.search-popular {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0 0 14px;
}

.search-popular-title {
	font-size: 12px;
	font-weight: 700;
	color: #1f2c45;
}

.search-popular-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.search-popular-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 10px;
	border-radius: 999px;
	background: #edf3ff;
	color: #173fae;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.search-popular-link:hover,
.search-popular-link.is-active {
	background: #173fae;
	color: #fff;
}

.samfi-reco-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(10, 24, 46, 0.56);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 32px;
}

.samfi-reco-dialog {
	width: min(840px, calc(100vw - 64px));
	max-width: 840px;
	max-height: calc(100vh - 64px);
	overflow-y: auto;
	background: #f1f3f6;
	border-radius: 4px;
	box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
	position: relative;
	padding: 22px 24px 20px;
	margin: 0;
	gap: 14px;
	display: flex;
	flex-direction: column;
	font-family: "Segoe UI", Arial, sans-serif;
}

.samfi-reco-dialog::-webkit-scrollbar {
	width: 8px;
}

.samfi-reco-dialog::-webkit-scrollbar-thumb {
	background: #c5ccda;
	border-radius: 8px;
}

.samfi-reco-content-inner {
	max-width: 100%;
	margin: 0;
}

.samfi-reco-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 24px;
	height: 24px;
	border: 0;
	background: transparent;
	color: #1f2430;
	font-size: 26px;
	line-height: 1;
	font-weight: 400;
	cursor: pointer;
	padding: 0;
}

.samfi-reco-loading {
	background: #fff;
	border-radius: 3px;
	padding: 14px;
	color: #45516a;
	font-size: 16px;
	border: 1px solid #dfe5f0;
}

.samfi-reco-title-main {
	font-size: 18px;
	line-height: 1.35;
	font-weight: 700;
	color: #0f141d;
	margin: 0 0 10px;
	letter-spacing: 0;
}

.samfi-reco-banner-wrap {
	margin: 0 0 10px;
}

.samfi-reco-banner-link {
	display: inline-block;
	max-width: 150px;
	text-decoration: none;
}

.samfi-reco-banner-img {
	width: 100%;
	height: auto;
	border-radius: 2px;
	display: block;
	border: 1px solid #d7deea;
}

.samfi-reco-title-sub {
	font-size: 18px;
	line-height: 1.3;
	color: #10151e;
	margin: 4px 0 12px;
	font-weight: 700;
	letter-spacing: 0;
}

.samfi-reco-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 14px;
}

.samfi-reco-card {
	background: #fff;
	border: 1px solid #e2e7f0;
	border-radius: 2px;
	padding: 8px 8px 10px;
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.samfi-reco-card-image {
	display: block;
	position: relative;
	border-radius: 2px;
	overflow: hidden;
	text-decoration: none;
	min-height: 148px;
	background: #fff;
}

.samfi-reco-card-image img {
	width: 100%;
	height: 148px;
	object-fit: contain;
	display: block;
}

.samfi-reco-badge {
	position: absolute;
	top: 6px;
	left: 6px;
	display: inline-block;
	border-radius: 2px;
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	padding: 3px 7px;
	z-index: 2;
	text-transform: lowercase;
}

.samfi-reco-badge-stock {
	background: #7bc145;
}

.samfi-reco-badge-preorder {
	background: #f2a310;
}

.samfi-reco-badge-out {
	background: #d9534f;
}

.samfi-reco-rating {
	margin-top: 6px;
	min-height: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
}

.samfi-reco-star {
	font-size: 11px;
	color: #c9d0dd;
	line-height: 1;
}

.samfi-reco-star.is-on {
	color: #f49d24;
}

.samfi-reco-card-title {
	color: #2b3343;
	text-decoration: none;
	font-size: 10px;
	line-height: 1.28;
	margin-top: 6px;
	min-height: 50px;
	font-weight: 500;
	text-align: center;
	display: block;
	overflow: visible;
	word-break: break-word;
}

.samfi-reco-card-title:hover {
	color: #0f4abf;
}

.samfi-reco-card-price {
	margin-top: auto;
	padding-top: 8px;
	margin-bottom: 0;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	gap: 4px;
	flex-wrap: nowrap;
	white-space: nowrap;
	min-height: 24px;
}

.samfi-reco-price-main {
	color: #1248b8;
	font-size: 17px;
	line-height: 1;
	font-weight: 700;
	flex: 0 0 auto;
	white-space: nowrap;
}

.samfi-reco-price-old {
	color: #9aa3b3;
	font-size: 10px;
	text-decoration: line-through;
	flex: 0 0 auto;
	white-space: nowrap;
}

.samfi-reco-card-btn {
	display: none !important;
}

.samfi-reco-empty {
	background: #fff;
	border: 1px solid #dde4f0;
	border-radius: 4px;
	padding: 12px;
	color: #44506a;
	font-size: 14px;
	margin-bottom: 12px;
}

.samfi-reco-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

.samfi-reco-action {
	min-width: 104px;
	border-radius: 4px;
	border: 1px solid #b8c6de;
	padding: 9px 14px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	line-height: 1;
	white-space: nowrap;
}

.samfi-reco-action-light {
	min-width: 150px;
	background: #f8fbff;
	color: #1f355f;
}

.samfi-reco-action-light:hover {
	background: #edf3fb;
	color: #1f355f;
}

.samfi-reco-action-primary {
	min-width: 98px;
	background: #1b43b6;
	border-color: #1b43b6;
	color: #fff;
}

.samfi-reco-action-primary:hover {
	background: #153a9d;
	border-color: #153a9d;
	color: #fff;
}

@media (min-width: 1400px) {
	#searchDataList,
	.search-results-panel {
		width: 1120px;
		left: -210px;
	}
}

@media (min-width: 1200px) and (max-width: 1399px) {
	#searchDataList,
	.search-results-panel {
		width: 1040px;
		left: -150px;
	}

	#searchDataList .search-side-promos,
	.search-results-panel .search-side-promos {
		flex-basis: 220px;
		max-width: 220px;
	}

	#searchDataList .search-side-promo img,
	.search-results-panel .search-side-promo img {
		height: 102px;
	}
}

@media (max-width: 1399px) {
	#searchDataList .search-grid,
	.search-results-panel .search-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1199px) {
	#searchDataList,
	.search-results-panel {
		width: 100%;
		left: 0;
	}

	#searchDataList .search-side-promos,
	.search-results-panel .search-side-promos {
		display: none;
	}

	.samfi-reco-overlay {
		padding: 20px;
	}

	.samfi-reco-dialog {
		width: min(840px, calc(100vw - 40px));
		max-height: calc(100vh - 40px);
		padding: 18px 18px 16px;
	}
}

@media (max-width: 1024px) {
	#searchDataList .search-left,
	.search-results-panel .search-left {
		min-height: auto;
		flex: 0 0 200px;
		max-width: 200px;
	}

	#searchDataList .search-grid,
	.search-results-panel .search-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.samfi-reco-dialog {
		width: min(720px, calc(100vw - 28px));
		padding: 16px 14px 14px;
	}

	.samfi-reco-title-main,
	.samfi-reco-title-sub {
		font-size: 16px;
	}

	.samfi-reco-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	#searchDataList .search-layout,
	.search-results-panel .search-layout {
		flex-wrap: wrap;
	}

	#searchDataList .search-left,
	#searchDataList .search-main,
	.search-results-panel .search-left,
	.search-results-panel .search-main {
		flex: 0 0 100%;
		max-width: 100%;
	}

	#searchDataList .search-left,
	.search-results-panel .search-left {
		border-right: 0;
		border-bottom: 1px solid #dce3ef;
	}
}

@media (max-width: 640px) {
	#searchDataList .search-grid,
	.search-results-panel .search-grid {
		grid-template-columns: 1fr;
	}

	.search-popular-links {
		gap: 6px;
	}

	.samfi-reco-dialog {
		width: calc(100% - 12px);
		max-height: calc(100vh - 16px);
		padding: 14px 10px 12px;
	}

	.samfi-reco-title-main {
		font-size: 15px;
		margin-right: 18px;
	}

	.samfi-reco-title-sub {
		font-size: 15px;
	}

	.samfi-reco-banner-link {
		max-width: 122px;
	}

	.samfi-reco-grid {
		grid-template-columns: 1fr;
	}

	.samfi-reco-actions {
		flex-direction: column;
	}

	.samfi-reco-action {
		width: 100%;
		min-width: 0;
	}
}
