/* Frazer product search (looks like the FiboSearch "Solaris" box it replaces). */

.frz-search { position: relative; width: 100%; max-width: 600px; }
.frz-search__form { position: relative; display: flex; margin: 0; }
.frz-search .frz-search__input {
	flex: 1; min-width: 0; height: 40px; margin: 0; padding: 10px 15px; font-size: 14px; line-height: 1;
	color: #444; background: #fff; border: 1px solid #ddd; border-radius: 3px 0 0 3px;
	box-sizing: border-box; -webkit-appearance: none; appearance: none; box-shadow: none;
}
.frz-search .frz-search__input:focus { outline: 0; border-color: #088ae0; box-shadow: 0 0 9px 1px rgba(0, 0, 0, .06); }
.frz-search .frz-search__input::placeholder { color: #999; font-style: italic; opacity: 1; }
.frz-search .frz-search__input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.frz-search .frz-search__submit {
	position: relative; flex: 0 0 auto; width: 50px; height: 40px; margin: 0; padding: 0; border: 0;
	border-radius: 0 3px 3px 0; color: #fff; background: #333; cursor: pointer; line-height: 0;
}
.frz-search .frz-search__submit::before {
	content: ''; position: absolute; top: 12px; left: -6px;
	border-style: solid; border-width: 8px 8px 8px 0; border-color: transparent #333;
}
.frz-search .frz-search__submit:hover,
.frz-search .frz-search__submit:focus-visible { opacity: .8; }
.frz-search .frz-search__clear,
.frz-search .frz-search__mic {
	position: absolute; top: 0; right: 50px; width: 36px; height: 40px; margin: 0; padding: 0; border: 0;
	background: none; color: #999; font-size: 24px; line-height: 40px; cursor: pointer;
}
.frz-search .frz-search__clear:hover,
.frz-search .frz-search__mic:hover { color: #333; background: none; }
.frz-search .frz-search__mic svg { vertical-align: middle; }
.frz-search .frz-search__clear[hidden],
.frz-search .frz-search__mic[hidden] { display: none; }
.frz-search.is-listening .frz-search__mic { color: #d63638; }
.frz-search.is-loading .frz-search__submit svg { animation: frz-pulse .8s ease-in-out infinite alternate; }
@keyframes frz-pulse { to { opacity: .3; } }
.frz-search .frz-search__input { padding-right: 36px; } /* room for the clear / microphone button */

/* Astra styles every <button> (rounded, shadow, padding); our icon buttons are plain. */
.frz-search button, .frz-overlay button, .frz-drop button {
	box-shadow: none; text-shadow: none; min-height: 0; min-width: 0; letter-spacing: normal; text-transform: none;
}
.frz-search .frz-search__clear, .frz-search .frz-search__mic, .frz-search .frz-search__open,
.frz-overlay .frz-overlay__back, .frz-drop .frz-drop__clear-history { border-radius: 0; }

/* Icon layout (mobile menu): a magnifier that opens the full-screen search. */
.frz-search--icon { width: auto; }
.frz-search .frz-search__open {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
	border: 0; background: none; color: inherit; cursor: pointer;
}
.frz-search .frz-search__open:hover { background: none; opacity: .8; }

/* Astra menu item holding the box (FiboSearch's was 230px wide). */
.menu-item-frz-search { display: flex; align-items: center; padding: 0 12px; }
.main-header-menu .menu-item-frz-search .frz-search--classic { width: 230px; }

/* Dropdown */
.frz-backdrop { position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 99998; background: rgba(0, 0, 0, .25); }
.frz-backdrop[hidden], .frz-drop[hidden] { display: none; }
.frz-drop--inline {
	z-index: 99999; display: flex; align-items: stretch; max-width: calc(100vw - 16px);
	background: #fff; border: 1px solid #ddd; border-top: 0; border-radius: 0 0 5px 5px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .15); overflow: hidden;
}
.frz-drop__list { flex: 0 0 auto; max-width: 100%; max-height: calc(100vh - 140px); overflow-y: auto; }
.frz-drop--overlay .frz-drop__list { width: 100% !important; max-height: none; }
.frz-drop__head {
	display: flex; justify-content: space-between; align-items: center; margin: 12px 10px 2px; padding-bottom: 4px;
	border-bottom: 1px solid #ddd; font-size: 12px; text-transform: uppercase; color: #555;
}
.frz-drop__clear-history { border: 0; background: none; padding: 0; color: #088ae0; font-size: 12px; text-transform: none; cursor: pointer; }
.frz-drop__clear-history:hover { background: none; color: #1e73be; text-decoration: underline; }
.frz-item {
	display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid #eee;
	color: #444; font-size: 15px; line-height: 1.15; text-decoration: none !important;
}
.frz-item:hover, .frz-item:focus, .frz-item.is-active { background: #eee; color: #444; }
.frz-item strong { color: #1e73be; font-weight: 700; }
.frz-item--term { padding: 7px 10px; border-bottom: 0; font-weight: 600; color: #1e73be; }
.frz-item__img { flex: 0 0 40px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid #eee; border-radius: 3px; background: #fff; }
.frz-item__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.frz-item__text { min-width: 0; }
.frz-item__sku { display: inline-block; font-size: 12px; color: #666; }
.frz-item--more { justify-content: center; border-bottom: 0; font-size: 12px; text-transform: uppercase; color: #555; }
.frz-item--history { font-size: 14px; }
.frz-drop__empty { padding: 14px 12px; color: #666; font-size: 14px; }

/* Details panel */
.frz-drop__details { display: none; position: relative; flex: 0 0 320px; width: 320px; min-height: 340px; border-left: 1px solid #ddd; background: #fff; }
.frz-drop.has-details .frz-drop__details { display: block; }
.frz-drop__details.is-loading::after {
	content: ''; position: absolute; top: 50%; left: 50%; width: 28px; height: 28px; margin: -14px;
	border: 3px solid #ddd; border-top-color: #088ae0; border-radius: 50%; animation: frz-spin .7s linear infinite;
}
.frz-drop__details.is-loading .frz-det { opacity: .35; }
@keyframes frz-spin { to { transform: rotate(360deg); } }
.frz-det { padding: 16px; font-size: 14px; color: #444; }
.frz-det__img { display: block; text-align: center; margin: -16px -16px 12px; padding: 12px; border-bottom: 1px solid #eee; }
.frz-det__img img { max-height: 190px; width: auto; margin: 0 auto; }
.frz-det__title { display: block; font-size: 19px; line-height: 1.25; color: #333; text-decoration: none !important; }
.frz-det__title:hover { color: #1e73be; }
.frz-det__sku { font-size: 12px; color: #888; margin-top: 2px; }
.frz-det__price { margin: 10px 0 0; font-size: 18px; font-weight: 700; color: #111; }
.frz-det__desc { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eee; font-size: 13px; line-height: 1.6; }
.frz-det__buy { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #eee; }
.frz-det__buy .quantity { margin: 0; }
.frz-det__buy .quantity .qty { width: 64px; height: 40px; }
.frz-det__buy .button { margin: 0; }
.frz-det__buy .added_to_cart { flex-basis: 100%; font-size: 13px; }

/* Full-screen search on phones */
.frz-overlay { display: none; position: fixed; inset: 0; z-index: 100000; background: #fff; overflow-y: auto; }
.frz-overlay.is-open { display: block; }
html.frz-overlay-open, html.frz-overlay-open body { overflow: hidden; }
.frz-overlay__bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: stretch; background: #fff; border-bottom: 1px solid #088ae0; }
.frz-overlay__back { flex: 0 0 48px; border: 0; padding: 0; color: #fff; background: #ccc; cursor: pointer; line-height: 0; }
.frz-overlay__back:hover { background: #bbb; }
.frz-overlay .frz-search { position: static; max-width: none; flex: 1; }
.frz-overlay .frz-search__form { height: 100%; }
.frz-overlay .frz-search .frz-search__input { height: 48px; border: 0; border-radius: 0; font-size: 16px; /* 16px stops iOS zooming in */ }
.frz-overlay .frz-search .frz-search__input:focus { box-shadow: none; }
.frz-overlay .frz-search__submit { display: none; }
.frz-overlay .frz-search .frz-search__clear,
.frz-overlay .frz-search .frz-search__mic { right: 4px; height: 48px; line-height: 48px; }
.frz-drop--overlay .frz-item { padding: 10px 12px; }
