/**
 * Zip Kit Steel state map.
 * Colors come from the Kadence global palette only. Fonts are inherited from the theme.
 * No transitions or animation, so there is nothing to switch off for reduced motion.
 */

.zks-map {
	--zks-map-state: var(--global-palette5, #BDBDB8);
	--zks-map-mod: var(--global-palette2, #FFB070);
	--zks-map-picked: var(--global-palette1, #FE8F2F);
	--zks-map-edge: var(--global-palette8, #1C1C1C);
	--zks-map-panel: var(--global-palette7, #262626);
	--zks-map-line: var(--global-palette6, #505050);
	--zks-map-text: var(--global-palette4, #E6E6E3);
	--zks-map-paper: var(--global-palette3, #F2F2F0);
	--zks-map-head: var(--global-heading-font-family, inherit);
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.zks-map [hidden] {
	display: none !important;
}

/* ---------- State list ---------- */

.zks-map__pick {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	max-width: 420px;
}

.zks-map__pick label {
	font-weight: 600;
	font-size: 16px;
}

.zks-map__pickrow {
	display: flex;
	gap: 10px;
}

.zks-map__pick select {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 48px;
	padding: 10px 14px;
	font-size: 16px;
	color: var(--zks-map-paper);
	background-color: var(--zks-map-panel);
	border: 1px solid var(--zks-map-line);
	border-radius: 4px;
	box-shadow: none;
}

.zks-map__pick select option {
	color: var(--zks-map-paper);
	background: var(--zks-map-panel);
}

.zks-map__go {
	min-height: 48px;
	padding: 10px 20px;
	border-radius: 4px;
}

/* With JavaScript the list acts as soon as a state is chosen. */
.zks-map.is-js .zks-map__go {
	display: none;
}

/* ---------- Layout ---------- */

.zks-map__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

@media (min-width: 1024px) {
	.zks-map__body {
		grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr);
		gap: 40px;
	}
}

.zks-map__stage {
	min-width: 0;
}

/* ---------- Map ---------- */

.zks-map__svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.zks-map__state {
	cursor: pointer;
}

/* The focus ring is drawn in the SVG (below), where it can sit above the neighbouring states. */
.zks-map a.zks-map__state:focus,
.zks-map a.zks-map__state:focus-visible {
	outline: none !important;
}

.zks-map__state path,
.zks-map__state rect {
	fill: var(--zks-map-state);
	stroke: var(--zks-map-edge);
	stroke-width: 1;
	stroke-linejoin: round;
}

.zks-map__state.is-modular path {
	fill: var(--zks-map-mod);
}

.zks-map__state:hover path,
.zks-map__state:hover rect {
	fill: var(--zks-map-paper);
}

.zks-map__state[aria-current] path {
	fill: var(--zks-map-picked);
}

/* Picked state: orange fill plus a heavy outline, so it never depends on color alone. */
.zks-map__sel {
	fill: none;
	stroke: var(--zks-map-paper);
	stroke-width: 3;
	stroke-linejoin: round;
	pointer-events: none;
}

/* Keyboard focus: a dark ring with a white ring inside it. Shows on any state color. */
.zks-map__focus use {
	fill: none;
	stroke-linejoin: round;
	pointer-events: none;
}

.zks-map__focus-out {
	stroke: var(--zks-map-edge);
	stroke-width: 9;
}

.zks-map__focus-in {
	stroke: var(--zks-map-paper);
	stroke-width: 4;
}

/* Without JavaScript the rings above stay empty, so mark the focused shape itself. */
.zks-map:not(.is-js) .zks-map__state:focus-visible path {
	stroke: var(--zks-map-paper);
	stroke-width: 4;
}

.zks-map__callouts line {
	stroke: var(--zks-map-state);
	stroke-width: 0.75;
}

.zks-map__callouts text {
	font-size: 11px;
	font-weight: 700;
	text-anchor: middle;
	fill: var(--zks-map-edge);
	pointer-events: none;
}

.zks-map__origin {
	pointer-events: none;
}

.zks-map__origin path {
	fill: var(--zks-map-paper);
	stroke: var(--zks-map-edge);
	stroke-width: 1.5;
	stroke-linejoin: round;
}

.zks-map__origin text {
	font-size: 14px;
	font-weight: 700;
	fill: var(--zks-map-edge);
	/* A light edge around the letters so state borders do not run through them. */
	stroke: var(--zks-map-paper);
	stroke-width: 3.5;
	stroke-linejoin: round;
	paint-order: stroke;
}

/* The label is too small to read on a small map. The key under the map says the same thing. */
.zks-map__stage {
	container-type: inline-size;
}

@media (max-width: 767px) {
	.zks-map__origin text {
		display: none;
	}
}

@container (max-width: 680px) {
	.zks-map__origin text {
		display: none;
	}
}

/* ---------- Key ---------- */

.zks-map .zks-map__key {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	font-size: 14px;
	line-height: 1.4;
}

.zks-map .zks-map__key li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.zks-map__swatch {
	flex: none;
	width: 16px;
	height: 16px;
	border-radius: 2px;
	background: var(--zks-map-state);
	border: 1px solid var(--zks-map-line);
}

.zks-map__swatch--mod {
	background: var(--zks-map-mod);
}

.zks-map__keystar {
	flex: none;
}

.zks-map__keystar path {
	fill: var(--zks-map-paper);
	stroke: var(--zks-map-edge);
	stroke-width: 1.5;
	stroke-linejoin: round;
}

/* ---------- Result panel ---------- */

.zks-map .zks-map__panel {
	box-sizing: border-box;
	padding: 28px 28px 30px;
	color: var(--zks-map-text);
	background: var(--zks-map-panel);
	border: 1px solid var(--zks-map-line);
	border-radius: 4px;
}

.zks-map .zks-map__panel p,
.zks-map .zks-map__panel li {
	margin: 0;
	color: var(--zks-map-text);
	font-size: 16px;
	line-height: 1.5;
}

.zks-map .zks-map__empty {
	border-left: 3px solid var(--zks-map-picked);
	padding-left: 14px;
}

.zks-map__result {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.zks-map .zks-map__panel .zks-map__k {
	font-family: var(--zks-map-head);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--zks-map-picked);
}

.zks-map .zks-map__panel .zks-map__name {
	margin: -18px 0 0;
	font-size: 34px;
	line-height: 1.05;
	color: var(--zks-map-paper);
}

.zks-map__freight,
.zks-map__case,
.zks-map__avail {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 20px;
	border-top: 1px dashed var(--zks-map-line);
}

/* The split: total freight, what Zip Kit pays, your freight. Label left, dollars right. */
.zks-map .zks-map__split {
	margin: 4px 0 2px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.zks-map .zks-map__split > div {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 4px 16px;
}

.zks-map .zks-map__split dt,
.zks-map .zks-map__split dd {
	margin: 0;
	font-size: 16px;
	line-height: 1.4;
	font-weight: 400;
	color: var(--zks-map-text);
}

.zks-map .zks-map__split dd {
	font-weight: 600;
	color: var(--zks-map-paper);
	font-variant-numeric: tabular-nums;
}

.zks-map .zks-map__split .zks-map__yours {
	margin-top: 6px;
	padding-top: 14px;
	border-top: 2px solid var(--zks-map-paper);
}

.zks-map .zks-map__split .zks-map__yours dt {
	font-weight: 600;
	color: var(--zks-map-paper);
}

.zks-map .zks-map__split .zks-map__yours dd {
	font-family: var(--zks-map-head);
	font-weight: 800;
	font-size: 44px;
	line-height: 1;
}

.zks-map .zks-map__panel .zks-map__math {
	font-weight: 600;
	color: var(--zks-map-paper);
}

.zks-map .zks-map__panel .zks-map__note,
.zks-map .zks-map__panel .zks-map__fine {
	font-size: 14px;
}

/* "Half off shipping on orders of $50,000 and up..." under the dollar amounts. */
.zks-map .zks-map__panel .zks-map__promo {
	font-size: 15px;
	font-weight: 600;
	color: var(--zks-map-paper);
}

.zks-map .zks-map__panel a:not(.button) {
	color: var(--zks-map-picked);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.zks-map .zks-map__panel .zks-map__case p:first-child {
	font-size: 18px;
	color: var(--zks-map-paper);
}

.zks-map .zks-map__panel .zks-map__phone a {
	font-family: var(--zks-map-head);
	font-weight: 700;
	font-size: 28px;
	line-height: 1.2;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.zks-map .zks-map__avail ul {
	margin: 0;
	padding-left: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.zks-map .zks-map__quote {
	display: inline-flex;
	align-items: center;
	/* Same size as the site's other in-page "get a quote" buttons. */
	min-height: 44px;
	box-sizing: border-box;
	padding: 16px 28px;
	border-radius: 4px;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	box-shadow: none;
}

/* The note this plugin adds under the freight estimator's miles slider. */
.zks-map-slider-note {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

@media (max-width: 480px) {
	.zks-map .zks-map__panel {
		padding: 22px 20px 24px;
	}
	.zks-map .zks-map__split .zks-map__yours dd {
		font-size: 38px;
	}
}

@media print {
	.zks-map__pick,
	.zks-map__adjust {
		display: none;
	}
}
