/* SHINE Search Shortcode */
.shine-search {
	--shine-search-white: #fff;
	--shine-search-line: rgba(255, 255, 255, 0.72);
	--shine-search-panel: linear-gradient(180deg, rgba(43, 43, 43, 0.97) 0%, rgba(184, 184, 184, 0.98) 100%);
	position: relative;
	display: inline-flex;
	align-items: center;
	z-index: 99999;
}

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

.shine-search__trigger,
.shine-search__back,
.shine-search__close,
.shine-search__submit {
	font: inherit;
}

.shine-search__trigger {
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	appearance: none;
}

.shine-search__trigger img {
	display: block;
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.shine-search__panel {
	position: absolute;
	top: calc(100% + 1px);
	right: 0;
	width: min(100vw, 900px);
	min-width: 560px;
	padding: 27px 19px 13px;
	background: var(--shine-search-panel);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.shine-search.is-open .shine-search__panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.shine-search__inner {
	width: 100%;
}

.shine-search__mobile-top {
	display: none;
}

.shine-search__form {
	display: flex;
	align-items: stretch;
	gap: 15px;
	width: 100%;
}

.shine-search__field {
	flex: 1 1 auto;
	min-width: 0;
	display: block;
}

.shine-search__input {
	display: block;
	width: 100%;
	height: 42px;
	padding: 0 0 10px;
	border: 0;
	border-bottom: 1px solid var(--shine-search-line);
	border-radius: 0;
	outline: 0;
	background: transparent;
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	box-shadow: none !important;
}

.shine-search__input::placeholder {
	color: rgba(255, 255, 255, .76);
	opacity: 1;
}

.shine-search__input:focus {
	border-bottom-color: #fff;
}

.shine-search__submit {
	flex: 0 0 85px;
	width: 85px;
	height: 45px;
	padding: 0 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255,255,255,.72);
	border-radius: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	appearance: none;
}

.shine-search__submit-text {
	display: inline;
}

.shine-search__submit img {
	display: none;
	width: 20px;
	height: 20px;
	object-fit: contain;
}

/* Keep the panel inside the viewport when the shortcode is placed in a narrow header column. */
@media (min-width: 769px) {
	.shine-search__panel {
		left: auto;
	}
}

/* Mobile layout based on the supplied reference. */
@media (max-width: 768px) {
	.shine-search {
		position: static;
	}

	.shine-search__trigger {
		width: 30px;
		height: 30px;
		padding: 5px;
	}

	.shine-search__panel {
		position: fixed;
		top: 0;
		right: 0;
		left: 0;
		width: 100%;
		min-width: 0;
		height: 174px;
		padding: 9px 9px 0;
		background: linear-gradient(180deg, #4d4d4d 0%, #a8a8a8 100%);
		box-shadow: none;
		transform: translateY(-10px);
	}

	.shine-search__inner {
		width: 100%;
	}

	.shine-search__mobile-top {
		height: 39px;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.shine-search__back {
		width: 32px;
		height: 32px;
		padding: 0 0 4px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		border: 0;
		background: transparent;
		color: #fff;
		cursor: pointer;
		font-size: 31px;
		font-weight: 300;
		line-height: 1;
	}

	.shine-search__close {
		position: relative;
		width: 30px;
		height: 30px;
		padding: 0;
		border: 0;
		background: transparent;
		cursor: pointer;
	}

	.shine-search__close::before,
	.shine-search__close::after {
		content: "";
		position: absolute;
		top: 14px;
		left: 5px;
		width: 19px;
		height: 1.5px;
		background: #fff;
	}

	.shine-search__close::before {
		transform: rotate(45deg);
	}

	.shine-search__close::after {
		transform: rotate(-45deg);
	}

	.shine-search__form {
		display: flex;
		align-items: flex-end;
		gap: 14px;
		padding: 34px 0 0;
	}

	.shine-search__field {
		flex: 1 1 auto;
	}

	.shine-search__input {
		height: 31px;
		padding: 0 0 9px;
		font-size: 14px;
	}

	.shine-search__submit {
		flex: 0 0 32px;
		width: 32px;
		height: 32px;
		margin-bottom: 0;
		padding: 5px;
		border: 0;
		background: transparent;
	}

	.shine-search__submit-text {
		display: none;
	}

	.shine-search__submit img {
		display: block;
		width: 20px;
		height: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.shine-search__panel {
		transition: none;
	}
}
