.wave-lf-field,
.gform_wrapper .wave-lf-field {
	position: relative !important;
	isolation: isolate;
}

.wave-lf-field [hidden] {
	display: none !important;
}

.wave-lf-city-input {
	width: 100%;
	box-sizing: border-box;
}

/* Loading indicator — small spinner on the right edge of the input while AJAX is in flight. */
.wave-lf-field.is-loading .wave-lf-city-input {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 50 50'><circle cx='25' cy='25' r='20' fill='none' stroke='%231e6feb' stroke-width='4' stroke-dasharray='80' stroke-dashoffset='60'><animateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.8s' repeatCount='indefinite'/></circle></svg>");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 18px 18px;
	padding-right: 36px;
}

/* Selected-state checkmark on the right of the input. */
.wave-lf-field.has-selection:not(.is-loading) .wave-lf-city-input {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 18px 18px;
	padding-right: 36px;
}

/* ---------- Studio suggestion dropdown ---------- */

.wave-lf-suggestions,
.gform_wrapper .wave-lf-suggestions {
	position: absolute !important;
	top: calc(100% + 4px) !important;
	left: 0 !important;
	right: 0 !important;
	width: auto !important;
	background-color: #ffffff !important;
	border: 1px solid #d0d5dd !important;
	border-radius: 8px !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	max-height: 320px !important;
	overflow-y: auto !important;
	overflow-x: hidden !important;
	z-index: 9999 !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;

	/* Hidden-by-default state; .is-open class triggers the transition. */
	opacity: 0;
	transform: translateY(-6px);
	visibility: hidden;
	pointer-events: none;
	transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}

.wave-lf-suggestions.is-open {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
	pointer-events: auto;
	transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 0s;
}

.wave-lf-suggestions li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 10px 14px 10px 14px !important;
	cursor: pointer;
	font-size: 14px;
	color: #1a202c;
	background-color: #ffffff !important;
	border-bottom: 1px solid #f1f3f5;
	transition: background-color 0.12s ease;
}


.wave-lf-suggestions li:last-child {
	border-bottom: none;
}

.wave-lf-suggestions li:hover,
.wave-lf-suggestions li:focus {
	background-color: #f4f7fb !important;
	outline: none;
}

.wave-lf-suggestions li.is-nearest {
	background-color: #f7fbff !important;
}

.wave-lf-suggestions li.is-nearest:hover {
	background-color: #eaf2ff !important;
}

.wave-lf-li-name {
	color: #1a202c;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wave-lf-li-distance {
	color: #6b7280;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	flex-shrink: 0;
}

.wave-lf-suggestions li.wave-lf-no-results {
	color: #6b7280;
	cursor: default;
	font-style: italic;
	display: block;
}

.wave-lf-suggestions li.wave-lf-no-results:hover {
	background-color: #ffffff !important;
}

/* ---------- Appointment button ---------- */

/* Structural-only base: kept on every render so JS can find the element.
   No visual styling here — the theme owns visuals when custom classes are set. */
.wave-lf-appointment-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
}

/* Default visual variant — applied only when the admin has NOT entered custom CSS classes.
   With custom classes the .--default modifier is omitted, so this block becomes inert. */
.wave-lf-appointment-btn--default {
	padding: 10px 18px;
	background-color: #1e6feb !important;
	color: #ffffff !important;
	border: 1px solid #1e6feb;
	border-radius: 6px;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.1s ease;
}

.wave-lf-appointment-btn--default:hover,
.wave-lf-appointment-btn--default:focus {
	background-color: #1755b8 !important;
	color: #ffffff !important;
	text-decoration: none !important;
	outline: none;
}

.wave-lf-appointment-btn--default:active {
	transform: translateY(1px);
}

.wave-lf-appointment-btn-icon {
	font-size: 12px;
	opacity: 0.85;
}
