/* GlobeProof: light, glassy and calm. */
.globeproof {
	--globeproof-dot: #e8b530;
	--globeproof-ink: #1d2433;
	--globeproof-muted: #5b6475;
	--globeproof-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	position: relative;
	margin: 0;
	padding: 0;
	border-radius: 32px;
	overflow: hidden;
	font-family: var(--globeproof-font);
	color: var(--globeproof-ink);
	background:
		radial-gradient(circle at 50% 46%, #ffffff 0%, rgba(255, 255, 255, 0) 52%),
		radial-gradient(circle at 15% 0%, rgba(214, 231, 250, .9) 0%, rgba(214, 231, 250, 0) 45%),
		linear-gradient(165deg, #eef4fb 0%, #f6f2ec 62%, #f4ebe2 100%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 20px 60px rgba(25, 45, 80, .08);
	-webkit-font-smoothing: antialiased;
}

.globeproof__stage {
	position: relative;
	height: var(--globeproof-height, 560px);
	cursor: grab;
	opacity: 0;
	transition: opacity .9s ease;
}
.globeproof.is-ready .globeproof__stage { opacity: 1; }
.globeproof__stage:active { cursor: grabbing; }

/* Counter pill */
.globeproof__counter {
	position: absolute;
	z-index: 3;
	top: 18px;
	left: 50%;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 9px 18px 9px 14px;
	border-radius: 999px;
	font-size: 15px;
	line-height: 1.2;
	white-space: nowrap;
	color: var(--globeproof-ink);
	background: rgba(255, 255, 255, .55);
	border: 1px solid rgba(255, 255, 255, .8);
	box-shadow: 0 10px 30px rgba(20, 40, 70, .12), inset 0 1px 0 rgba(255, 255, 255, .8);
	-webkit-backdrop-filter: blur(18px) saturate(180%);
	backdrop-filter: blur(18px) saturate(180%);
}
.globeproof__counter strong { font-weight: 650; letter-spacing: -.01em; }
.globeproof__counter-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--globeproof-dot);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--globeproof-dot) 25%, transparent), 0 0 10px var(--globeproof-dot);
}

/* Sample data warning, seen only by store managers. */
.globeproof__demo {
	position: absolute;
	z-index: 3;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	width: max-content;
	max-width: calc(100% - 32px);
	margin: 0;
	padding: 8px 14px;
	border-radius: 14px;
	font-size: 13px;
	line-height: 1.35;
	text-align: center;
	color: #7a4b00;
	background: rgba(255, 236, 196, .85);
	border: 1px solid rgba(232, 181, 48, .6);
	box-shadow: 0 8px 24px rgba(120, 80, 0, .12);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}
.globeproof__counter-tag {
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #7a4b00;
	background: rgba(255, 220, 150, .8);
}

/* Country marker: a golden dot with a ring that breathes. */
.globeproof-marker {
	all: unset;
	position: relative;
	display: block;
	width: 0;
	height: 0;
	pointer-events: auto;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: opacity .35s ease;
}
/* A bigger invisible target so fingers hit the dot easily. */
.globeproof-marker::before {
	content: "";
	position: absolute;
	left: -18px;
	top: -18px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
}
.globeproof-marker.is-behind { opacity: 0; pointer-events: none; }
.globeproof-marker:focus-visible .globeproof-marker__dot { outline: 2px solid #2b6fd6; outline-offset: 3px; }

.globeproof-marker__dot,
.globeproof-marker__ring {
	position: absolute;
	left: 0;
	top: 0;
	border-radius: 50%;
	transform: translate(-50%, -50%);
}
.globeproof-marker__dot {
	width: var(--gp-size, 9px);
	height: var(--gp-size, 9px);
	background: radial-gradient(circle at 35% 30%, #fff6d8 0%, var(--globeproof-dot) 55%);
	box-shadow:
		0 0 0 1.5px rgba(255, 255, 255, .95),
		0 0 calc(6px + 16px * var(--gp-glow, .5)) color-mix(in srgb, var(--globeproof-dot) calc(100% * var(--gp-glow, .5)), transparent);
}
.globeproof-marker__ring {
	width: var(--gp-size, 9px);
	height: var(--gp-size, 9px);
	border: 1.5px solid var(--globeproof-dot);
	opacity: 0;
	animation: globeproof-pulse 3.2s cubic-bezier(.25, .6, .3, 1) infinite;
	animation-delay: var(--gp-delay, 0s);
}
@keyframes globeproof-pulse {
	0% { transform: translate(-50%, -50%) scale(1); opacity: calc(.4 + .5 * var(--gp-glow, .5)); }
	70%, 100% { transform: translate(-50%, -50%) scale(3.4); opacity: 0; }
}

/* Glass label, iOS style */
.globeproof-label {
	position: absolute;
	left: calc(var(--gp-size, 9px) / 2 + 10px);
	top: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px 14px 9px;
	border-radius: 16px;
	white-space: nowrap;
	line-height: 1.25;
	text-align: left;
	color: var(--globeproof-ink);
	background: rgba(255, 255, 255, .5);
	border: 1px solid rgba(255, 255, 255, .75);
	box-shadow: 0 10px 28px rgba(15, 30, 55, .16), inset 0 1px 0 rgba(255, 255, 255, .8);
	-webkit-backdrop-filter: blur(16px) saturate(180%);
	backdrop-filter: blur(16px) saturate(180%);
	opacity: 0;
	visibility: hidden;
	transform: translate(-4px, -50%) scale(.96);
	transform-origin: left center;
	transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .35s;
	pointer-events: none;
}
.globeproof-label__names {
	max-width: min(62vw, 340px);
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -.01em;
}
.globeproof-label__names em { font-style: normal; font-weight: 500; color: var(--globeproof-muted); }
.globeproof-label__country {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #4a4f5c;
}
.globeproof-label__meta { font-size: 12px; color: var(--globeproof-muted); }

.globeproof-marker.is-labeled .globeproof-label,
.globeproof-marker.is-open .globeproof-label {
	opacity: 1;
	visibility: visible;
	transform: translate(0, -50%) scale(1);
	transition-delay: 0s;
}
.globeproof-marker.is-flipped .globeproof-label {
	left: auto;
	right: calc(var(--gp-size, 9px) / 2 + 10px);
	transform-origin: right center;
	text-align: right;
}

/* Labeled countries show the short version; tapping shows the rest. */
.globeproof-marker.is-labeled:not(.is-open) .globeproof-label__meta { display: none; }
.globeproof-marker.is-crowded:not(.is-open) .globeproof-label {
	opacity: 0;
	visibility: hidden;
	transform: translate(-4px, -50%) scale(.96);
}
/* The 3D library stacks markers by distance; labels must still sit above every other dot. */
.globeproof-marker.is-labeled:not(.is-crowded) { z-index: 1000 !important; }
.globeproof-marker.is-open { z-index: 1001 !important; }
.globeproof-marker.is-open .globeproof-label {
	background: rgba(255, 255, 255, .72);
	pointer-events: auto;
}

/* Text list: read by screen readers, and shown when the device cannot draw 3D. */
.globeproof__list {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	list-style: none;
}
.globeproof--flat .globeproof__stage { display: none; }
.globeproof--flat .globeproof__list {
	position: static;
	width: auto;
	height: auto;
	margin: 0;
	padding: 72px 20px 28px;
	overflow: visible;
	clip: auto;
	white-space: normal;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.globeproof--flat .globeproof__list li {
	padding: 7px 14px;
	border-radius: 999px;
	font-size: 14px;
	background: rgba(255, 255, 255, .6);
	border: 1px solid rgba(255, 255, 255, .8);
}

.globeproof__credit {
	position: absolute;
	right: 16px;
	bottom: 12px;
	font-size: 11px;
	color: var(--globeproof-muted);
	text-decoration: none;
	opacity: .75;
}
.globeproof__credit:hover { opacity: 1; text-decoration: underline; }

@media (max-width: 600px) {
	.globeproof { border-radius: 24px; }
	.globeproof__stage { height: min(var(--globeproof-height, 560px), 440px); }
	.globeproof__counter { top: 14px; font-size: 14px; padding: 8px 15px 8px 12px; }
	.globeproof-label { padding: 7px 12px 8px; border-radius: 14px; }
	.globeproof-label__names { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
	.globeproof-marker__ring { animation: none; opacity: .5; transform: translate(-50%, -50%) scale(1.8); }
	.globeproof__stage, .globeproof-label { transition: none; }
}
