#ccm-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, 0.7);
	opacity: 0;
	animation: ccm-popup-fade-in 180ms ease-out both;
	transition: opacity 180ms ease-out;
}

#ccm-popup.ccm-popup-active {
	display: flex;
	opacity: 1;
}

body:has(#ccm-popup.ccm-popup-active) {
	overflow: hidden;
}

.ccm-popup-content {
	width: min(100%, 520px);
	padding: 32px;
	border-radius: 8px;
	background: #ffffff;
	color: #151515;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
	text-align: center;
	outline: none;
}

.ccm-popup-content h2 {
	margin: 0 0 12px;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 700;
	color: inherit;
}

.ccm-popup-content p {
	margin: 0 0 24px;
	font-size: 16px;
	line-height: 1.5;
	color: #4a4a4a;
}

.ccm-country-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
}

.ccm-country-grid button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 12px 16px;
	border: 1px solid #d8d8d8;
	border-radius: 6px;
	background: #f7f7f7;
	color: #151515;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.ccm-country-grid img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
}

.ccm-country-grid button:hover,
.ccm-country-grid button:focus {
	border-color: #151515;
	background: #ffffff;
	transform: translateY(-1px);
	outline: none;
	color: #C64722 !important;
}

.ccm-country-grid button:focus-visible {
	box-shadow: 0 0 0 3px rgba(21, 21, 21, 0.18);
}

.ccm-country-switcher {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	cursor: pointer;
}

.ccm-country-switcher img {
	width: 24px;
	height: auto;
	cursor: pointer;
}

@keyframes ccm-popup-fade-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@media (max-width: 480px) {
	#ccm-popup {
		padding: 16px;
	}

	.ccm-popup-content {
		padding: 24px;
	}

	.ccm-popup-content h2 {
		font-size: 24px;
	}
}
