/*
 * Custom footer and contact map styles for the MID child theme.
 */

/* =Custom footer
------------------------------------------------------- */

#main-footer .footer-container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
}

/* Call to action */
#main-footer #call-action {
	background-color: #eeeeee;
	margin-top: 40px;
	padding: 30px 0;
}
#main-footer .footer-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
}
#main-footer .footer-cta__text {
	flex: 1 1 70%;
}
#main-footer .footer-cta__text h1 {
	margin: 0;
	padding: 0;
	font-weight: 300;
	line-height: 1.2em;
}
#main-footer .footer-cta__action {
	flex: 1 1 22%;
	text-align: center;
}
#main-footer .footer-cta__button {
	display: block;
	width: 100%;
	padding: 0.3em 1em;
	border: 2px solid #000000;
	border-radius: 2px;
	background-color: #000000;
	color: #fff000;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
	transition: opacity 0.3s ease;
}
#main-footer .footer-cta__button:hover {
	opacity: 0.85;
}

/* Main footer body */
#main-footer .mid-footer-section {
	background-color: #000000;
	padding: 40px 0 5px;
	color: #ffffff;
}
#main-footer .footer-columns {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 5.5%;
}
#main-footer .footer-col {
	flex: 1 1 20%;
	min-width: 0;
	font-size: 13px;
	line-height: 1.9em;
}
#main-footer .footer-col__title {
	margin: 0 0 10px;
	padding: 0;
	color: #fff400;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4em;
}
#main-footer .footer-col p {
	margin: 0 0 1em;
	padding: 0;
	color: #ffffff;
}
#main-footer .footer-col a {
	color: #ffffff;
}
#main-footer .footer-col a:hover {
	color: #fff400;
}

/* Logos */
#main-footer .footer-logo {
	display: block;
	height: auto;
}
#main-footer .footer-logo--mid {
	max-width: 200px;
	margin-bottom: 20px;
}
#main-footer .footer-logo--cpia {
	max-width: 130px;
}

/* Dynamic menu columns */
#main-footer .footer-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}
#main-footer .footer-menu li {
	margin: 0;
	padding: 0;
	list-style: none;
}
#main-footer .footer-menu li a {
	display: block;
	color: #ffffff;
	text-decoration: none;
}
#main-footer .footer-menu li a:hover,
#main-footer .footer-menu li.current-menu-item > a {
	color: #fff400;
}

/* Divider */
#main-footer .footer-divider {
	height: 1px;
	margin: 30px 0 0;
	border: 0;
	background-color: #666666;
}

/* Bottom bar */
#main-footer .footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	padding: 15px 0 5px;
	gap: 10px;
}
#main-footer .footer-bottom__credits {
	flex: 1 1 60%;
}
#main-footer .footer-bottom__credits p {
	margin: 0;
	padding: 0;
	color: #999999;
	font-size: 12px;
}
#main-footer .footer-bottom__credits a {
	color: #999999;
}
#main-footer .footer-bottom__credits a:hover {
	color: #fff000;
}
#main-footer .footer-bottom__social {
	flex: 1 1 30%;
	text-align: right;
}
#main-footer .footer-social {
	margin: 0;
	padding: 0;
	list-style: none;
}
#main-footer .footer-social li {
	display: inline-block;
	margin: 0 0 0 10px;
	padding: 0;
	list-style: none;
}
#main-footer .footer-social a.icons {
	color: #999999;
	text-decoration: none;
}
#main-footer .footer-social a.icons:before {
	font-family: 'ETmodules';
	font-size: 1.5em;
	font-weight: normal;
	line-height: 1;
	padding-left: 1px;
}
#main-footer .footer-social a.icons:hover {
	color: #fff000;
}
#main-footer .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Tablet */
@media (max-width: 980px) {
	#main-footer .footer-cta__text,
	#main-footer .footer-cta__action {
		flex: 1 1 100%;
	}
	#main-footer .footer-col {
		flex: 1 1 45%;
	}
	#main-footer .mid-footer-section {
		padding-top: 30px;
	}
}

/* Phone */
@media (max-width: 767px) {
	#main-footer .footer-col {
		flex: 1 1 100%;
		margin-bottom: 20px;
	}
	#main-footer .footer-bottom {
		text-align: center;
	}
	#main-footer .footer-bottom__credits,
	#main-footer .footer-bottom__social {
		flex: 1 1 100%;
		text-align: center;
	}
	#main-footer .footer-social li {
		margin: 0 5px;
	}
}

/* =Custom contact map
------------------------------------------------------- */

.mid-map {
	width: 100%;
	margin: 0 auto;
}
.mid-map__frame {
	position: relative;
	display: block;
	width: 100%;
	line-height: 0;
}
.mid-map__image {
	display: block;
	width: 100%;
	height: auto;
}

/* Hotspot: the coordinates mark the point of the pin */
.mid-map__spot {
	position: absolute;
	width: 0;
	height: 0;
	line-height: 0;
}

/* Teardrop marker */
.mid-map__pin {
	position: absolute;
	bottom: 0;
	left: -13px;
	width: 26px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	line-height: 0;
	-webkit-appearance: none;
	appearance: none;
}
.mid-map__pin:focus {
	outline: none;
}
.mid-map__pin-icon {
	display: block;
	width: 26px;
	height: 36px;
	fill: #fff400;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
	transition: fill 0.2s ease, transform 0.2s ease;
	transform-origin: 50% 100%;
}
.mid-map__pin:hover .mid-map__pin-icon,
.mid-map__pin:focus .mid-map__pin-icon {
	fill: #ffde00;
	transform: scale(1.12);
}
.mid-map__pin:focus-visible .mid-map__pin-icon {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

/* Tooltip panel */
.mid-map__tooltip {
	position: absolute;
	bottom: 52px;
	left: 50%;
	z-index: 5;
	display: block;
	width: max-content;
	max-width: 300px;
	padding: 30px;
	background: rgba(0, 0, 0, 0.85);
	color: #ffffff;
	font-size: 15px;
	line-height: 1.6;
	text-align: left;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 8px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
	pointer-events: none;
}
.mid-map__tooltip-title {
	display: block;
	margin-bottom: 14px;
	color: #ffffff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}
.mid-map__tooltip-text {
	display: block;
	color: #ffffff;
}

/* Pointer */
.mid-map__tooltip:after {
	content: "";
	position: absolute;
	bottom: -8px;
	left: 50%;
	margin-left: -8px;
	border-width: 8px 8px 0 8px;
	border-style: solid;
	border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
}

/* Reveal on hover, and on focus for keyboard and touch */
.mid-map__spot:hover .mid-map__tooltip,
.mid-map__pin:focus + .mid-map__tooltip {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
	pointer-events: auto;
}

/* Small screens: smaller pins and a tighter panel */
@media (max-width: 767px) {
	.mid-map__pin,
	.mid-map__pin-icon {
		width: 18px;
		height: 25px;
	}
	.mid-map__pin {
		left: -9px;
	}
	.mid-map__tooltip {
		bottom: 34px;
		max-width: 180px;
		padding: 14px;
		font-size: 12px;
	}
	.mid-map__tooltip-title {
		margin-bottom: 8px;
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mid-map__pin-icon,
	.mid-map__tooltip {
		transition: none;
	}
}

/* Plus markers (product diagrams) */
.mid-map__plus-icon {
	display: block;
	width: 32px;
	height: 32px;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
	transition: transform 0.2s ease;
}
.mid-map--plus .mid-map__pin {
	bottom: auto;
	top: -16px;
	left: -16px;
	width: 32px;
	height: 32px;
}
.mid-map__plus-icon circle {
	fill: #ffd900;
	transition: fill 0.2s ease;
}
.mid-map__plus-bar {
	fill: #000000;
}
.mid-map__pin:hover .mid-map__plus-icon,
.mid-map__pin:focus .mid-map__plus-icon {
	transform: scale(1.15);
}
.mid-map__pin:hover .mid-map__plus-icon circle,
.mid-map__pin:focus .mid-map__plus-icon circle {
	fill: #ffff00;
}

/* Tooltips that carry a product photo */
.mid-map--plus .mid-map__tooltip {
	bottom: 26px;
	max-width: 240px;
	padding: 12px;
	text-align: center;
}
.mid-map__tooltip-image {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 0 10px;
	background: #ffffff;
}
.mid-map--plus .mid-map__tooltip-text {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}
.mid-map__tooltip-button {
	display: block;
	margin-top: 10px;
	padding: 7px 12px;
	border-radius: 3px;
	background: #ffff00;
	color: #000000;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s ease;
}
.mid-map__tooltip-button:hover,
.mid-map__tooltip-button:focus {
	background: #ffd900;
	color: #000000;
}

@media (max-width: 767px) {
	.mid-map--plus .mid-map__pin,
	.mid-map__plus-icon {
		width: 22px;
		height: 22px;
	}
	.mid-map--plus .mid-map__pin {
		top: -11px;
		left: -11px;
	}
	.mid-map--plus .mid-map__tooltip {
		bottom: 18px;
		max-width: 150px;
		padding: 8px;
	}
	.mid-map--plus .mid-map__tooltip-text {
		font-size: 12px;
	}
	.mid-map__tooltip-button {
		margin-top: 7px;
		padding: 5px 8px;
		font-size: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mid-map__plus-icon,
	.mid-map__plus-icon circle,
	.mid-map__tooltip-button {
		transition: none;
	}
}

