.pdm {
	margin: 0 0 1.5em;
}

/* Sitting inside a contact form, in place of the field it replaces. */
.pdm--in-form {
	float: left;
	clear: both;
	width: 100%;
	box-sizing: border-box;
	text-align: left;
}

.pdm-label {
	margin-bottom: 8px;
	font-weight: 600;
}

.pdm-map {
	height: 380px;
}

.pdm-bar {
	display: flex;
	gap: 8px;
	margin-bottom: 8px;
}

.pdm-input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid #c9ced6;
	border-radius: 4px;
	font: inherit;
	font-size: 16px; /* stops iOS zooming the page on focus */
	color: inherit;
	background: #fff;
}

.pdm-input::placeholder {
	color: var(--pdm-placeholder, #999);
	opacity: 1;
}

.pdm-hint {
	margin: 0 0 8px;
	padding: 0;
	font-size: 14px;
}

.pdm-btn {
	flex: 0 0 auto;
	padding: 12px 16px;
	border: 0;
	border-radius: 4px;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: #2a6fdb;
	cursor: pointer;
}

.pdm-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.pdm-locate {
	display: block;
	width: 100%;
	margin-bottom: 8px;
	color: #2a6fdb;
	background: transparent;
	border: 1px solid currentColor;
}

.pdm-results {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
	border: 1px solid #c9ced6;
	border-radius: 4px;
	background: #fff;
}

.pdm-results li + li {
	border-top: 1px solid #e6e9ee;
}

.pdm-result {
	display: block;
	width: 100%;
	padding: 10px 14px;
	border: 0;
	font: inherit;
	text-align: left;
	color: inherit;
	background: transparent;
	cursor: pointer;
}

.pdm-result:hover,
.pdm-result:focus {
	background: #f1f5fb;
}

.pdm-map {
	width: 100%;
	border-radius: 4px;
	z-index: 0; /* keep Leaflet below sticky headers and popups */
}

.pdm-status {
	margin: 8px 0 0;
	padding: 0;
	font-size: 14px;
}

/*
 * The form field that receives the link stays in the form (so it is still
 * validated and sent) but is moved out of sight.
 */
.pdm-hidden-field {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 480px) {
	.pdm-bar {
		flex-direction: column;
	}
}
