/*
 * Priya Associates inline WooCommerce product search.
 */

.site-tools .header-search-icon,
.site-dialog-search.woostify-search-wrap,
.woositfy-sfb-icon.header-search-icon,
.woostify-item-list-item__name.header-search-icon {
	display: none !important;
}

body.dialog-search-open {
	overflow: auto !important;
}

.site-header-inner .pa-header-product-search {
	--pa-search-accent: #d70707;
	--pa-search-accent-dark: #980000;
	--pa-search-text: #171717;
	--pa-search-muted: #6f7682;
	--pa-search-border: #e2e5ea;
	--pa-search-surface: #ffffff;
	--pa-search-field: #f0f1f3;

	position: relative;
	z-index: 40;
	flex: 0 1 390px;
	width: min(390px, 34vw);
	min-width: 270px;
	margin: 0 clamp(14px, 2vw, 26px) 0 clamp(20px, 3vw, 52px);
	font-family: inherit;
}

.pa-header-product-search,
.pa-header-product-search *,
.pa-header-product-search *::before,
.pa-header-product-search *::after {
	box-sizing: border-box;
}

.pa-header-product-search__form {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 0 7px 0 46px;
	background: var(--pa-search-field);
	border: 1px solid transparent;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
	transition:
		background-color 180ms ease,
		border-color 180ms ease,
		box-shadow 180ms ease,
		transform 180ms ease;
}

.pa-header-product-search__form:hover {
	background: #f7f8fa;
	border-color: #dde1e7;
}

.pa-header-product-search:focus-within .pa-header-product-search__form {
	background: #ffffff;
	border-color: rgba(215, 7, 7, 0.34);
	box-shadow:
		0 0 0 4px rgba(215, 7, 7, 0.08),
		0 12px 28px rgba(16, 24, 40, 0.1);
	transform: translateY(-1px);
}

.pa-header-product-search__icon {
	position: absolute;
	left: 18px;
	top: 50%;
	display: inline-flex;
	width: 19px;
	height: 19px;
	color: #525a66;
	transform: translateY(-50%);
	pointer-events: none;
}

.pa-header-product-search svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.pa-header-product-search__input {
	width: 100%;
	min-width: 0;
	height: 46px;
	padding: 0 8px 0 0;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--pa-search-text);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 46px;
	outline: none;
}

.pa-header-product-search__input::placeholder {
	color: #7d8591;
	opacity: 1;
}

.pa-header-product-search__input::-webkit-search-decoration,
.pa-header-product-search__input::-webkit-search-cancel-button {
	appearance: none;
}

.pa-header-product-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	padding: 0;
	background: #ffffff;
	border: 1px solid rgba(23, 23, 23, 0.08);
	border-radius: 50%;
	box-shadow: 0 3px 10px rgba(16, 24, 40, 0.08);
	color: #272b31;
	cursor: pointer;
	transition:
		background-color 180ms ease,
		border-color 180ms ease,
		color 180ms ease,
		transform 180ms ease,
		box-shadow 180ms ease;
}

.pa-header-product-search__submit svg {
	width: 16px;
	height: 16px;
}

.pa-header-product-search__submit:hover,
.pa-header-product-search__submit:focus-visible {
	background: var(--pa-search-accent);
	border-color: var(--pa-search-accent);
	box-shadow: 0 8px 18px rgba(215, 7, 7, 0.24);
	color: #ffffff;
	outline: none;
	transform: translateY(-1px);
}

.pa-header-product-search__panel {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	z-index: 10020;
	overflow: hidden;
	background: var(--pa-search-surface);
	border: 1px solid var(--pa-search-border);
	border-radius: 16px;
	box-shadow:
		0 22px 55px rgba(16, 24, 40, 0.18),
		0 4px 14px rgba(16, 24, 40, 0.08);
}

.pa-header-product-search__status {
	padding: 15px 16px;
	color: var(--pa-search-muted);
	font-size: 13px;
	font-weight: 650;
	line-height: 1.45;
}

.pa-header-product-search__status[hidden] {
	display: none;
}

.pa-header-product-search__results {
	max-height: min(66vh, 430px);
	margin: 0;
	padding: 6px;
	overflow-y: auto;
	list-style: none;
}

.pa-header-product-search__result {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pa-header-product-search__result-link {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	gap: 11px;
	align-items: center;
	min-height: 66px;
	padding: 9px 10px;
	border-radius: 12px;
	color: var(--pa-search-text);
	text-decoration: none;
	transition:
		background-color 150ms ease,
		transform 150ms ease;
}

.pa-header-product-search__result-link:hover,
.pa-header-product-search__result-link:focus-visible,
.pa-header-product-search__result-link.is-active {
	background: #f6f7f9;
	color: var(--pa-search-text);
	outline: none;
	transform: translateX(2px);
}

.pa-header-product-search__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	overflow: hidden;
	background: #f3f5f7;
	border: 1px solid #eceff3;
	border-radius: 10px;
}

.pa-header-product-search__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.pa-header-product-search__copy {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.pa-header-product-search__title {
	overflow: hidden;
	color: var(--pa-search-text);
	font-size: 13.5px;
	font-weight: 750;
	letter-spacing: 0;
	line-height: 1.28;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pa-header-product-search__meta {
	overflow: hidden;
	color: var(--pa-search-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pa-header-product-search__price {
	justify-self: end;
	color: var(--pa-search-accent-dark);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.2;
	white-space: nowrap;
}

.pa-header-product-search__price del {
	display: block;
	color: #9aa1ad;
	font-size: 11px;
	font-weight: 650;
}

.pa-header-product-search__price ins {
	background: transparent;
	text-decoration: none;
}

.pa-header-product-search__view-all {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 12px 16px;
	background: #fbfbfc;
	border-top: 1px solid var(--pa-search-border);
	color: var(--pa-search-accent);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.25;
	text-decoration: none;
}

.pa-header-product-search__view-all:hover,
.pa-header-product-search__view-all:focus-visible {
	background: #fff5f5;
	color: var(--pa-search-accent-dark);
	outline: none;
}

.pa-header-product-search__view-all[hidden],
.pa-header-product-search__panel[hidden] {
	display: none;
}

.pa-header-product-search.is-loading .pa-header-product-search__submit {
	color: var(--pa-search-accent);
	animation: pa-product-search-pulse 900ms ease-in-out infinite;
}

@keyframes pa-product-search-pulse {
	0%,
	100% {
		opacity: 0.55;
	}

	50% {
		opacity: 1;
	}
}

@media (max-width: 1180px) {
	.site-header-inner .pa-header-product-search {
		flex-basis: 320px;
		width: min(320px, 30vw);
		min-width: 240px;
		margin-left: 18px;
		margin-right: 18px;
	}
}

@media (max-width: 991px) {
	.site-header-inner .woostify-container {
		flex-wrap: wrap;
		row-gap: 12px;
	}

	.site-header-inner .pa-header-product-search {
		order: 4;
		display: block !important;
		flex: 0 0 100%;
		width: 100%;
		min-width: 0;
		margin: 2px 0 0;
		padding: 0;
	}

	.pa-header-product-search__form {
		min-height: 46px;
	}

	.pa-header-product-search__input {
		height: 44px;
		font-size: 14px;
		line-height: 44px;
	}

	.pa-header-product-search__panel {
		top: calc(100% + 8px);
		border-radius: 14px;
	}
}

@media (max-width: 560px) {
	.pa-header-product-search__form {
		padding-left: 42px;
	}

	.pa-header-product-search__icon {
		left: 16px;
		width: 18px;
		height: 18px;
	}

	.pa-header-product-search__submit {
		flex-basis: 32px;
		width: 32px;
		height: 32px;
	}

	.pa-header-product-search__result-link {
		grid-template-columns: 44px minmax(0, 1fr);
		gap: 10px;
		min-height: 62px;
	}

	.pa-header-product-search__thumb {
		width: 44px;
		height: 44px;
	}

	.pa-header-product-search__price {
		grid-column: 2;
		justify-self: start;
		font-size: 12.5px;
	}
}
