/* Where to Buy — country selector map, plus a shared fix for the
   distribution-family templates. Enqueued only on those templates. */

/* These pages close on the full-bleed gold .sca-dist-cta band, and
   .site-footer carries a global margin-top:72px (site-b.css). Against a
   full-bleed band that 72px renders as a white strip between the CTA and the
   footer, which reads as a layout break rather than breathing room.
   Same specificity as the global rule, loaded after it, so it wins. */
.site-footer {
	margin-top: 0;
}

.wtb-map-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
	gap: clamp(24px, 5vw, 72px);
	align-items: center;
	margin-top: 40px;
}

.wtb-map {
	width: 100%;
	max-width: 620px;
	height: auto;
	display: block;
	margin: 0 auto;
	overflow: visible;
}

.wtb-c {
	cursor: pointer;
	outline: none;
}

.wtb-shape {
	fill: #e8edf3;
	stroke: #ffffff;
	stroke-width: 2;
	stroke-linejoin: round;
	transition: fill .25s ease;
}

.wtb-water {
	fill: #ffffff;
	stroke: none;
	pointer-events: none;
}

.wtb-label {
	font-family: inherit;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: .08em;
	fill: #6b7a8d;
	text-anchor: middle;
	pointer-events: none;
	transition: fill .25s ease;
}

/* Navy rather than gold: white on the gold accent is only 3.08:1, which
   scrapes AA for large text. Navy is 15:1 and reads as "selected". */
.wtb-c:hover .wtb-shape,
.wtb-c:focus-visible .wtb-shape {
	fill: #16283f;
}

.wtb-c:hover .wtb-label,
.wtb-c:focus-visible .wtb-label {
	fill: #ffffff;
}

.wtb-c:focus-visible .wtb-shape {
	stroke: #b08d57;
	stroke-width: 3;
}

/* Country picker list, and the whole selector on small screens */
.wtb-picker {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wtb-pick {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas: "name go" "meta go";
	align-items: center;
	gap: 2px 14px;
	padding: 18px 22px;
	border: 1px solid #e2e6ea;
	border-radius: 10px;
	background: #ffffff;
	text-decoration: none;
	transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.wtb-pick:hover,
.wtb-pick:focus-visible {
	border-color: #b08d57;
	background: #fdfaf5;
	transform: translateX(3px);
}

.wtb-pick-name {
	grid-area: name;
	font-weight: 700;
	font-size: 18px;
	color: #16283f;
}

.wtb-pick-meta {
	grid-area: meta;
	font-size: 14px;
	color: #6b7a8d;
}

.wtb-pick-go {
	grid-area: go;
	font-size: 18px;
	color: #b08d57;
	transition: transform .2s ease;
}

.wtb-pick:hover .wtb-pick-go,
.wtb-pick:focus-visible .wtb-pick-go {
	transform: translateX(3px);
}

@media (max-width: 860px) {
	.wtb-map-wrap {
		grid-template-columns: 1fr;
	}
	.wtb-label {
		font-size: 26px;
	}
}

/* Dealer cards.
   Not .sca-dist-value-grid: that is a hard repeat(3,1fr), so a single card
   sits in column one while two empty columns absorb the rest, leaving the
   card visibly off-centre under a centred heading. auto-fit collapses to the
   number of cards actually present. */
.wtb-dealers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 28px;
	margin-inline: auto;
}

.wtb-dealers[data-count="1"] { max-width: 620px; }
.wtb-dealers[data-count="2"] { max-width: 1000px; }

/* Label/value rows on a shared column, so addresses, phone numbers and
   emails all align to the same left edge instead of each starting wherever
   its own label happens to end. */
.wtb-dl {
	margin: 20px 0 0;
	display: grid;
	gap: 12px;
}

.wtb-row {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	gap: 4px 20px;
	align-items: baseline;
}

.wtb-dt {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #6b7a8d;
}

.wtb-dd {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: #16283f;
	font-variant-numeric: tabular-nums;
}

.wtb-dd a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid #dbe1e8;
}

.wtb-dd a:hover,
.wtb-dd a:focus-visible {
	color: #b08d57;
	border-bottom-color: #b08d57;
}

/* The button row sits flush against the last value row at exactly 0px,
   which reads as a collision. */
.sca-dist-value-card .sca-dist-hero-btns {
	margin-top: 26px;
}

@media (max-width: 520px) {
	.wtb-row {
		grid-template-columns: 1fr;
		gap: 2px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wtb-shape,
	.wtb-label,
	.wtb-pick {
		transition: none;
	}
	.wtb-pick:hover,
	.wtb-pick:focus-visible {
		transform: none;
	}
}
