/**
 * DOT Map Popup — dealer card over the clicked pin (see map-popup.js).
 *
 * Same card on every DOT site. What changes per site comes from the site:
 *   --primary / --black   theme variables (QJ red, Kove teal)
 *   fonts                 copied in JS from the page and the list title
 *   pin, tag, icons       ASL markers and categories
 *
 * Selectors carry #asl-storelocator twice on purpose: the themes hide ASL's
 * InfoBox with up to two ids + five classes and !important, and ASL styles its
 * default infobox with #asl-storelocator.asl-cont; this has to win over both.
 */

html body #asl-storelocator#asl-storelocator #asl-map-canv .infoBox {
	display: block !important;
	width: 300px;
	padding-bottom: 14px; /* pointer + gap above the pin */
	overflow: visible !important;
	background: none;
	box-shadow: none;
}

/* ASL's close button, whatever image the version ships: white cross on a black disc over the corner. */
html body #asl-storelocator#asl-storelocator #asl-map-canv .infoBox > img {
	position: absolute !important;
	top: -8px;
	right: -8px;
	z-index: 20;
	box-sizing: border-box;
	width: 24px;
	height: 24px;
	margin: 0 !important;
	padding: 6px;
	border-radius: 9999px;
	background: var(--black, #000);
	content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 2.5l7 7M9.5 2.5l-7 7' stroke='%23fff' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
	cursor: pointer;
}

html body #asl-storelocator#asl-storelocator #asl-map-canv .infoBox .infoWindow {
	position: relative;
	float: none;
	top: auto;
	left: auto;
	right: auto;
	box-sizing: border-box;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 10px;
	border-radius: 12px;
	overflow: visible !important;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	font-size: 14px;
	text-align: left;
}

html body #asl-storelocator#asl-storelocator #asl-map-canv .infoBox .infoWindow:after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -10px;
	margin-left: -10px;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-top: 10px solid #fff;
}

#asl-storelocator .dot-iw {
	position: relative;
	display: flex;
	flex-direction: column;
	color: var(--black, #000);
}

#asl-storelocator .dot-iw p {
	margin: 0;
	padding: 0;
}

/* ----- head: pin | name + address | vehicle icons ----- */
#asl-storelocator .dot-iw > .addr-sec {
	display: flex;
	gap: 8px;
	justify-content: flex-start;
	width: auto;
	margin: 0;
	padding: 0 !important;
	border: 0;
	background: none;
	cursor: default;
}

#asl-storelocator .dot-iw > .addr-sec > .marker {
	display: flex;
	flex-shrink: 0;
	justify-content: center;
	align-items: flex-start;
	width: 40px;
	height: 40px;
	margin: 2px 0 0;
	position: static;
	background: none;
}

#asl-storelocator .dot-iw > .addr-sec > .marker img {
	display: block !important;
	width: auto !important;
	max-width: 100%;
	height: 100% !important;
	margin: 0;
	object-fit: contain;
}

#asl-storelocator .dot-iw > .addr-sec > div:not([class]) {
	flex: 1 1 auto;
	min-width: 0;
}

#asl-storelocator .dot-iw .p-title {
	margin-bottom: 4px;
	font-size: 14px;
	line-height: 16px;
	font-weight: 700;
	color: var(--black, #000);
	text-transform: none;
}

#asl-storelocator .dot-iw .p-address {
	font-size: 14px;
	line-height: 16px;
	font-weight: 400;
	color: var(--primary, #d80c24);
}

/* right column: vehicle icons */
#asl-storelocator .dot-iw .dot-iw-side {
	display: flex;
	flex-shrink: 0;
	align-items: flex-start;
	padding-top: 2px;
}

#asl-storelocator .dot-iw .asl-store-categories {
	display: flex;
	gap: 7px;
	align-items: flex-start;
	justify-content: flex-end;
	margin: 0;
	padding: 0;
}

#asl-storelocator .dot-iw .asl-store-categories img {
	display: block;
	width: auto;
	height: 25px;
}

/* ----- tag: same pill as the list card ----- */
/* a line of its own, flush left, over the pin */
#asl-storelocator .dot-iw .sl-category-tag {
	position: static;
	align-self: flex-start;
	margin: 0 0 8px;
	padding: 2px 4px;
	border-radius: 9999px;
	font-size: 10px;
	line-height: 14px;
	font-weight: 700;
	white-space: nowrap;
	color: #fff;
	background: var(--primary, #d80c24);
}

#asl-storelocator .dot-iw .sl-tag-category-2 {
	background: var(--black, #000);
}

/* ----- contact rows ----- */
#asl-storelocator .dot-iw .dot-iw-contact {
	padding-top: 12px;
}

#asl-storelocator .dot-iw .dot-iw-contact:empty {
	display: none;
}

#asl-storelocator .dot-iw .dot-iw-contact .p-area {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 8px 0 !important;
	border-bottom: 1px solid var(--grey1, #e5e5e5);
}

#asl-storelocator .dot-iw .dot-iw-contact .p-area:first-of-type {
	border-top: 1px solid var(--grey1, #e5e5e5);
}

#asl-storelocator .dot-iw .dot-iw-contact .p-area:last-of-type {
	border-bottom: none;
}

#asl-storelocator .dot-iw .dot-iw-contact a {
	min-width: 0;
	font-size: 14px;
	line-height: 16px;
	font-weight: 400;
	color: var(--black, #000);
	text-decoration: none;
	text-transform: lowercase;
	word-break: break-all;
}

#asl-storelocator .dot-iw .dot-iw-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin: 0 8px 0 0;
	background-color: var(--primary, #d80c24);
	-webkit-mask: center / contain no-repeat;
	mask: center / contain no-repeat;
}

#asl-storelocator .dot-iw .dot-iw-icon-phone {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.65799 3.29283C5.47085 3.10553 5.21668 3 4.95159 3C4.68638 3 4.43222 3.10553 4.24508 3.29283C3.74812 3.7899 2.97135 4.56654 2.48799 5.05033C2.12565 5.41275 1.95009 5.9219 2.01233 6.4309C2.01233 6.43291 2.01267 6.43525 2.013 6.4376C2.20427 7.77131 2.95897 10.864 6.04834 13.9542C9.13809 17.0446 12.2304 17.7997 13.5646 17.9867C13.5666 17.9871 13.5686 17.9874 13.5706 17.9877C14.0781 18.0497 14.5861 17.8747 14.9479 17.513C15.4328 17.0325 16.2099 16.2552 16.7072 15.7578C16.8948 15.5706 17 15.3164 17 15.0511C17 14.786 16.8945 14.5317 16.7072 14.3446C16.0733 13.7105 14.9522 12.5891 14.3184 11.955C14.1311 11.7678 13.8769 11.6622 13.6118 11.6622C13.3468 11.6622 13.0926 11.7675 12.9053 11.955L11.6247 13.2361C11.5533 13.3074 11.4534 13.3424 11.3535 13.3317C10.8379 13.1764 9.7843 12.735 8.51794 11.4683C7.25323 10.2032 6.81952 9.15973 6.67765 8.65004C6.66695 8.55132 6.70096 8.45438 6.77022 8.38511C6.77189 8.38377 6.77357 8.38209 6.7749 8.38042C7.08562 8.05692 7.64627 7.4966 8.04697 7.09546C8.23445 6.90816 8.33973 6.65393 8.33973 6.38878C8.33973 6.12362 8.23412 5.86938 8.04697 5.6821L5.65799 3.29283ZM5.18702 3.76391L7.57601 6.15335C7.63825 6.21571 7.6736 6.30072 7.6736 6.38895C7.6736 6.47719 7.63825 6.56219 7.57601 6.62455C7.17297 7.02758 6.60963 7.59104 6.29661 7.91688C6.07478 8.14043 5.9725 8.45624 6.02114 8.76746C6.02315 8.7794 6.02549 8.79145 6.02883 8.80305C6.17839 9.35512 6.63465 10.5269 8.04702 11.9395C9.45593 13.3491 10.6321 13.8142 11.1864 13.9774C11.1998 13.9814 11.2131 13.9845 11.2264 13.9868C11.5446 14.0391 11.8683 13.9352 12.0962 13.7069C12.0962 13.7073 13.3765 12.4262 13.3765 12.4262C13.4388 12.3639 13.5238 12.3286 13.612 12.3286C13.72 12.3286 13.7852 12.3639 13.8476 12.4262L16.2364 14.8157C16.2987 14.878 16.334 14.963 16.334 15.0512C16.334 15.1396 16.2987 15.2245 16.2364 15.2868C15.7398 15.7836 14.9637 16.5599 14.478 17.0406C14.4777 17.0413 14.4774 17.0416 14.477 17.042C14.2615 17.2572 13.9598 17.3621 13.6573 17.3268C12.3846 17.1478 9.4538 16.418 6.51965 13.483C3.58551 10.5481 2.85576 7.61643 2.67361 6.34649C2.63725 6.0423 2.74253 5.73808 2.95934 5.52124L4.71643 3.76374C4.77877 3.70149 4.86364 3.66613 4.95197 3.66613C5.04019 3.66613 5.12517 3.70149 5.1874 3.76374L5.18702 3.76391Z' fill='%23000'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.65799 3.29283C5.47085 3.10553 5.21668 3 4.95159 3C4.68638 3 4.43222 3.10553 4.24508 3.29283C3.74812 3.7899 2.97135 4.56654 2.48799 5.05033C2.12565 5.41275 1.95009 5.9219 2.01233 6.4309C2.01233 6.43291 2.01267 6.43525 2.013 6.4376C2.20427 7.77131 2.95897 10.864 6.04834 13.9542C9.13809 17.0446 12.2304 17.7997 13.5646 17.9867C13.5666 17.9871 13.5686 17.9874 13.5706 17.9877C14.0781 18.0497 14.5861 17.8747 14.9479 17.513C15.4328 17.0325 16.2099 16.2552 16.7072 15.7578C16.8948 15.5706 17 15.3164 17 15.0511C17 14.786 16.8945 14.5317 16.7072 14.3446C16.0733 13.7105 14.9522 12.5891 14.3184 11.955C14.1311 11.7678 13.8769 11.6622 13.6118 11.6622C13.3468 11.6622 13.0926 11.7675 12.9053 11.955L11.6247 13.2361C11.5533 13.3074 11.4534 13.3424 11.3535 13.3317C10.8379 13.1764 9.7843 12.735 8.51794 11.4683C7.25323 10.2032 6.81952 9.15973 6.67765 8.65004C6.66695 8.55132 6.70096 8.45438 6.77022 8.38511C6.77189 8.38377 6.77357 8.38209 6.7749 8.38042C7.08562 8.05692 7.64627 7.4966 8.04697 7.09546C8.23445 6.90816 8.33973 6.65393 8.33973 6.38878C8.33973 6.12362 8.23412 5.86938 8.04697 5.6821L5.65799 3.29283ZM5.18702 3.76391L7.57601 6.15335C7.63825 6.21571 7.6736 6.30072 7.6736 6.38895C7.6736 6.47719 7.63825 6.56219 7.57601 6.62455C7.17297 7.02758 6.60963 7.59104 6.29661 7.91688C6.07478 8.14043 5.9725 8.45624 6.02114 8.76746C6.02315 8.7794 6.02549 8.79145 6.02883 8.80305C6.17839 9.35512 6.63465 10.5269 8.04702 11.9395C9.45593 13.3491 10.6321 13.8142 11.1864 13.9774C11.1998 13.9814 11.2131 13.9845 11.2264 13.9868C11.5446 14.0391 11.8683 13.9352 12.0962 13.7069C12.0962 13.7073 13.3765 12.4262 13.3765 12.4262C13.4388 12.3639 13.5238 12.3286 13.612 12.3286C13.72 12.3286 13.7852 12.3639 13.8476 12.4262L16.2364 14.8157C16.2987 14.878 16.334 14.963 16.334 15.0512C16.334 15.1396 16.2987 15.2245 16.2364 15.2868C15.7398 15.7836 14.9637 16.5599 14.478 17.0406C14.4777 17.0413 14.4774 17.0416 14.477 17.042C14.2615 17.2572 13.9598 17.3621 13.6573 17.3268C12.3846 17.1478 9.4538 16.418 6.51965 13.483C3.58551 10.5481 2.85576 7.61643 2.67361 6.34649C2.63725 6.0423 2.74253 5.73808 2.95934 5.52124L4.71643 3.76374C4.77877 3.70149 4.86364 3.66613 4.95197 3.66613C5.04019 3.66613 5.12517 3.70149 5.1874 3.76374L5.18702 3.76391Z' fill='%23000'/%3E%3C/svg%3E");
}

#asl-storelocator .dot-iw .dot-iw-icon-mail {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.46344 5C2.65154 5 2 5.64367 2 6.417V13.5776C2 14.3509 2.65151 15 3.46344 15H15.5366C16.3485 15 17 14.3509 17 13.5776V6.417C17 5.64367 16.3485 5 15.5366 5H3.46344ZM3.46344 5.68961H15.5366C15.6449 5.68961 15.7471 5.71896 15.8395 5.75961L9.95155 11.0291C9.68129 11.271 9.33051 11.271 9.05975 11.0291L3.16038 5.75961C3.25289 5.71896 3.3551 5.68961 3.4633 5.68961H3.46344ZM2.74314 6.33618L6.91026 10.0595L2.81141 13.9173C2.76011 13.8169 2.7314 13.7018 2.7314 13.578V6.41737C2.7314 6.38935 2.73995 6.36349 2.74276 6.33655L2.74314 6.33618ZM16.2568 6.33618C16.2597 6.36312 16.2682 6.38898 16.2682 6.417V13.5776C16.2682 13.6998 16.238 13.8122 16.1881 13.9117L12.1011 10.0538L16.2568 6.33618ZM11.5693 10.5333L15.5708 14.3105H15.5365H3.46338H3.4348L7.44219 10.5389L8.55689 11.5302C9.08783 12.0046 9.924 12.0053 10.4548 11.5302L11.5693 10.5333Z' fill='%23000'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.46344 5C2.65154 5 2 5.64367 2 6.417V13.5776C2 14.3509 2.65151 15 3.46344 15H15.5366C16.3485 15 17 14.3509 17 13.5776V6.417C17 5.64367 16.3485 5 15.5366 5H3.46344ZM3.46344 5.68961H15.5366C15.6449 5.68961 15.7471 5.71896 15.8395 5.75961L9.95155 11.0291C9.68129 11.271 9.33051 11.271 9.05975 11.0291L3.16038 5.75961C3.25289 5.71896 3.3551 5.68961 3.4633 5.68961H3.46344ZM2.74314 6.33618L6.91026 10.0595L2.81141 13.9173C2.76011 13.8169 2.7314 13.7018 2.7314 13.578V6.41737C2.7314 6.38935 2.73995 6.36349 2.74276 6.33655L2.74314 6.33618ZM16.2568 6.33618C16.2597 6.36312 16.2682 6.38898 16.2682 6.417V13.5776C16.2682 13.6998 16.238 13.8122 16.1881 13.9117L12.1011 10.0538L16.2568 6.33618ZM11.5693 10.5333L15.5708 14.3105H15.5365H3.46338H3.4348L7.44219 10.5389L8.55689 11.5302C9.08783 12.0046 9.924 12.0053 10.4548 11.5302L11.5693 10.5333Z' fill='%23000'/%3E%3C/svg%3E");
}

#asl-storelocator .dot-iw .dot-iw-icon-web {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='.7'%3E%3Ccircle cx='10' cy='10' r='7.65'/%3E%3Cellipse cx='10' cy='10' rx='3.7' ry='7.65'/%3E%3Cpath d='M2.35 10h15.3M10 2.35v15.3M4 5.6c1.6 1 3.7 1.6 6 1.6s4.4-.6 6-1.6M4 14.4c1.6-1 3.7-1.6 6-1.6s4.4.6 6 1.6'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='.7'%3E%3Ccircle cx='10' cy='10' r='7.65'/%3E%3Cellipse cx='10' cy='10' rx='3.7' ry='7.65'/%3E%3Cpath d='M2.35 10h15.3M10 2.35v15.3M4 5.6c1.6 1 3.7 1.6 6 1.6s4.4-.6 6-1.6M4 14.4c1.6-1 3.7-1.6 6-1.6s4.4.6 6 1.6'/%3E%3C/svg%3E");
}

/* Desktop: a touch smaller, as the list. */
@media (min-width: 1150px) {
	#asl-storelocator .dot-iw .p-title,
	#asl-storelocator .dot-iw .p-address,
	#asl-storelocator .dot-iw .dot-iw-contact a {
		font-size: 13px;
		line-height: 15px;
	}
}

/* ----- Mobile (.dot-iw-compact, set in JS with the theme's own isMobile() cut): after a
   search the map only has ~230px between the search bar and the half sheet, and pin +
   card must fit there. Same content, tighter spacing and type. ----- */
html body #asl-storelocator#asl-storelocator.dot-iw-compact #asl-map-canv .infoBox {
	padding-bottom: 10px;
}

html body #asl-storelocator#asl-storelocator.dot-iw-compact #asl-map-canv .infoBox > img {
	top: -7px;
	right: -7px;
	width: 22px;
	height: 22px;
}

html body #asl-storelocator#asl-storelocator.dot-iw-compact #asl-map-canv .infoBox .infoWindow {
	padding: 8px;
	border-radius: 10px;
}

html body #asl-storelocator#asl-storelocator.dot-iw-compact #asl-map-canv .infoBox .infoWindow:after {
	bottom: -8px;
	margin-left: -8px;
	border-left-width: 8px;
	border-right-width: 8px;
	border-top-width: 8px;
}

#asl-storelocator.dot-iw-compact .dot-iw > .addr-sec {
	gap: 6px;
}

#asl-storelocator.dot-iw-compact .dot-iw > .addr-sec > .marker {
	width: 28px;
	height: 28px;
	margin-top: 2px;
}

#asl-storelocator.dot-iw-compact .dot-iw .p-title {
	margin-bottom: 2px;
	font-size: 13px;
	line-height: 15px;
}

#asl-storelocator.dot-iw-compact .dot-iw .p-address {
	font-size: 12px;
	line-height: 14px;
}

#asl-storelocator.dot-iw-compact .dot-iw .dot-iw-side {
	padding-top: 2px;
}

#asl-storelocator.dot-iw-compact .dot-iw .asl-store-categories {
	gap: 4px;
}

#asl-storelocator.dot-iw-compact .dot-iw .asl-store-categories img {
	height: 18px;
}

#asl-storelocator.dot-iw-compact .dot-iw .sl-category-tag {
	margin-bottom: 5px;
	padding: 1px 4px;
	font-size: 9px;
	line-height: 12px;
}

#asl-storelocator.dot-iw-compact .dot-iw .dot-iw-contact {
	padding-top: 6px;
}

#asl-storelocator.dot-iw-compact .dot-iw .dot-iw-contact .p-area {
	padding: 4px 0 !important;
}

#asl-storelocator.dot-iw-compact .dot-iw .dot-iw-icon {
	width: 16px;
	height: 16px;
	margin-right: 6px;
}

#asl-storelocator.dot-iw-compact .dot-iw .dot-iw-contact a {
	font-size: 12px;
	line-height: 14px;
}
