/**
 * Supplier Search Form styles.
 *
 * Visual language matches the Product Navigation widget so the two render
 * consistently when placed on the same page.
 */

p:has(> .ssf),
p + .ssf,
.ssf + p:empty {
	margin: 0;
	padding: 0;
	line-height: 0;
	font-size: 0;
}
p:empty + .ssf,
.ssf + p:empty {
	display: none;
}

.ssf {
	max-width: 560px;
}
.ssf-card {
	border: 1px solid #e7ebf3;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(18, 24, 38, 0.08);
	padding: 16px;
}
.ssf-title {
	margin: 0 0 14px 0;
	font-weight: 850;
	font-size: 16px;
	color: #121826;
	letter-spacing: -0.01em;
}
.ssf-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}
@media (min-width: 480px) {
	.ssf-grid {
		grid-template-columns: 1fr 1fr;
	}
	.ssf-grid .ssf-field[data-field-type="product_category"] {
		grid-column: 1 / -1;
	}
}
.ssf-field {
	min-width: 0;
}
.ssf-label {
	font-size: 12px;
	color: #5b6472;
	margin: 0 0 7px 0;
	font-weight: 800;
	letter-spacing: -0.01em;
}
.ssf-required {
	color: #d92d20;
	font-weight: 700;
	margin-left: 2px;
}
.ssf-card select.ssf-select,
.ssf-card input.ssf-input {
	width: 100%;
	height: 46px;
	border: 1px solid #e7ebf3;
	border-radius: 12px;
	background: #fff;
	padding: 10px 12px;
	font-size: 14px;
	font-weight: 650;
	color: #121826;
	outline: none;
}
.ssf-card select.ssf-select:focus,
.ssf-card input.ssf-input:focus {
	border-color: #cbd5e1;
	box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}
.ssf-actions {
	margin-top: 14px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.ssf-btn {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid #111827;
	background: #111827;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.12s ease;
}
.ssf-btn:hover {
	background: #0b1220;
}
.ssf-hint {
	margin-top: 10px;
	font-size: 13px;
	color: #5b6472;
	min-height: 1em;
}
.ssf-hint.is-error {
	color: #d92d20;
}
.ssf-hint.is-success {
	color: #15803d;
}

/* Select2 — scoped theme so it matches the card */
.ssf .select2-container {
	width: 100% !important;
	line-height: normal;
}
.ssf .select2-container--default .select2-selection--single {
	height: 46px;
	border: 1px solid #e7ebf3;
	border-radius: 12px;
	background: #fff;
	display: flex;
	align-items: center;
	padding: 0 42px 0 12px;
	outline: none;
	transition:
		border-color 0.12s ease,
		box-shadow 0.12s ease;
}
.ssf .select2-container--default.select2-container--focus .select2-selection--single {
	border-color: #cbd5e1;
	box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}
.ssf .select2-container--default
	.select2-selection--single
	.select2-selection__rendered {
	color: #121826;
	padding: 0;
	line-height: 1.2;
	font-size: 14px;
	font-weight: 650;
}
.ssf .select2-container--default
	.select2-selection--single
	.select2-selection__placeholder {
	color: #5b6472;
	font-weight: 600;
}
.ssf .select2-container--default
	.select2-selection--single
	.select2-selection__arrow {
	height: 46px;
	right: 10px;
	width: 24px;
}
.ssf .select2-container--default
	.select2-selection--single
	.select2-selection__arrow b {
	border-color: #5b6472 transparent transparent transparent;
	border-width: 5px 5px 0 5px;
	margin-left: -5px;
	margin-top: -2px;
	opacity: 0.9;
}
.select2-dropdown.ssf-dropdown {
	border: 1px solid #e7ebf3;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 24px rgba(18, 24, 38, 0.08);
	background: #fff;
}
.select2-dropdown.ssf-dropdown .select2-search--dropdown {
	padding: 10px;
	border-bottom: 1px solid #e7ebf3;
	background: #fff;
}
.select2-dropdown.ssf-dropdown .select2-search__field {
	width: 100%;
	border: 1px solid #e7ebf3;
	border-radius: 12px;
	padding: 10px;
	font-size: 14px;
	outline: none;
}
.select2-dropdown.ssf-dropdown .select2-search__field:focus {
	border-color: #cbd5e1;
	box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}
.select2-dropdown.ssf-dropdown .select2-results__options {
	max-height: 260px;
}
.select2-dropdown.ssf-dropdown .select2-results__option {
	padding: 10px 12px;
	font-size: 14px;
	color: #121826;
}
.select2-dropdown.ssf-dropdown
	.select2-results__option--highlighted.select2-results__option--selectable {
	background: #f3f4f6;
	color: #121826;
}
.select2-dropdown.ssf-dropdown .select2-results__option--selected {
	background: #111827;
	color: #fff;
}
