/*
 * Header search: [calmabeauty_search]
 * Icon in the header, panel fixed directly under it.
 */

.gg-search-link-wrap {
	display: inline-flex;
	line-height: 0;
	color: var(--gg-cart-color, inherit);
}

button.gg-search-toggle.gg-search-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-height: 0;
	margin: 0;
	padding: 0.35rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	color: var(--gg-cart-color, inherit);
	line-height: 1;
	cursor: pointer;
}

button.gg-search-toggle.gg-search-toggle svg {
	display: block;
}

button.gg-search-toggle.gg-search-toggle[aria-expanded="true"] {
	color: var(--gg-cart-color, inherit);
}

.gg-search {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1000002;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	color: #1b1c1a;
	font-family: Manrope, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.gg-search[hidden] {
	display: none !important;
}

.gg-search.is-open {
	display: flex !important;
}

.gg-search *,
.gg-search *::before,
.gg-search *::after {
	box-sizing: border-box;
}

.gg-search__panel {
	flex: none;
	max-height: min(72vh, 680px);
	overflow: auto;
	padding: 18px 24px 22px;
	background: #fff;
	box-shadow: 0 18px 40px rgba(27, 28, 26, 0.12);
}

.gg-search__form,
.gg-search__results {
	width: min(760px, 100%);
	margin: 0 auto;
}

.gg-search__field {
	position: relative;
	display: block;
}

.gg-search__field > svg {
	position: absolute;
	top: 50%;
	left: 16px;
	color: #6e6a64;
	transform: translateY(-50%);
	pointer-events: none;
}

.gg-search .gg-search__input {
	display: block;
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 48px;
	border: 1px solid #e6e1d8;
	border-radius: 999px;
	background: #fbf9f5;
	box-shadow: none;
	color: #1b1c1a;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 52px;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
}

.gg-search .gg-search__input:focus {
	border-color: #b3924c;
	background: #fff;
}

.gg-search .gg-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

button.gg-search__close.gg-search__close {
	position: absolute;
	top: 50%;
	right: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	color: #1b1c1a;
	transform: translateY(-50%);
	cursor: pointer;
}

button.gg-search__close.gg-search__close:hover {
	background: #f3f1ec;
}

.gg-search__count,
.gg-search__status {
	margin: 16px 0 0;
	color: #6e6a64;
	font-size: 13px;
	line-height: 20px;
}

.gg-search__list {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.gg-search__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gg-search__item a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px;
	border-radius: 14px;
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}

.gg-search__item a:hover,
.gg-search__item a:focus-visible {
	background: #fbf9f5;
}

.gg-search__thumb {
	flex: none;
	width: 64px;
	height: 64px;
	margin: 0;
	border-radius: 10px;
	object-fit: cover;
	background: #f3f1ec;
}

.gg-search__thumb--empty {
	display: block;
}

.gg-search__copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 2px;
}

.gg-search__brand {
	color: #b3924c;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 16px;
	text-transform: uppercase;
}

.gg-search__name {
	color: #1b1c1a;
	font-size: 15px;
	font-weight: 600;
	line-height: 22px;
}

.gg-search__price {
	color: #6e6a64;
	font-size: 13px;
	line-height: 20px;
}

.gg-search__price del {
	margin-right: 6px;
	opacity: 0.7;
}

.gg-search__price .woocommerce-Price-amount,
.gg-search__price .price {
	color: inherit;
	font-size: inherit;
}

.gg-search__more {
	display: inline-flex;
	margin: 8px 10px 4px;
	color: #1b1c1a;
	font-size: 14px;
	font-weight: 600;
	line-height: 22px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

button.gg-search__backdrop.gg-search__backdrop {
	flex: 1 1 auto;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(27, 28, 26, 0.28);
	box-shadow: none;
	cursor: pointer;
}

.gg-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 640px) {
	.gg-search__panel {
		padding: 14px 16px 18px;
	}

	.gg-search__thumb {
		width: 56px;
		height: 56px;
	}
}
