/* TrueCare Locations Map
   Values that an editor can change live in custom properties set by the plugin's
   settings screen; see TCLM_Shortcode::inline_css(). */

.tclm {
	position: relative;
	margin: 0;
}

.tclm-map {
	width: 100%;
	height: var(--tclm-h, 440px);
	border: 1px solid var(--tclm-iw-border, #e41b7a);
	background: #e5e3df;
}

@media (max-width: 980px) {
	.tclm-map { height: var(--tclm-h-tablet, 400px); }
}

@media (max-width: 767px) {
	.tclm-map { height: var(--tclm-h-phone, 350px); }
}

/* Cookiebot shows and hides the two wrappers itself (optout / optin classes), so
   their display must be left entirely to it. When it shows them it uses
   `display: inline` — harmless for a wrapper, fatal for a sized box — which is why
   the map div is a block *inside* the wrapper rather than carrying the class. */
.tclm-map { display: block; }

.tclm-placeholder {
	box-sizing: border-box;
}

/* Info window ------------------------------------------------------------- */

/* The overlay is positioned at the pin's top edge; the anchor lifts the box by its
   own height so the window sits above the pin whatever its content length. */
.tclm-iw__anchor {
	position: absolute;
	transform: translateY(-100%);
	z-index: 2;
}

.tclm-iw {
	position: relative;
	width: var(--tclm-iw-w, 250px);
	box-sizing: border-box;
	background: #fff;
	border: 1px solid var(--tclm-iw-border, #e41b7a);
	border-radius: var(--tclm-iw-radius, 5px);
	box-shadow: 6px 6px 18px 0 rgba(0, 0, 0, 0.3);
	animation: tclm-iw-in 0.5s;
}

@keyframes tclm-iw-in {
	0%       { transform: translateY(-14px); opacity: 0; }
	55%      { transform: translateY(4px);   opacity: 1; }
	78%      { transform: translateY(-3px); }
	100%     { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.tclm-iw { animation: none; }
}

.tclm-iw__close {
	position: absolute;
	top: 2px;
	right: 6px;
	padding: 0 4px;
	border: 0;
	background: none;
	color: var(--tclm-iw-close, #f88807);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.tclm-iw__close:hover,
.tclm-iw__close:focus-visible {
	opacity: 0.75;
}

.tclm-iw__body {
	padding: 14px 16px 12px;
	max-height: 320px;
	overflow-y: auto;
}

.tclm-iw__banner {
	margin: -14px -16px 12px;
	padding: 6px 16px;
	background: #f58821;
	color: #fff;
	font-family: "Open Sans", sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: var(--tclm-iw-radius, 5px) var(--tclm-iw-radius, 5px) 0 0;
}

.tclm-iw__title {
	margin: 0 0 8px;
	padding: 0 14px 0 0;
	color: var(--tclm-iw-title, #e41b7a);
	font-size: var(--tclm-iw-title-size, 17px);
	line-height: 1.3em;
}

.tclm-iw__content p,
.tclm-iw__content li {
	color: var(--tclm-iw-body, #666);
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	line-height: 1.5em;
}

.tclm-iw__content p { margin: 0 0 10px; }
.tclm-iw__content p:last-child { margin-bottom: 0; }

.tclm-iw__list {
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.tclm-iw__list li {
	margin: 0 0 8px;
	padding: 0 0 8px;
	border-bottom: 1px solid #eee;
}

.tclm-iw__list li:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.tclm-noscript {
	margin: 0;
	padding: 16px;
	list-style: none;
	border: 1px solid #e6e6e6;
}
