/* GF Address Autocomplete */

.gfaa-search-wrap {
	position: relative;
	margin-bottom: 12px;
}

/* Inherit all visual styling (border, background, radius, font) from the theme.
   Only override what's needed for the search icon offset. */
.gfaa-search-input {
	width: 100% !important;
	box-sizing: border-box !important;
	padding-left: 34px !important;
}

/* Search icon as a pseudo-element on the wrapper so it never affects input styling */
.gfaa-search-wrap::before {
	content: '';
	position: absolute;
	left: 11px;
	top: 50%;
	transform: translateY(-50%);
	width: 15px;
	height: 15px;
	pointer-events: none;
	z-index: 1;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
}

.gfaa-dropdown {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 9999;
	margin: 0;
	padding: 4px 0;
	list-style: none;
	background: #fff;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
	max-height: 240px;
	overflow-y: auto;
}

.gfaa-option {
	padding: 9px 14px;
	font-size: 13px;
	line-height: 1.4;
	color: #222;
	cursor: pointer;
	transition: background 0.1s;
}

.gfaa-option:hover,
.gfaa-option--active {
	background: #f0f0ff;
	color: #3d3bdd;
}

@media (prefers-color-scheme: dark) {
	.gfaa-dropdown {
		background: #1e1e2e;
		border-color: #444;
	}

	.gfaa-option {
		color: #eee;
	}

	.gfaa-option:hover,
	.gfaa-option--active {
		background: #2a2a45;
		color: #a0a0ff;
	}
}
