/* GDPR Google Maps – Frontend */

.hph-gm {
	position: relative;
	display: block;
	width: 100%;
	margin: 0 auto;
	overflow: hidden;
	background: #e9e9e9;
}

.hph-gm__consent,
.hph-gm__map {
	position: absolute;
	inset: 0;
}

.hph-gm__map {
	z-index: 1;
}

.hph-gm__consent {
	z-index: 2;
}

.hph-gm__preview {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: filter .3s ease-in-out;
}

.hph-gm__preview--placeholder {
	background-color: #e9e9e9;
	background-image:
		url('pin.svg'),
		linear-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 0, 0, .05) 1px, transparent 1px);
	background-position: center calc(50% - 20px), 0 0, 0 0;
	background-size: 22px auto, 40px 40px, 40px 40px;
	background-repeat: no-repeat, repeat, repeat;
}

.hph-gm:hover .hph-gm__preview {
	filter: blur(4px);
}

.hph-gm__box {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 3;
	width: 90%;
	max-width: 360px;
	padding: 20px;
	box-sizing: border-box;
	transform: translate(-50%, -50%);
	text-align: center;
	font-size: 13px;
	line-height: 1.4;
	color: #222;
	background: rgba(255, 255, 255, .85);
	border-radius: 4px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
}

.hph-gm__headline {
	display: block;
	margin-bottom: 8px;
	font-size: 15px;
}

.hph-gm__text {
	margin: 0 0 12px;
}

.hph-gm__text a {
	text-decoration: underline;
}

.hph-gm__remember {
	display: block;
	margin: 0 0 12px;
	cursor: pointer;
}

.hph-gm__remember-input {
	margin-right: 6px;
	vertical-align: middle;
}

.hph-gm__load {
	display: inline-block;
	width: auto;
	padding: 8px 28px;
	cursor: pointer;
	border: 0;
	border-radius: 3px;
	background: rgba(255, 255, 255, .95);
	color: inherit;
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, .2);
	transition: background .2s ease-in-out;
}

.hph-gm__load:hover,
.hph-gm__load:focus {
	background: #fff;
}

.hph-gm.is-loading .hph-gm__load {
	opacity: .5;
	pointer-events: none;
}

.hph-gm__error {
	margin: 12px 0 0;
	padding: 8px;
	background: #ffdcdc;
	border-radius: 3px;
	font-weight: bold;
}

.hph-gm__error--overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 4;
	width: 90%;
	max-width: 360px;
	margin: 0;
	transform: translate(-50%, -50%);
	text-align: center;
	font-size: 13px;
}

.hph-gm__popup {
	display: flow-root;
	max-width: 280px;
	font-size: 14px;
	line-height: 1.45;
}

.hph-gm__popup .alignleft,
.hph-gm__popup .alignright {
	float: none;
	margin-left: 0;
	margin-right: 0;
}

.hph-gm__popup img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 6px 0;
}

.hph-gm__popup p,
.hph-gm__popup ul,
.hph-gm__popup ol {
	margin: 0 0 6px;
}

.hph-gm__popup-title {
	display: block;
	margin: 0 0 6px;
	font-size: 15px;
}

.hph-gm__popup figure {
	margin: 6px 0;
}

.hph-gm__popup h1,
.hph-gm__popup h2,
.hph-gm__popup h3,
.hph-gm__popup h4 {
	margin: 0 0 6px;
	font-size: 15px;
	line-height: 1.3;
}

.hph-gm-notice {
	padding: 2%;
	border: 1px solid #c00;
	border-radius: 5px;
	background: #ffdcdc;
	font-weight: bold;
}
