/* RNF Inline Search - colours and width come from CSS variables set in PHP. */

/* Kill the full-screen Kadence search popup entirely. */
#search-drawer,
.popup-drawer#search-drawer {
	display: none !important;
}

.rnf-is-anchor {
	position: relative;
}

.rnf-is-form {
	display: none;
	align-items: stretch;
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: min(var(--rnf-is-width, 340px), calc(100vw - 24px));
	margin: 0;
	background: var(--rnf-is-bg, #fff);
	border-radius: var(--rnf-is-radius, 4px);
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
	z-index: 99999;
}

.rnf-is-form.rnf-is-below {
	top: calc(100% + 8px);
	transform: none;
}

.rnf-is-form.is-open {
	display: flex;
}

.rnf-is-form input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 0;
	outline: none;
	box-shadow: none;
	background: transparent;
	color: var(--rnf-is-text, #111);
	font-size: 16px; /* 16px stops iOS zooming on focus */
	-webkit-appearance: none;
	appearance: none;
}

.rnf-is-form input[type="search"]::placeholder {
	color: var(--rnf-is-text, #111);
	opacity: 0.55;
}

.rnf-is-form input[type="search"]::-webkit-search-cancel-button {
	display: none;
}

.rnf-is-form button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	box-shadow: none;
	line-height: 1;
}

.rnf-is-form .rnf-is-submit {
	background: transparent;
	color: var(--rnf-is-icon, #111);
}

.rnf-is-form .rnf-is-close {
	background: var(--rnf-is-accent, #a11d1a);
	color: var(--rnf-is-accent-icon, #fff);
}

.rnf-is-form .rnf-is-submit:hover,
.rnf-is-form .rnf-is-submit:focus-visible {
	opacity: 0.7;
}

.rnf-is-form .rnf-is-close:hover,
.rnf-is-form .rnf-is-close:focus-visible {
	filter: brightness(1.15);
}

.rnf-is-form svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
}
