/**
 * Media Minds Press: footer Google Map, hours and directions (GMP).
 * Far right by default, far left option. 250x250 map, stacks on phones.
 * Override colors with --mmp-gmp-accent / --mmp-gmp-accent-text on :root.
 */

.mmp-footer-gmp {
	--mmp-gmp-size: 250px;
	--mmp-gmp-accent: var(--mmp-color-primary, #0b57d0);
	--mmp-gmp-accent-text: #fff;
	--mmp-gmp-radius: 8px;
	--mmp-gmp-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	box-sizing: border-box;
	width: var(--mmp-gmp-size);
	max-width: 100%;
	color: inherit;
	font-size: 0.9375rem;
	line-height: 1.5;
	text-align: left;
}

.mmp-footer-gmp *,
.mmp-footer-gmp *::before,
.mmp-footer-gmp *::after {
	box-sizing: inherit;
}

.mmp-footer-gmp__title {
	margin: 0 0 0.75rem;
	color: inherit;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.3;
}

.mmp-footer-gmp__subtitle {
	margin: 1rem 0 0.375rem;
	color: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
}

.mmp-footer-gmp__map {
	width: var(--mmp-gmp-size);
	max-width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--mmp-gmp-radius);
	background: #e8eaed;
}

.mmp-footer-gmp__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.mmp-footer-gmp__map-link {
	margin: 0.375rem 0 0;
	font-size: 0.875rem;
}

.mmp-footer-gmp__map-link a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.mmp-footer-gmp__address {
	display: flex;
	flex-direction: column;
	margin: 0.75rem 0 0;
	font-style: normal;
}

.mmp-footer-gmp__name {
	font-weight: 600;
}

.mmp-footer-gmp__hours {
	margin: 0;
}

.mmp-footer-gmp__hours-row {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
}

.mmp-footer-gmp__hours dt,
.mmp-footer-gmp__hours dd {
	margin: 0;
	font-weight: 400;
}

.mmp-footer-gmp__hours dd {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.mmp-footer-gmp__hours-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mmp-footer-gmp__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	min-height: 44px;
	margin-top: 1rem;
	padding: 0.625rem 1.125rem;
	border-radius: 6px;
	background: var(--mmp-gmp-accent);
	color: var(--mmp-gmp-accent-text);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 160ms var(--mmp-gmp-ease-out), opacity 160ms ease;
}

.mmp-footer-gmp__btn:hover,
.mmp-footer-gmp__btn:focus {
	color: var(--mmp-gmp-accent-text);
	text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
	.mmp-footer-gmp__btn:hover {
		opacity: 0.9;
	}
}

.mmp-footer-gmp__btn:active {
	transform: scale(0.97);
}

.mmp-footer-gmp a:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
	box-shadow: 0 0 0 5px #111;
}

.mmp-footer-gmp__icon {
	flex: none;
}

.mmp-footer-gmp .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Parent footer row placement. */
.mmp-footer-gmp-col {
	display: flex;
}

.mmp-footer-gmp-col--right {
	justify-content: flex-end;
}

.mmp-footer-gmp-col--left {
	justify-content: flex-start;
}

/* Fallback band for child themes with their own footer.php. */
.mmp-footer-gmp-band {
	padding: 2rem 0;
}

.mmp-footer-gmp-band__inner {
	display: flex;
	justify-content: flex-end;
}

.mmp-footer-gmp-band--left .mmp-footer-gmp-band__inner {
	justify-content: flex-start;
}

@media (max-width: 767.98px) {
	.mmp-footer-gmp-col,
	.mmp-footer-gmp-band__inner {
		justify-content: stretch;
		width: 100%;
	}

	.mmp-footer-gmp-col {
		margin-top: 1.5rem;
	}

	.mmp-footer-gmp-col--left {
		margin-top: 0;
		margin-bottom: 1.5rem;
	}

	.mmp-footer-gmp {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mmp-footer-gmp__btn {
		transition: none;
	}

	.mmp-footer-gmp__btn:active {
		transform: none;
	}
}
