/**
 * Public (frontend) styles for MVweb Smart Search.
 *
 * BEM prefix: .mvweb-ss
 *
 * @package mvweb_ss
 * @since   1.0.0
 */

.mvweb-ss {
	position: relative;
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: var( --mvweb-ss-max-width, 520px );
	box-sizing: border-box;
}

.mvweb-ss__input {
	flex: 1 1 auto;
	min-width: 0;
	height: var( --mvweb-ss-height, auto );
	padding: var( --mvweb-ss-pad-y, 10px ) var( --mvweb-ss-pad-x, 14px );
	font-size: var( --mvweb-ss-font-size, 15px );
	font-weight: var( --mvweb-ss-weight, 400 ) !important;
	line-height: 1.4;
	color: var( --mvweb-ss-text, inherit );
	background: var( --mvweb-ss-field-bg, #fff );
	border: 1px solid var( --mvweb-ss-border, #c9ced6 );
	border-radius: var( --mvweb-ss-radius, 8px ) 0 0 var( --mvweb-ss-radius, 8px );
	outline: none;
	box-sizing: border-box;
}

.mvweb-ss__input:focus {
	border-color: var( --mvweb-ss-accent, #793ea4 );
	box-shadow: 0 0 0 2px rgba( 121, 62, 164, 0.18 );
}

.mvweb-ss__scope {
	flex: 0 1 auto;
	max-width: 42%;
	height: var( --mvweb-ss-height, auto );
	padding: var( --mvweb-ss-pad-y, 10px ) 28px var( --mvweb-ss-pad-y, 10px ) 12px;
	font-size: var( --mvweb-ss-font-size, 15px );
	line-height: 1.4;
	color: var( --mvweb-ss-text, inherit );
	background-color: var( --mvweb-ss-field-bg, #fff );
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a93a2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 12px;
	border: 1px solid var( --mvweb-ss-border, #c9ced6 );
	border-right: 0;
	border-radius: var( --mvweb-ss-radius, 8px ) 0 0 var( --mvweb-ss-radius, 8px );
	outline: none;
	box-sizing: border-box;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	text-overflow: ellipsis;
}

.mvweb-ss__scope:focus {
	border-color: var( --mvweb-ss-accent, #793ea4 );
}

.mvweb-ss__scope + .mvweb-ss__input {
	border-radius: 0;
}

.mvweb-ss--icon-collapsed .mvweb-ss__scope {
	display: none;
}

.mvweb-ss__submit {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: var( --mvweb-ss-submit-w, 46px );
	border: 1px solid var( --mvweb-ss-accent, #793ea4 );
	border-left: 0;
	border-radius: 0 var( --mvweb-ss-radius, 8px ) var( --mvweb-ss-radius, 8px ) 0;
	background: var( --mvweb-ss-accent, #793ea4 );
	color: #fff;
	font-size: var( --mvweb-ss-font-size, 15px );
	cursor: pointer;
}

.mvweb-ss__submit-text { display: none; }

.mvweb-ss__submit-icon {
	display: block;
	width: 18px;
	height: 18px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Submit button variants */
.mvweb-ss--submit-text .mvweb-ss__submit {
	width: auto;
	padding: 0 16px;
}

.mvweb-ss--submit-text .mvweb-ss__submit-icon {
	display: none;
}

.mvweb-ss--submit-text .mvweb-ss__submit-text {
	display: inline;
}

.mvweb-ss--submit-hidden .mvweb-ss__submit {
	display: none;
}

.mvweb-ss--submit-hidden .mvweb-ss__input {
	border-radius: var( --mvweb-ss-radius, 8px );
}

/* Clear button: an "×" shown inside the field once something is typed */
.mvweb-ss__clear {
	position: absolute;
	top: 0;
	bottom: 0;
	right: calc( var( --mvweb-ss-submit-w, 46px ) + 4px );
	width: 22px;
	margin: auto 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.mvweb-ss__clear[hidden] {
	display: none;
}

.mvweb-ss__clear::before {
	content: "";
	width: 15px;
	height: 15px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%238a93a2' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mvweb-ss__clear:hover::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23793ea4' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
}

.mvweb-ss--submit-hidden .mvweb-ss__clear {
	right: 8px;
}

.mvweb-ss--icon-collapsed:not( .is-expanded ) .mvweb-ss__clear {
	display: none;
}

/* In-field loading spinner: takes the clear-button slot while a request runs */
.mvweb-ss__spinner {
	position: absolute;
	top: 0;
	bottom: 0;
	right: calc( var( --mvweb-ss-submit-w, 46px ) + 4px );
	width: 22px;
	margin: auto 0;
	display: none;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.mvweb-ss--submit-hidden .mvweb-ss__spinner {
	right: 8px;
}

.mvweb-ss__spinner::before {
	content: "";
	width: 15px;
	height: 15px;
	border: 2px solid #d8dce2;
	border-top-color: var( --mvweb-ss-accent, #793ea4 );
	border-radius: 50%;
	animation: mvweb-ss-spin 0.6s linear infinite;
}

.mvweb-ss.is-loading .mvweb-ss__spinner {
	display: flex;
}

.mvweb-ss.is-loading .mvweb-ss__clear {
	display: none;
}

@keyframes mvweb-ss-spin {
	to {
		transform: rotate( 360deg );
	}
}

/* Status line for screen readers: visually hidden, exposed to assistive tech */
.mvweb-ss__status {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect( 0 0 0 0 );
	clip-path: inset( 50% );
	white-space: nowrap;
	border: 0;
}

/* Room for the clear button so typed text doesn't slide under it */
.mvweb-ss__input {
	padding-right: 32px;
}

/* Magnifier inside the field */
.mvweb-ss--icon-inside .mvweb-ss__input {
	padding-left: 38px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/></svg>");
	background-repeat: no-repeat;
	background-position: left 12px center;
}

/* Icon display mode: collapse the field to a magnifier button that expands on click */
.mvweb-ss--icon-collapsed {
	width: auto;
	max-width: none;
}

.mvweb-ss--icon-collapsed .mvweb-ss__input {
	width: 0;
	min-width: 0;
	padding: 0;
	border-width: 0;
	opacity: 0;
	transition: width 0.2s, padding 0.2s, opacity 0.15s;
}

.mvweb-ss--icon-collapsed.is-expanded .mvweb-ss__input {
	width: 240px;
	padding: var( --mvweb-ss-pad-y, 10px ) var( --mvweb-ss-pad-x, 14px );
	padding-right: 32px;
	border-width: 1px;
	opacity: 1;
}

.mvweb-ss--icon-collapsed .mvweb-ss__submit {
	display: flex;
	width: var( --mvweb-ss-submit-w, 46px );
	height: var( --mvweb-ss-submit-w, 46px );
	border: 1px solid var( --mvweb-ss-accent, #793ea4 );
	border-radius: var( --mvweb-ss-radius, 8px );
}

.mvweb-ss--icon-collapsed.is-expanded .mvweb-ss__submit {
	border-left: 0;
	border-radius: 0 var( --mvweb-ss-radius, 8px ) var( --mvweb-ss-radius, 8px ) 0;
}

/* Plain-icon option: the collapsed magnifier as a bare icon without the box. */
.mvweb-ss--icon-plain.mvweb-ss--icon-collapsed .mvweb-ss__submit {
	background: transparent;
	border: 0;
}

.mvweb-ss--icon-plain.mvweb-ss--icon-collapsed .mvweb-ss__submit-icon {
	background-color: var( --mvweb-ss-icon, var( --mvweb-ss-accent, #793ea4 ) );
	background-image: none;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Word display mode: collapsed trigger shown as a text link that expands the field.
   Reuses the icon-collapsed state class set by JS; media query picks whether the
   desktop or mobile variant shows the word on the current breakpoint. */
.mvweb-ss__word {
	display: none;
	white-space: nowrap;
}

/* Desktop word trigger (only above the mobile breakpoint, so a mixed
   desktop=word / mobile=icon config doesn't leak onto the phone view). */
@media ( min-width: 783px ) {
	.mvweb-ss--word-desktop.mvweb-ss--icon-collapsed:not( .is-expanded ) .mvweb-ss__submit {
		width: auto;
		height: auto;
		padding: var( --mvweb-ss-pad-y, 10px ) var( --mvweb-ss-pad-x, 14px );
		gap: 6px;
		background: transparent;
		border: 0;
		border-radius: var( --mvweb-ss-radius, 8px );
		color: inherit;
		font-size: inherit;
	}

	.mvweb-ss--word-desktop.mvweb-ss--icon-collapsed:not( .is-expanded ) .mvweb-ss__submit-icon,
	.mvweb-ss--word-desktop.mvweb-ss--icon-collapsed:not( .is-expanded ) .mvweb-ss__submit-text {
		display: none;
	}

	.mvweb-ss--word-desktop.mvweb-ss--icon-collapsed:not( .is-expanded ) .mvweb-ss__word {
		display: inline;
	}
}

/* Mobile word trigger. */
@media ( max-width: 782px ) {
	.mvweb-ss--word-mobile.mvweb-ss--icon-collapsed:not( .is-expanded ) .mvweb-ss__submit {
		width: auto;
		height: auto;
		padding: var( --mvweb-ss-pad-y, 10px ) var( --mvweb-ss-pad-x, 14px );
		gap: 6px;
		background: transparent;
		border: 0;
		border-radius: var( --mvweb-ss-radius, 8px );
		color: inherit;
		font-size: inherit;
	}

	.mvweb-ss--word-mobile.mvweb-ss--icon-collapsed:not( .is-expanded ) .mvweb-ss__submit-icon,
	.mvweb-ss--word-mobile.mvweb-ss--icon-collapsed:not( .is-expanded ) .mvweb-ss__submit-text {
		display: none;
	}

	.mvweb-ss--word-mobile.mvweb-ss--icon-collapsed:not( .is-expanded ) .mvweb-ss__word {
		display: inline;
	}
}

.mvweb-ss__panel {
	position: absolute;
	top: calc( 100% + 6px );
	left: 0;
	right: 0;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	width: var( --mvweb-ss-panel-width, 640px );
	max-width: 90vw;
	max-height: 80vh;
	background: #fff;
	border: 1px solid #e2e5ea;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba( 20, 22, 27, 0.16 );
	overflow: hidden;
}

.mvweb-ss__panel[hidden] {
	display: none;
}

.mvweb-ss__close {
	display: none;
	flex: 0 0 auto;
	width: 100%;
	padding: 12px;
	border: 0;
	border-bottom: 1px solid #e2e5ea;
	background: #f4f0f9;
	color: var( --mvweb-ss-accent, #793ea4 );
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.mvweb-ss__layout {
	display: flex;
	align-items: stretch;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

.mvweb-ss__list {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	max-height: min( 70vh, 520px );
	overflow-y: auto;
	padding: 6px;
}

.mvweb-ss__group {
	padding: 8px 10px 4px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #8a93a2;
}

.mvweb-ss .mvweb-ss__item,
.mvweb-ss .mvweb-ss__item:hover,
.mvweb-ss .mvweb-ss__item:focus,
.mvweb-ss .mvweb-ss__item.is-active {
	color: #14161b;
	text-decoration: none;
}

.mvweb-ss__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	border-radius: 8px;
}

.mvweb-ss__item:hover,
.mvweb-ss__item:focus,
.mvweb-ss__item.is-active {
	background: #f4f0f9;
}

.mvweb-ss__thumb {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 6px;
	background: #f0f2f5;
}

.mvweb-ss__thumb--empty {
	background: #f6f7f9;
	border: 1px solid #eef0f3;
}

.mvweb-ss__item-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.mvweb-ss__item-title {
	font-size: 14px;
	font-weight: var( --mvweb-ss-weight, 400 ) !important;
	line-height: 1.3;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.mvweb-ss__item-price {
	font-size: 13px;
	font-weight: 600;
	color: var( --mvweb-ss-accent, #793ea4 );
}

.mvweb-ss__tabs {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 6px;
	padding: 8px 10px;
	border-bottom: 1px solid #eef0f3;
}

.mvweb-ss__tab {
	padding: 5px 12px;
	border: 1px solid #e2e5ea;
	border-radius: 999px;
	background: #fff;
	color: #5a6472;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.mvweb-ss__tab:hover {
	background: #f4f0f9;
}

.mvweb-ss__tab.is-active {
	border-color: var( --mvweb-ss-accent, #793ea4 );
	background: var( --mvweb-ss-accent, #793ea4 );
	color: #fff;
}

.mvweb-ss .mvweb-ss__cat,
.mvweb-ss .mvweb-ss__cat:hover,
.mvweb-ss .mvweb-ss__cat:focus {
	color: #14161b;
	text-decoration: none;
}

.mvweb-ss__cat {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 10px;
	border-radius: 8px;
}

.mvweb-ss__cat:hover,
.mvweb-ss__cat:focus {
	background: #f4f0f9;
}

.mvweb-ss__cat-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.mvweb-ss__cat-name {
	font-size: 14px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mvweb-ss__cat-context {
	font-size: 12px;
	line-height: 12px;
	color: #8a93a2;
}

.mvweb-ss__cat-count {
	flex: 0 0 auto;
	padding: 2px 8px;
	border-radius: 10px;
	background: #f0f2f5;
	font-size: 12px;
	color: #8a93a2;
}

.mvweb-ss__details {
	flex: 0 0 220px;
	min-height: 0;
	max-height: min( 70vh, 520px );
	overflow-y: auto;
	padding: 16px;
	border-left: 1px solid #eef0f3;
	background: #fbfbfc;
}

.mvweb-ss__details-img {
	width: 100%;
	height: 150px;
	object-fit: contain;
	margin-bottom: 12px;
}

.mvweb-ss__details-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	margin-bottom: 6px;
}

.mvweb-ss__details-price {
	font-size: 15px;
	font-weight: 700;
	color: var( --mvweb-ss-accent, #793ea4 );
	margin-bottom: 6px;
}

.mvweb-ss__details-stock {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 8px;
}

.mvweb-ss__details-stock.is-in {
	color: #1a7f37;
}

.mvweb-ss__details-stock.is-out {
	color: #b42318;
}

.mvweb-ss__details-excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13px;
	line-height: 1.5;
	color: #5a6472;
	margin-bottom: 12px;
}

.mvweb-ss__details-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.mvweb-ss__details-view,
.mvweb-ss__details-cart {
	flex: 1 1 auto;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 0;
	width: auto;
	margin: 0 !important;
	padding: 9px 16px !important;
	border-radius: 8px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-align: center;
	text-decoration: none !important;
	text-transform: none !important;
	box-shadow: none !important;
	cursor: pointer;
}

.mvweb-ss__details-view {
	background: var( --mvweb-ss-accent, #793ea4 ) !important;
	border: 1px solid var( --mvweb-ss-accent, #793ea4 ) !important;
	color: #fff !important;
}

.mvweb-ss__details-cart {
	background: #fff !important;
	border: 1px solid var( --mvweb-ss-accent, #793ea4 ) !important;
	color: var( --mvweb-ss-accent, #793ea4 ) !important;
}

.mvweb-ss__details-cart.added {
	opacity: 0.6;
}

.mvweb-ss__all {
	display: block;
	flex: 0 0 auto;
	padding: 12px;
	border-top: 1px solid #eef0f3;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: var( --mvweb-ss-accent, #793ea4 );
	text-decoration: none;
}

.mvweb-ss__all:hover {
	background: #f4f0f9;
}

.mvweb-ss__empty {
	padding: 16px 12px;
	text-align: center;
	color: #8a93a2;
	font-size: 14px;
}

.mvweb-ss__cta {
	display: block;
	margin: 0 12px 14px;
	padding: 11px 16px;
	border-radius: 8px;
	background: var( --mvweb-ss-accent, #793ea4 );
	color: #fff;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.mvweb-ss__cta:hover {
	filter: brightness( 0.94 );
}

.mvweb-ss .mvweb-ss__mark {
	background: transparent !important;
	color: var( --mvweb-ss-accent, #793ea4 );
	font-weight: 700;
	padding: 0;
}

.mvweb-ss__correction {
	flex: 0 0 auto;
	padding: 8px 12px;
	border-bottom: 1px solid #eef0f3;
	font-size: 13px;
	color: #5a6472;
}

.mvweb-ss__correction-link {
	color: var( --mvweb-ss-accent, #793ea4 );
	font-weight: 600;
	text-decoration: none;
}

.mvweb-ss__correction-link:hover {
	text-decoration: underline;
}

.mvweb-ss__suggest-head {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
}

.mvweb-ss__history-clear {
	padding: 6px 12px;
	border: 0;
	background: none;
	color: #8a93a2;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.mvweb-ss__history-clear:hover {
	color: var( --mvweb-ss-accent, #793ea4 );
}

.mvweb-ss__suggest-item {
	display: block;
	width: 100%;
	padding: 9px 12px;
	border: 0;
	background: none;
	text-align: left;
	font-size: 14px;
	color: #14161b;
	cursor: pointer;
}

.mvweb-ss__suggest-item:hover {
	background: #f4f0f9;
}

.mvweb-ss__list--grid .mvweb-ss__section {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	gap: 4px;
	padding: 4px;
}

.mvweb-ss__list--grid .mvweb-ss__group {
	grid-column: 1 / -1;
	padding-left: 6px;
}

.mvweb-ss__list--grid .mvweb-ss__item {
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
}

.mvweb-ss__list--grid .mvweb-ss__thumb {
	width: 100%;
	height: 110px;
}

.mvweb-ss__list--grid .mvweb-ss__item-title {
	white-space: normal;
}

/* Results-page sort control (shortcode) */
.mvweb-ss-sort {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
}

.mvweb-ss-sort__label {
	font-size: 14px;
	color: #5a6472;
}

.mvweb-ss-sort__select {
	padding: 6px 10px;
	border: 1px solid #e2e5ea;
	border-radius: var( --mvweb-ss-radius, 8px );
	background: #fff;
	font-size: 14px;
	cursor: pointer;
}

.mvweb-ss-facets {
	display: flex;
	flex-direction: column;
	gap: 18px;
	font-size: 14px;
	color: #14161b;
}

.mvweb-ss-facets__group {
	margin: 0;
	padding: 0;
	border: 0;
}

.mvweb-ss-facets__legend {
	padding: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #5a6472;
}

.mvweb-ss-facets__opt {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
	cursor: pointer;
}

.mvweb-ss-facets__opt-name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mvweb-ss-facets__opt-count {
	flex: 0 0 auto;
	padding: 1px 8px;
	border-radius: 10px;
	background: #f0f2f5;
	font-size: 12px;
	color: #8a93a2;
}

.mvweb-ss-facets__price {
	display: flex;
	align-items: center;
	gap: 8px;
}

.mvweb-ss-facets__price-input {
	width: 100%;
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid var( --mvweb-ss-border, #c9ced6 );
	border-radius: var( --mvweb-ss-radius, 8px );
	font-size: 14px;
	box-sizing: border-box;
}

.mvweb-ss-facets__price-sep {
	flex: 0 0 auto;
	color: #8a93a2;
}

.mvweb-ss-facets__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.mvweb-ss-facets__apply {
	padding: 9px 16px;
	border: 1px solid var( --mvweb-ss-accent, #793ea4 );
	border-radius: var( --mvweb-ss-radius, 8px );
	background: var( --mvweb-ss-accent, #793ea4 );
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.mvweb-ss-facets__reset {
	color: #8a93a2;
	font-size: 13px;
	text-decoration: none;
}

.mvweb-ss-facets__reset:hover {
	color: var( --mvweb-ss-accent, #793ea4 );
}

/* Media */

@media ( prefers-reduced-motion: reduce ) {
	.mvweb-ss__spinner::before {
		animation: none;
	}
}

@media ( max-width: 782px ) {
	.mvweb-ss {
		max-width: 100%;
	}

	body.mvweb-ss-lock {
		overflow: hidden;
	}

	/* :not([hidden]) so a closed panel stays display:none — without it this
	   rule (higher specificity than .mvweb-ss__panel[hidden]) forced the hidden
	   panel to display:flex and cover the page, e.g. blanking a theme's mobile
	   menu when the search bar sits inside it. */
	.mvweb-ss:not( .mvweb-ss--no-overlay ) .mvweb-ss__panel:not( [hidden] ) {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		max-width: none;
		max-height: none;
		border: 0;
		border-radius: 0;
		display: flex;
		flex-direction: column;
	}

	.mvweb-ss:not( .mvweb-ss--no-overlay ) .mvweb-ss__close {
		display: block;
		flex: 0 0 auto;
	}

	.mvweb-ss:not( .mvweb-ss--no-overlay ) .mvweb-ss__layout {
		flex: 1 1 auto;
		overflow-y: auto;
	}

	.mvweb-ss:not( .mvweb-ss--no-overlay ) .mvweb-ss__list {
		max-height: none;
	}

	.mvweb-ss:not( .mvweb-ss--no-overlay ) .mvweb-ss__details {
		display: none;
	}

	/* Icon/word mode on mobile: the tapped trigger opens a full-screen search
	   panel with the field at the top, instead of expanding the field inline in
	   the header (which a tight header flex can't fit and which left the field
	   hidden behind the overlay). The whole form becomes the fixed overlay. */
	.mvweb-ss:not( .mvweb-ss--no-overlay ).mvweb-ss--icon-collapsed.is-expanded {
		position: fixed;
		inset: 0;
		z-index: 10000;
	}

	.admin-bar .mvweb-ss:not( .mvweb-ss--no-overlay ).mvweb-ss--icon-collapsed.is-expanded {
		top: 46px;
	}

	.mvweb-ss:not( .mvweb-ss--no-overlay ).mvweb-ss--icon-collapsed.is-expanded {
		width: auto;
		max-width: none;
		display: flex;
		flex-direction: column;
		gap: 10px;
		padding: 12px;
		background: #fff;
		box-sizing: border-box;
	}

	.mvweb-ss:not( .mvweb-ss--no-overlay ).mvweb-ss--icon-collapsed.is-expanded .mvweb-ss__input {
		flex: 0 0 auto;
		width: auto !important;
		min-width: 0;
		height: auto !important;
		opacity: 1 !important;
		padding: 12px 40px 12px 16px !important;
		border: 1px solid var( --mvweb-ss-border, #c9ced6 ) !important;
		border-radius: var( --mvweb-ss-radius, 8px ) !important;
		background-image: none;
	}

	.mvweb-ss:not( .mvweb-ss--no-overlay ).mvweb-ss--icon-collapsed.is-expanded .mvweb-ss__submit {
		display: none;
	}

	.mvweb-ss:not( .mvweb-ss--no-overlay ).mvweb-ss--icon-collapsed.is-expanded .mvweb-ss__clear {
		top: 12px;
		bottom: auto;
		right: 24px;
		height: 48px;
	}

	.mvweb-ss:not( .mvweb-ss--no-overlay ).mvweb-ss--icon-collapsed.is-expanded .mvweb-ss__panel:not( [hidden] ) {
		position: static;
		inset: auto;
		flex: 1 1 auto;
		width: auto;
		max-width: none;
		max-height: none;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		min-height: 0;
	}
}
