/**
 * Address lookup: the list of matching addresses under a street address box.
 * Used on the checkout (3.16.0) and on Gravity Forms address fields (3.17.0).
 * Loaded only with assets/js/address-lookup.js.
 */

.pm-addr {
	position: absolute;
	z-index: 50;
	left: 0;
	right: 0;
	top: 100%;
	box-sizing: border-box;
	margin: 4px 0 0;
	padding: 6px;
	list-style: none;
	border: 1px solid var(--pm-line, #e4e4e7);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(16, 32, 20, 0.16);
}

.pm-addr[hidden] {
	display: none;
}

.pm-addr__item {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 8px;
	margin: 0;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 15px;
	line-height: 1.35;
	cursor: pointer;
}

.pm-addr__item:hover,
.pm-addr__item.is-active {
	background: #f4f7f5;
}

.pm-addr__main {
	font-weight: 600;
	color: #0b2a1b;
}

.pm-addr__rest {
	color: #6b7280;
}

.pm-addr__by {
	margin: 2px 0 0;
	padding: 4px 12px 2px;
	font-size: 11px;
	text-align: right;
	color: #9ca3af;
}

/* Inside a Gravity Forms field. The form's own rules for every <span> and
   <li> in a Name or Address field (half-width blocks, bullets) would reach
   into the list; these put its rows back. */
.gform_wrapper .pm-addr,
.gform_wrapper .pm-addr li {
	list-style: none;
	text-align: left;
}

.gform_wrapper .pm-addr li.pm-addr__item {
	margin: 0;
	padding: 10px 12px;
}

.gform_wrapper .pm-addr li.pm-addr__by {
	text-align: right;
}

body .gform_wrapper .ginput_complex .pm-addr span {
	display: inline;
	flex: 0 1 auto;
	width: auto;
	min-width: 0;
	max-width: none;
	margin: 0;
	padding: 0;
}
