/* WC Smart Search – override the custom properties in your theme to restyle. */
.wcss {
	--wcss-accent: #2c6bed;
	--wcss-border: #d5d8dc;
	--wcss-bg: #fff;
	--wcss-text: #1d2327;
	--wcss-muted: #6b7280;
	--wcss-hover: #f3f5f8;
	--wcss-radius: 8px;
	position: relative;
	max-width: 560px;
	width: 100%;
	color: var(--wcss-text);
}

.wcss__field {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--wcss-border);
	border-radius: var(--wcss-radius);
	background: var(--wcss-bg);
	overflow: hidden;
}

.wcss__field:focus-within {
	border-color: var(--wcss-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wcss-accent) 20%, transparent);
}

.wcss .wcss__input {
	flex: 1;
	min-width: 0;
	border: 0;
	margin: 0;
	padding: 10px 14px;
	font: inherit;
	background: transparent;
	color: inherit;
	box-shadow: none;
	outline: none;
}

.wcss .wcss__submit {
	margin: 0;
	padding: 0 14px !important;
	color: var(--wcss-muted) !important;
	cursor: pointer;
}

.wcss .wcss__submit:hover {
	color: var(--wcss-accent) !important;
}

.wcss.is-loading .wcss__submit svg {
	animation: wcss-pulse 0.8s ease-in-out infinite alternate;
}

@keyframes wcss-pulse {
	to { opacity: 0.3; }
}

.wcss__panel {
	position: absolute;
	z-index: 9999;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	max-height: min(70vh, 520px);
	overflow-y: auto;
	background: var(--wcss-bg);
	border: 1px solid var(--wcss-border);
	border-radius: var(--wcss-radius);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
	padding: 6px 0;
}

.wcss__panel[hidden] {
	display: none;
}

.wcss__heading {
	padding: 8px 14px 4px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--wcss-muted);
}

.wcss .wcss__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 14px;
	color: inherit;
	text-decoration: none;
	line-height: 1.3;
}

.wcss .wcss__item:hover,
.wcss .wcss__item.is-active {
	background: var(--wcss-hover);
}

.wcss__thumb {
	width: 44px;
	height: 44px;
	flex: none;
	object-fit: cover;
	border-radius: 4px;
	background: var(--wcss-hover);
}

.wcss__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

.wcss__name {
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wcss__meta {
	font-size: 12px;
	color: var(--wcss-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wcss__price {
	flex: none;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.wcss__price del {
	font-weight: 400;
	color: var(--wcss-muted);
	margin-right: 4px;
}

.wcss__price ins {
	text-decoration: none;
}

.wcss__item--attr .wcss__attr-label {
	color: var(--wcss-muted);
}

.wcss__item--attr .wcss__attr-value {
	flex: 1;
	font-weight: 500;
}

.wcss__count {
	font-size: 12px;
	color: var(--wcss-muted);
	background: var(--wcss-hover);
	border-radius: 999px;
	padding: 1px 8px;
}

.wcss mark {
	background: none;
	color: var(--wcss-accent);
	font-weight: 700;
	padding: 0;
}

.wcss .wcss__all {
	justify-content: center;
	margin-top: 4px;
	border-top: 1px solid var(--wcss-border);
	padding-top: 10px;
	font-weight: 600;
	color: var(--wcss-accent);
}

.wcss__empty {
	padding: 14px;
	text-align: center;
	color: var(--wcss-muted);
}

/* Icon + pop-up ([wc_smart_search_icon]) */

/* Themes (e.g. Hello Elementor) and Elementor's global button styles add backgrounds,
   borders and hover/focus colours to every <button>; force ours back to plain icons. */
button.wcss-toggle,
button.wcss-toggle:hover,
button.wcss-toggle:focus,
button.wcss-toggle:active,
.wcss button.wcss__submit,
.wcss button.wcss__submit:hover,
.wcss button.wcss__submit:focus,
.wcss button.wcss__submit:active,
.wcss-modal button.wcss-modal__close,
.wcss-modal button.wcss-modal__close:hover,
.wcss-modal button.wcss-modal__close:focus,
.wcss-modal button.wcss-modal__close:active {
	background: transparent !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	min-width: 0 !important;
	min-height: 0 !important;
	width: auto;
	height: auto;
	border-radius: 0;
	text-transform: none;
	letter-spacing: normal;
	transform: none;
	outline: none;
}

button.wcss-toggle {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 6px !important;
	margin: 0;
	color: var(--wcss-icon-color, inherit) !important;
	line-height: 0;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

button.wcss-toggle:hover {
	color: var(--wcss-icon-hover-color, var(--wcss-icon-color, inherit)) !important;
}

button.wcss-toggle:focus-visible,
.wcss button.wcss__submit:focus-visible,
.wcss-modal button.wcss-modal__close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

button.wcss-toggle svg {
	display: block;
}

/* Outline icons: draw with the line only, never filled, whatever the theme sets on svg/path. */
html body svg.wcss-line-icon,
html body svg.wcss-line-icon * {
	fill: none !important;
	stroke: currentColor !important;
}

html.wcss-lock {
	overflow: hidden;
}

.wcss-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 14vh 16px 16px;
}

.wcss-modal[hidden] {
	display: none;
}

.wcss-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 18, 24, 0.6);
	backdrop-filter: blur(3px);
	animation: wcss-fade 0.15s ease-out;
}

.wcss-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 640px;
	animation: wcss-drop 0.18s ease-out;
}

.wcss-modal .wcss {
	max-width: none;
}

.wcss-modal .wcss__field {
	border-color: transparent;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.wcss-modal .wcss .wcss__input {
	padding: 16px 18px;
	font-size: 18px;
}

.wcss-modal .wcss__panel {
	max-height: calc(86vh - 120px);
}

.wcss-modal .wcss-modal__close {
	position: absolute;
	top: -44px;
	right: 0;
	padding: 6px !important;
	margin: 0;
	color: #fff !important;
	line-height: 0;
	cursor: pointer;
}

@media (max-width: 600px) {
	.wcss-modal {
		padding-top: 60px;
	}
}

@keyframes wcss-fade {
	from { opacity: 0; }
}

@keyframes wcss-drop {
	from { opacity: 0; transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
	.wcss-modal__backdrop,
	.wcss-modal__dialog {
		animation: none;
	}
}
