/* Where to Buy (inc/where-to-buy.php, D-25, D-73, Lucas 2026-11-02). Loaded only on pages with [lind_where_to_buy].
   Brand: Lind Blue #118cc9 for controls, Raleway headings / Lato text (site-wide), 2px corners like .rs-btn (D-53),
   the Lind cut corner on cards (--lind-cut, as .lind-cut). Map colours are the territory colours from Lucas's map. */

.lind-wtb {
	--lind-wtb-blue: var(--e-global-color-primary, #118cc9);
	--lind-cut: 40px;
	position: relative;
}

/* ---------- USA | Canada ---------- */
.lind-wtb__countries { display: flex; gap: 12px; margin-bottom: 36px; }
.lind-wtb__countries button,
.lind-wtb__regions button {
	padding: 14px 26px;
	border: 0;
	border-radius: 2px;
	background: #f5f5f5;
	color: #1f1f1f;
	font-family: "Raleway", sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.lind-wtb__countries button:hover,
.lind-wtb__regions button:hover { background: #e8f4fa; color: var(--lind-wtb-blue); }
.lind-wtb__countries button[aria-pressed="true"],
.lind-wtb__regions button[aria-pressed="true"] { background: var(--lind-wtb-blue); color: #fff; }
.lind-wtb button:focus-visible { outline: 2px solid var(--lind-wtb-blue); outline-offset: 2px; }

/* ---------- Map + panel ---------- */
.lind-wtb__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 48px;
	align-items: start;
}
.lind-wtb__map[hidden] { display: none !important; }

/* Same height and border thickness on both maps (Lucas, 2026-11-03). The US map fills the column; the Canada map sets
   --lind-wtb-width so it is drawn at the same height (narrower, centred). Widths are in US-map units (px = map units
   in SVG): each map's <svg> sets --lind-wtb-unit = its viewBox height / the US one, and the Canada map also sets
   --lind-wtb-stroke: the US file has its own white gaps between states, so its 2.5 stroke looks like ~6.2 units, and
   Canada gets 6.2 × its unit (tools/build_where_to_buy_map.py). No outline on the selected region (Lucas): it stays lit.
   Rules target g[data-region] only: the Canada file also has groups inside its mask, clip paths and island defs. */
.lind-wtb__svg { --lind-wtb-unit: 1; display: block; width: var(--lind-wtb-width, 100%); height: auto; margin: 0 auto; overflow: visible; }
.lind-wtb__svg g[data-region] {
	stroke: #fff;
	stroke-width: var(--lind-wtb-stroke, 2.5px);
	stroke-linejoin: round;
	cursor: pointer;
	outline: none;
	transition: opacity 0.2s ease;
}
.lind-wtb__svg.is-lit g[data-region]:not(.is-on) { opacity: 0.3; }
.lind-wtb__svg g[data-region]:focus-visible { stroke: var(--lind-wtb-blue); stroke-width: calc(5px * var(--lind-wtb-unit)); }

.lind-wtb__tip {
	position: absolute;
	z-index: 5;
	transform: translate(-50%, calc(-100% - 16px));
	padding: 10px 14px;
	border-radius: 2px;
	background: #1f1f1f;
	color: #fff;
	font-size: 14px;
	line-height: 1.35;
	white-space: nowrap;
	pointer-events: none;
}
.lind-wtb__tip strong { display: block; font-family: "Raleway", sans-serif; font-weight: 700; }
.lind-wtb__tip[hidden] { display: none; }

/* Province picker (until the Canada map exists). */
.lind-wtb__regions {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.lind-wtb__regions button { width: 100%; padding: 18px 20px; text-align: left; }

/* Panel */
.lind-wtb__panel { position: sticky; top: 120px; }
.lind-wtb__prompt {
	padding: 40px 32px;
	background: #f5f5f5;
	clip-path: polygon(0 0, calc(100% - var(--lind-cut)) 0, 100% var(--lind-cut), 100% 100%, 0 100%);
}
.lind-wtb__prompt i { font-size: 34px; line-height: 1; color: var(--lind-wtb-blue); }
.lind-wtb__prompt h3 { margin: 14px 0 8px; font-size: 24px; }
.lind-wtb__prompt p { margin: 0; }

.lind-wtb__eyebrow {
	margin: 0;
	font-family: "Raleway", sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--lind-wtb-blue);
}
.lind-wtb__region { margin: 4px 0 20px; font-size: 28px; line-height: 1.2; }

.lind-wtb__card {
	margin-bottom: 16px;
	padding: 24px 24px 22px;
	border-left: 6px solid var(--lind-wtb-colour);
	background: #f5f5f5;
	clip-path: polygon(0 0, calc(100% - var(--lind-cut)) 0, 100% var(--lind-cut), 100% 100%, 0 100%);
}
.lind-wtb__for {
	margin: 0 0 14px;
	padding-right: 30px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #666;
}
.lind-wtb__who { display: flex; align-items: center; gap: 16px; }
/* Round photo. ".lind-wtb img" beats Elementor's ".elementor img { border-radius: 0; height: auto }". Half of the
   jobsite360.net photos are already circles with transparent corners; the grey backing only shows behind those. */
.lind-wtb .lind-wtb__photo {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	background: #e8e8e8;
}
.lind-wtb .lind-wtb__photo--icon { display: grid; place-items: center; background: #e8f4fa; color: var(--lind-wtb-blue); font-size: 32px; }
.lind-wtb__name { margin: 0; font-size: 20px; line-height: 1.25; }
.lind-wtb__role { margin: 2px 0 0; font-size: 15px; color: #666; }
.lind-wtb__covers { margin: 14px 0 0; font-size: 15px; }

.lind-wtb__lines { margin: 14px 0 0; padding: 0; list-style: none; }
.lind-wtb__lines li { margin: 0 0 6px; }
.lind-wtb__lines li:last-child { margin-bottom: 0; }
.lind-wtb__lines a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #1f1f1f;
	font-size: 16px;
	overflow-wrap: anywhere;
}
.lind-wtb__lines a:hover { color: var(--lind-wtb-blue); }
.lind-wtb__lines i { font-size: 18px; color: var(--lind-wtb-blue); }

/* ---------- Ask for a Call (Lucas, 2026-11-05): sales reps and Taylor Marks only ---------- */
/* Under the phone and email, aligned left with the card's text (Lucas, 2026-11-05). */
.lind-wtb .lind-wtb__call { margin-top: 18px; }
.lind-wtb .lind-wtb__call,
.lind-wtb .lind-wtb__dialog-send {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 16px;
	border: 2px solid var(--lind-wtb-blue);
	border-radius: 2px;
	background: transparent; /* border only until hovered (Lucas) */
	font: 700 13px/1 "Raleway", sans-serif;
	letter-spacing: .02em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--lind-wtb-blue);
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.lind-wtb .lind-wtb__call i { font-size: 16px; line-height: 1; }
.lind-wtb .lind-wtb__call:hover { background: var(--lind-wtb-blue); color: #fff; }
.lind-wtb button:focus-visible { outline: 2px solid var(--lind-wtb-blue); outline-offset: 2px; }

/* The dialog: white box with the Lind cut corner and a Lind Blue left edge, as the cards. */
.lind-wtb__dialog {
	width: min(480px, calc(100% - 32px));
	max-width: none;
	margin: auto;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}
.lind-wtb__dialog::backdrop { background: rgba(0, 0, 0, .55); }
.lind-wtb__dialog [hidden] { display: none !important; }
.lind-wtb__dialog-box {
	position: relative;
	padding: 40px 40px 36px;
	border-left: 6px solid var(--lind-wtb-blue);
	background: #fff;
	clip-path: polygon(0 0, calc(100% - var(--lind-cut)) 0, 100% var(--lind-cut), 100% 100%, 0 100%);
	font-family: "Lato", sans-serif;
	color: #444;
}
.lind-wtb .lind-wtb__dialog-close {
	position: absolute;
	top: 12px;
	right: 46px; /* left of the cut corner */
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 24px;
	color: #8f8f8f;
	cursor: pointer;
}
.lind-wtb .lind-wtb__dialog-close i { font-size: 26px !important; line-height: 1; }
.lind-wtb .lind-wtb__dialog-close:hover { color: #1f1f1f; }
.lind-wtb__dialog-title { margin: 0 0 10px; padding-right: 56px; font-size: 24px; line-height: 1.25; color: #1f1f1f; }
.lind-wtb__dialog-text { margin: 0 0 24px; font-size: 16px; }
.lind-wtb__dialog-text strong { color: #1f1f1f; }
.lind-wtb__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lind-wtb__field { margin: 0 0 16px; }
.lind-wtb__field label { display: block; margin: 0 0 6px; font: 700 14px/1.4 "Raleway", sans-serif; color: #1f1f1f; }
.lind-wtb__field label i { font-style: normal; color: var(--lind-wtb-blue); }
.lind-wtb .lind-wtb__field input {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid #d2d2d2;
	border-radius: 2px;
	background: #fff;
	box-shadow: none;
	font: 400 16px/1.4 "Lato", sans-serif;
	color: #1f1f1f;
}
.lind-wtb .lind-wtb__field input:focus { border-color: var(--lind-wtb-blue); outline: 0; box-shadow: 0 0 0 3px rgba(17, 140, 201, .18); }
.lind-wtb__dialog-error { margin: 0 0 16px; padding: 12px 16px; border-left: 4px solid #c62828; background: #fdecea; font-size: 15px; color: #8e1c1c; }
.lind-wtb__dialog-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; }
.lind-wtb__dialog-nav--end { justify-content: flex-end; }
.lind-wtb .lind-wtb__dialog-send { padding: 16px 30px; border: 0; background: var(--lind-wtb-blue); font-size: 15px; color: #fff; }
.lind-wtb .lind-wtb__dialog-send:hover { background: #0d6fa1; }
.lind-wtb .lind-wtb__dialog-send:disabled { opacity: .6; cursor: wait; }
.lind-wtb .lind-wtb__dialog-cancel { padding: 12px 0; border: 0; background: none; font: 700 14px/1 "Raleway", sans-serif; text-transform: uppercase; color: #8f8f8f; cursor: pointer; }
.lind-wtb .lind-wtb__dialog-cancel:hover { color: #1f1f1f; }
.lind-wtb__call-done > i { display: block; margin: 0 0 12px; font-size: 40px; line-height: 1; color: var(--lind-wtb-blue); }
.lind-wtb__call-done .lind-wtb__dialog-title:focus { outline: 0; }
@media (max-width: 767px) {
	.lind-wtb__dialog-box { padding: 32px 22px 28px; }
}

@media (max-width: 1024px) {
	.lind-wtb__body { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.lind-wtb__panel { position: static; scroll-margin-top: 100px; }
	.lind-wtb__tip { display: none; }
}
@media (max-width: 767px) {
	.lind-wtb__countries button { flex: 1; }
	.lind-wtb__region { font-size: 24px; }
}
