.rsc-product-finder {
	margin: 8px 0 32px;
	padding: 18px 18px 8px;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
	color: #111827;
}

.rsc-product-finder .rsc-pf-header {
	display: flex;
	align-items: flex-end;
	gap: 14px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.rsc-product-finder .rsc-pf-header h3 {
	margin: 0 0 8px;
	color: #111827;
	font-size: 22px;
	font-weight: 650;
	line-height: 1.2;
	flex: 1 0 100%;
}

.rsc-product-finder [hidden] {
	display: none !important;
}

.rsc-product-finder select {
	width: 100%;
	min-width: 0;
	height: 42px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	padding: 0 12px;
	background: #fff;
	color: #111827;
	font-size: 14px;
}

.rsc-product-finder select:focus {
	border-color: #111827;
	outline: none;
	box-shadow: 0 0 0 1px #111827;
}

.rsc-product-finder #rsc-pf-search {
	flex: 0 1 320px;
	width: min(320px, 100%);
	height: 42px;
	margin: 0 0 0 auto;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	padding: 0 12px;
	background: #fff;
	color: #111827;
	font-size: 14px;
}

.rsc-product-finder #rsc-pf-search:focus {
	border-color: #111827;
	outline: none;
	box-shadow: 0 0 0 1px #111827;
}

.rsc-product-finder #rsc-pf-category {
	width: min(360px, 100%);
	flex: 1 1 240px;
}

.rsc-product-finder .rsc-pf-reset {
	height: 42px;
	margin-left: 0;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	padding: 0 14px;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	cursor: pointer;
}

.rsc-product-finder .rsc-pf-reset:hover {
	background: #f9fafb;
	border-color: #9ca3af;
}

.rsc-product-finder .rsc-pf-attribute-group {
	margin: 4px 0 16px;
	padding: 14px;
	border-radius: 12px;
	background: #f8fafc;
}

.rsc-product-finder .rsc-pf-layout-horizontal {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px;
}

.rsc-product-finder .rsc-pf-layout-vertical {
	display: grid;
	gap: 12px;
	max-width: 420px;
}

.rsc-product-finder .rsc-pf-filter {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	font-weight: 600;
}

.rsc-product-finder .rsc-pf-filter-name {
	color: #374151;
	font-size: 12px;
	letter-spacing: 0.01em;
}

.rsc-product-finder select option.rsc-pf-disabled {
	color: #999;
}

.rsc-product-finder .rsc-pf-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.rsc-product-finder #rsc-pf-submit {
	background: #111827;
	color: #fff;
	padding: 12px 22px;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 650;
	white-space: nowrap;
}

.rsc-product-finder #rsc-pf-submit:hover {
	background: #1f2937;
}

.rsc-product-finder #rsc-pf-submit:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.rsc-product-finder .rsc-pf-hint {
	color: #b91c1c;
	font-size: 18px;
	font-weight: 700;
}

.rsc-product-finder .rsc-pf-sort {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.rsc-product-finder .rsc-pf-sort select {
	width: auto;
	min-width: 180px;
}

.rsc-product-finder .rsc-pf-list {
	overflow-x: auto;
	margin: 16px 0;
}

.rsc-product-finder .rsc-pf-list-header,
.rsc-product-finder .rsc-pf-products li {
	min-width: 680px;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 120px minmax(200px, 1fr) 110px 90px 120px;
	align-items: center;
	gap: 10px;
}

.rsc-product-finder .rsc-pf-list-header {
	padding: 10px 12px;
	color: #6b7280;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-bottom: 1px solid #e5e7eb;
}

.rsc-product-finder .rsc-pf-list-header div:nth-child(1),
.rsc-product-finder .rsc-pf-list-header div:nth-child(3),
.rsc-product-finder .rsc-pf-list-header div:nth-child(4),
.rsc-product-finder .rsc-pf-list-header div:nth-child(5) {
	text-align: center;
}

.rsc-product-finder .rsc-pf-products {
	list-style: none;
	padding: 0;
	margin: 0;
}

.rsc-product-finder .rsc-pf-products li {
	padding: 12px;
	border-bottom: 1px solid #f3f4f6;
}

.rsc-product-finder .rsc-pf-products li:hover {
	background: #f9fafb;
}

.rsc-product-finder .rsc-pf-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
}

.rsc-product-finder .rsc-pf-thumb img {
	max-width: 110px;
	width: 75%;
	height: auto;
	object-fit: contain;
}

.rsc-product-finder .rsc-pf-no-thumb {
	font-size: 12px;
	color: #6b7280;
	text-align: center;
}

.rsc-product-finder .rsc-pf-title {
	color: #111827;
	font-weight: 650;
	text-decoration: none;
}

.rsc-product-finder .rsc-pf-title:hover {
	text-decoration: underline;
}

.rsc-product-finder .rsc-pf-price {
	font-weight: 600;
	color: #111;
	white-space: nowrap;
	text-align: center;
	justify-self: center;
}

.rsc-product-finder .rsc-pf-compare-label,
.rsc-product-finder .rsc-pf-cart,
.rsc-product-finder .rsc-pf-cart-form {
	justify-self: center;
	position: relative;
	z-index: 2;
	pointer-events: auto;
}

.rsc-product-finder .rsc-pf-cart-form {
	margin: 0;
}

.rsc-product-finder .rsc-pf-compare {
	width: 18px;
	height: 18px;
	margin: 0;
	cursor: pointer;
	position: static;
	opacity: 1;
	pointer-events: auto;
	appearance: auto;
}

.rsc-product-finder .rsc-pf-cart {
	display: inline-block;
	background: #111827;
	color: #fff;
	padding: 8px 14px;
	text-decoration: none;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 650;
	text-align: center;
	cursor: pointer;
	border: 0;
	font-family: inherit;
}

.rsc-product-finder .rsc-pf-pagination {
	display: flex;
	gap: 10px;
	margin-top: 10px;
}

.rsc-product-finder .rsc-pf-pagination a {
	background: #f5f7fb;
	padding: 6px 10px;
	border-radius: 4px;
	text-decoration: none;
	border: 1px solid #dfe3ea;
	color: #0f172a;
}

.rsc-product-finder .rsc-pf-empty {
	margin-top: 16px;
}

.rsc-pf-compare-bar {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	background: #0f172a;
	color: #fff;
	padding: 12px 16px;
	border-radius: 10px;
	display: none;
	align-items: center;
	justify-content: space-between;
	z-index: 2147483000;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	max-width: 600px;
	margin: 0 auto;
}

.rsc-pf-compare-bar .rsc-pf-compare-actions,
.rsc-pf-modal-header .rsc-pf-compare-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

#rsc-pf-compare-count {
	font-weight: 600;
}

#rsc-pf-compare-open {
	background: #22c55e;
	border: none;
	color: #0b2414;
	padding: 10px 14px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 700;
}

#rsc-pf-compare-download,
#rsc-pf-compare-download-modal {
	background: #3b82f6;
	border: none;
	color: #fff;
	padding: 10px 14px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 700;
}

#rsc-pf-compare-clear {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.5);
	color: #fff;
	padding: 10px 12px;
	border-radius: 8px;
	cursor: pointer;
}

.rsc-pf-compare-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 2147483001;
}

.rsc-pf-modal-content {
	background: #fff;
	max-width: 95vw;
	width: 1100px;
	max-height: 90vh;
	overflow: auto;
	border-radius: 10px;
	padding: 16px;
}

.rsc-pf-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.rsc-pf-modal-header h3 {
	margin: 0;
}

#rsc-pf-compare-close {
	background: transparent;
	border: 0;
	font-size: 24px;
	cursor: pointer;
	line-height: 1;
}

.rsc-pf-compare-table {
	width: 100%;
	border-collapse: collapse;
}

.rsc-pf-compare-table th,
.rsc-pf-compare-table td {
	border: 1px solid #e5e7eb;
	padding: 10px;
	text-align: left;
	vertical-align: top;
}

.rsc-pf-compare-table img {
	max-width: 140px;
	height: auto;
	display: block;
}
