.gp-search {
	position: relative;
}

.gp-live-search[hidden],
.gp-header__icons .gp-live-search[hidden] {
	display: none !important;
}

/*
 * This selector intentionally outranks the theme's broad
 * ".gp-header__icons a" icon rule. Product suggestions are content rows,
 * not 36px header icons.
 */
.gp-header__icons .gp-live-search {
	position: fixed !important;
	top: var(--gp-live-search-top, 0) !important;
	left: var(--gp-live-search-left, 12px) !important;
	right: auto !important;
	z-index: 1000;
	display: block !important;
	width: var(--gp-live-search-width, min(640px, calc(100vw - 24px))) !important;
	height: auto !important;
	max-height: var(--gp-live-search-max-height, 70vh);
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden;
	color: #141B26;
	background: #FFFFFF;
	border: 1px solid #EAE3DF;
	border-radius: 12px;
	box-shadow: 0 18px 45px rgba(200, 16, 90, .13);
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	line-height: 1.4 !important;
	isolation: isolate;
}

.gp-live-search__list {
	max-height: min(472px, calc(var(--gp-live-search-max-height, 70vh) - 48px));
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-color: #EBB6C9 transparent;
	scrollbar-width: thin;
}

.gp-header__icons .gp-live-search .gp-live-search__item {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 14px;
	width: 100% !important;
	height: auto !important;
	min-height: 96px;
	padding: 12px 16px !important;
	margin: 0 !important;
	color: #141B26 !important;
	line-height: 1.35 !important;
	text-align: left;
	text-decoration: none !important;
	background: #FFFFFF;
	border: 0;
	border-bottom: 1px solid #EAE3DF;
	border-radius: 0;
	transition: background-color 180ms ease, color 180ms ease;
}

.gp-header__icons .gp-live-search .gp-live-search__item:hover,
.gp-header__icons .gp-live-search .gp-live-search__item.is-active {
	color: #141B26 !important;
	background: #FFF1F4;
}

.gp-header__icons .gp-live-search .gp-live-search__item:focus-visible {
	position: relative;
	z-index: 1;
	outline: 2px solid #D80062;
	outline-offset: -2px;
}

.gp-live-search__image {
	display: block !important;
	flex: 0 0 72px;
	width: 72px !important;
	height: 72px !important;
	margin: 0 !important;
	object-fit: cover;
	border: 1px solid #EAE3DF;
	border-radius: 8px;
	background: #FFFDFA;
}

.gp-live-search__details {
	display: grid;
	flex: 1 1 auto;
	gap: 6px;
	min-width: 0;
	padding-right: 8px;
}

.gp-live-search__title {
	display: -webkit-box;
	overflow: hidden;
	color: #141B26;
	font-size: .94rem;
	font-weight: 600;
	line-height: 1.35 !important;
	white-space: normal;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.gp-live-search__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	color: #5A616C;
	font-size: .84rem;
	font-weight: 600;
	line-height: 1.25 !important;
}

.gp-live-search__price .woocommerce-Price-amount {
	color: inherit;
	white-space: nowrap;
}

.gp-live-search__price del {
	color: #5A616C;
	font-weight: 500;
	opacity: .72;
}

.gp-live-search__price ins {
	color: #D80062;
	text-decoration: none;
}

.gp-live-search__status {
	display: block;
	width: 100%;
	padding: 22px 18px;
	color: #5A616C;
	font-size: .88rem;
	line-height: 1.4;
	text-align: center;
	background: #FFFFFF;
}

.gp-live-search__status--loading::before {
	display: inline-block;
	width: 13px;
	height: 13px;
	margin-right: 8px;
	vertical-align: -2px;
	content: "";
	border: 2px solid #EBB6C9;
	border-top-color: #D80062;
	border-radius: 999px;
	animation: gp-live-search-spin .7s linear infinite;
}

.gp-live-search__status--error {
	color: #141B26;
}

.gp-live-search__footer[hidden] {
	display: none !important;
}

.gp-live-search__footer {
	position: relative;
	z-index: 2;
	border-top: 1px solid #EAE3DF;
	background: #FFF1F4;
}

.gp-header__icons .gp-live-search .gp-live-search__all {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: auto !important;
	min-height: 48px;
	padding: 12px 16px !important;
	margin: 0 !important;
	color: #D80062 !important;
	font-size: .86rem;
	font-weight: 700;
	line-height: 1.3 !important;
	text-align: center;
	text-decoration: none !important;
	background: #FFF1F4;
	border: 0;
	border-radius: 0;
}

.gp-header__icons .gp-live-search .gp-live-search__all:hover {
	color: #B90050 !important;
	background: #FFFDFA;
}

.gp-header__icons .gp-live-search .gp-live-search__all:focus-visible {
	outline: 2px solid #D80062;
	outline-offset: -2px;
}

@keyframes gp-live-search-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.gp-header__icons .gp-live-search .gp-live-search__item {
		transition: none;
	}
	.gp-live-search__status--loading::before {
		animation: none;
		border-color: #D80062;
	}
}

@media (max-width: 600px) {
	.gp-header__icons .gp-live-search {
		border-radius: 10px;
		box-shadow: 0 14px 32px rgba(200, 16, 90, .12);
	}
	.gp-header__icons .gp-live-search .gp-live-search__item {
		gap: 12px;
		min-height: 82px;
		padding: 10px 12px !important;
	}
	.gp-live-search__image {
		flex-basis: 60px;
		width: 60px !important;
		height: 60px !important;
	}
	.gp-live-search__title {
		font-size: .9rem;
	}
	.gp-header__icons .gp-live-search .gp-live-search__all {
		min-height: 46px;
		padding: 11px 12px !important;
	}
}
