.wpcus-map-wrap {
	--wpcus-state-fill: #ececec;
	--wpcus-linked-fill: #d8e9ff;
	--wpcus-hover-fill: #f58220;
	--wpcus-state-stroke: #e5d5be;
	--wpcus-state-stroke-width: 1.5;
	--wpcus-transition: 200ms;
	--wpcus-label-color: #111111;
	--wpcus-label-size: 12px;
	--wpcus-label-weight: 500;
	--wpcus-tooltip-bg: #111111;
	--wpcus-tooltip-color: #ffffff;
	position: relative;
	width: 100%;
	margin-right: auto;
	margin-left: auto;
}

.wpcus-map-canvas,
.wpcus-map-canvas svg {
	display: block;
	width: 100%;
	height: auto;
}

/* The original source SVG is clipped to its own supplied viewBox. */
.wpcus-map-wrap.wpcus-preserve-svg-style .wpcus-map-canvas svg {
	overflow: hidden;
}

/* Custom styling mode can show callouts that extend beyond the source viewBox. */
.wpcus-map-wrap:not(.wpcus-preserve-svg-style) .wpcus-map-canvas svg {
	overflow: visible;
}

.wpcus-map-wrap .wpcus-state,
.wpcus-map-wrap .wpcus-state-callout {
	transition: fill var(--wpcus-transition) ease, opacity var(--wpcus-transition) ease, filter var(--wpcus-transition) ease;
	outline: none;
}

/* Only replace the SVG's original inline appearance when preservation is disabled. */
.wpcus-map-wrap:not(.wpcus-preserve-svg-style) .wpcus-state,
.wpcus-map-wrap:not(.wpcus-preserve-svg-style) .wpcus-state-callout {
	fill: var(--wpcus-state-fill) !important;
	stroke: var(--wpcus-state-stroke) !important;
	stroke-width: var(--wpcus-state-stroke-width) !important;
}

.wpcus-map-wrap .wpcus-state.is-linked,
.wpcus-map-wrap .wpcus-state-callout.is-linked,
.wpcus-map-wrap .wpcus-state-region[href] {
	cursor: pointer;
}

.wpcus-map-wrap:not(.wpcus-preserve-svg-style) .wpcus-state.is-linked,
.wpcus-map-wrap:not(.wpcus-preserve-svg-style) .wpcus-state-callout.is-linked {
	fill: var(--wpcus-linked-fill) !important;
}

.wpcus-map-wrap .wpcus-state.is-linked:hover,
.wpcus-map-wrap .wpcus-state.is-linked:focus,
.wpcus-map-wrap .wpcus-state.is-linked.is-active,
.wpcus-map-wrap .wpcus-state-callout.is-linked:hover,
.wpcus-map-wrap .wpcus-state-callout.is-linked.is-active,
.wpcus-map-wrap .wpcus-state-region[href]:hover .wpcus-state,
.wpcus-map-wrap .wpcus-state-region[href]:focus .wpcus-state,
.wpcus-map-wrap .wpcus-state-region[href]:hover .wpcus-state-callout,
.wpcus-map-wrap .wpcus-state-region[href]:focus .wpcus-state-callout {
	fill: var(--wpcus-hover-fill) !important;
	filter: brightness(0.98);
}

.wpcus-map-wrap .wpcus-state-region[href]:focus-visible .wpcus-state,
.wpcus-map-wrap .wpcus-state.is-linked:focus-visible {
	stroke: currentColor !important;
	stroke-width: calc(var(--wpcus-state-stroke-width) + 1) !important;
}

.wpcus-map-wrap:not(.wpcus-preserve-svg-style) .wpcus-state-label {
	fill: var(--wpcus-label-color) !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: var(--wpcus-label-size) !important;
	font-weight: var(--wpcus-label-weight) !important;
}

.wpcus-map-wrap .wpcus-state-label {
	pointer-events: none;
	user-select: none;
}

.wpcus-map-wrap.wpcus-hide-labels .wpcus-state-label {
	display: none;
}

.wpcus-map-tooltip {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 10;
	max-width: 240px;
	padding: 7px 10px;
	border-radius: 5px;
	background: var(--wpcus-tooltip-bg);
	color: var(--wpcus-tooltip-color);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transform: translate(10px, -110%);
	transition: opacity 120ms ease, visibility 120ms ease;
}

.wpcus-map-tooltip.is-visible {
	opacity: 1;
	visibility: visible;
}

.wpcus-hide-tooltips .wpcus-map-tooltip {
	display: none;
}

.wpcus-map-wrap .wpcus-state-region {
	outline: none;
}

@media (prefers-reduced-motion: reduce) {
	.wpcus-map-wrap .wpcus-state,
	.wpcus-map-wrap .wpcus-state-callout,
	.wpcus-map-tooltip {
		transition: none;
	}
}
