/*
 * Google address autocomplete (assets/js/address-autocomplete.js).
 * Loaded only when a Google API key is set, so it stays out of child-style.min.css.
 */

.niu-aac {
	position: relative;
	height: 0;
}

.niu-aac__panel {
	position: absolute;
	top: 2px;
	left: 0;
	right: 0;
	z-index: 1000;
	overflow: hidden;
	background: #fff;
	border: 1px solid #d3d3d3;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

/* Two classes deep, to beat the parent theme's .entry-content ul / li styles. */
.niu-aac .niu-aac__list {
	max-height: 260px;
	margin: 0;
	padding: 4px 0;
	overflow-y: auto;
	list-style: none;
}

.niu-aac .niu-aac__option {
	position: static;
	margin: 0;
	padding: 8px 12px;
	line-height: 1.35;
	text-align: left;
	list-style: none;
	cursor: pointer;
}

/* The parent theme puts a bullet before list items in page content. */
.niu-aac .niu-aac__option::before {
	content: none;
	display: none;
}

.niu-aac .niu-aac__option:hover,
.niu-aac .niu-aac__option[aria-selected="true"] {
	background: #f2f2f2;
}

.niu-aac__main {
	display: block;
	color: #222;
}

.niu-aac__secondary {
	display: block;
	font-size: .85em;
	color: #6b6b6b;
}

/*
 * Google requires this attribution when its suggestions show without a map:
 * "Google Maps" on one line, in English, with this capitalisation.
 */
.niu-aac__attribution {
	padding: 4px 12px 6px;
	border-top: 1px solid #eee;
	font-family: Roboto, Arial, sans-serif;
	font-size: 12px;
	color: #5e5e5e;
	text-align: right;
	white-space: nowrap;
}
