/* RS Product Page: header search next to "Shop". The field takes the menu's own text
 * colour, so it is white over the homepage video and dark on the white header. */
.rspp-hsearch[hidden] { display: none !important; }
/* Out of the menu's flow: the theme centres the logo in the space left between the left
 * and right menu groups, so the field must not make the left group wider. */
li.rspp-has-hsearch { position: relative; }
li.rspp-has-hsearch > .rspp-hsearch { display: flex; position: absolute; left: calc(100% + 18px); top: 50%; transform: translateY(-50%); }
@media (max-width: 1279px) {
	.rspp-hsearch { width: 150px; }
	.rspp-hsearch.is-focus, .rspp-hsearch:focus-within { width: 190px; }
}
@media (max-width: 1099px) {
	li.rspp-has-hsearch > .rspp-hsearch { display: none; }
}

.rspp-hsearch {
	position: relative; align-items: center; margin: 0; height: 34px; width: 190px;
	border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 32%, transparent);
	border-radius: 999px; background: color-mix(in srgb, currentColor 5%, transparent);
	transition: width .2s ease, border-color .2s ease, background .2s ease;
}
.rspp-hsearch.is-focus, .rspp-hsearch:focus-within {
	width: 250px; border-color: color-mix(in srgb, currentColor 70%, transparent); background: color-mix(in srgb, currentColor 8%, transparent);
}
.rspp-hsearch-icon { display: grid; place-items: center; flex: none; width: 34px; height: 100%; opacity: .75; }
.rspp-hsearch-icon svg { display: block; }
.rspp-hsearch.is-loading .rspp-hsearch-icon svg { animation: rspp-hs-pulse .8s ease-in-out infinite alternate; }
@keyframes rspp-hs-pulse { to { opacity: .3; } }

.rspp-hsearch input[type="search"] {
	flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0 14px 0 0; border: 0 !important; background: transparent !important;
	box-shadow: none !important; outline: none; color: inherit;
	font-family: inherit; font-size: 13px; font-weight: 400; letter-spacing: .02em; text-transform: none;
	-webkit-appearance: none; appearance: none;
}
.rspp-hsearch input[type="search"]::placeholder { color: currentColor; opacity: .6; }
.rspp-hsearch input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Suggestions */
.rspp-hsearch-list {
	position: absolute; z-index: 9999; top: calc(100% + 10px); left: 0; width: 340px; padding: 6px;
	background: #fff; color: #101020; border: 1px solid #e4e4ea; border-radius: 14px;
	box-shadow: 0 18px 48px rgba(16, 16, 32, .16), 0 2px 6px rgba(16, 16, 32, .06);
	text-align: left; letter-spacing: 0; text-transform: none;
}
.rspp-hsearch-list[hidden] { display: none; }
.rspp-hs-item {
	display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 8px;
	border-radius: 10px; color: #101020 !important; text-decoration: none !important;
}
.rspp-hs-item:hover, .rspp-hs-item.is-active { background: #f4f4f7; }
.rspp-hs-img { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: #f4f4f7; border: 1px solid #ececf1; }
.rspp-hs-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rspp-hs-name { font-size: 13px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rspp-hs-price { font-size: 12px; font-weight: 600; color: #55556a; white-space: nowrap; }
.rspp-hs-all {
	display: block; margin: 4px 2px 2px; padding: 10px 8px 6px; border-top: 1px solid #ececf1;
	font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #101020 !important; text-decoration: none !important;
}
.rspp-hs-all:hover { text-decoration: underline !important; }
.rspp-hs-empty { margin: 0; padding: 14px 10px; font-size: 13px; color: #6c6c7a; }

/* The field sits inside the theme's menu, so its menu-link rules (inline-flex, no padding,
 * small caps, hover lines) also reach the suggestion links. Hold the card's own layout,
 * and keep the field above the logo item, which stretches across the middle of the header
 * and is drawn after the Shop item. */
li.rspp-has-hsearch, li.rspp-has-hsearch > .rspp-hsearch { z-index: 5; }
.rspp-hsearch .rspp-hsearch-list a.rspp-hs-item {
	display: grid !important; grid-template-columns: 44px 1fr auto; width: auto !important; height: auto !important;
	margin: 0 !important; padding: 8px !important; float: none !important; position: static !important;
	font-size: 13px !important; line-height: 1.35 !important; letter-spacing: 0 !important; text-transform: none !important; white-space: normal !important;
}
.rspp-hsearch .rspp-hsearch-list a.rspp-hs-all {
	display: block !important; width: auto !important; margin: 4px 2px 2px !important; padding: 10px 8px 6px !important; float: none !important;
	font-size: 12px !important; line-height: 1.3 !important; letter-spacing: .06em !important; white-space: normal !important;
}
.rspp-hsearch .rspp-hsearch-list a::before, .rspp-hsearch .rspp-hsearch-list a::after { display: none !important; content: none !important; }
.rspp-hsearch .rspp-hs-name { font-size: 13px !important; font-weight: 500 !important; text-transform: none !important; letter-spacing: 0 !important; }
.rspp-hsearch .rspp-hs-price { font-size: 12px !important; letter-spacing: 0 !important; }
