/**
 * Pharmacy autocomplete dropdown.
 *
 * Deliberately independent of referral-form-cf7.css — that file styles the
 * field itself and is something the client pastes into Salient's Custom
 * CSS by hand, while this loads automatically with the plugin. Duplicating
 * a couple of variable-ish values (border colour, radius) here rather than
 * depending on the other file existing keeps this working even if that
 * one is ever missing or out of date.
 */

.cl-pac {
	position: relative;
}

.cl-pac__panel {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 40;
	max-height: 320px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid rgba(14, 36, 34, 0.14);
	border-radius: 8px;
	box-shadow: 0 12px 28px rgba(14, 36, 34, 0.14);
	padding: 6px;
}

.cl-pac__panel[hidden] {
	display: none;
}

.cl-pac .cl-pac__row {
	display: block;
	width: 100%;
	text-align: left;
	font: inherit;
	font-size: 0.95rem;
	color: #0e2422;
	background: transparent;
	border: 0;
	border-radius: 6px;
	padding: 10px 12px;
	cursor: pointer;
}

.cl-pac .cl-pac__row:hover,
.cl-pac .cl-pac__row.is-active {
	background: #f4f5f3;
}

.cl-pac__message {
	padding: 12px;
	font-size: 0.92rem;
	color: rgba(14, 36, 34, 0.55);
}

@media (prefers-reduced-motion: reduce) {
	.cl-pac__panel {
		scroll-behavior: auto;
	}
}
