/* Blackmoto Business Rules – Country Switcher */

.bm-country-switcher-btn {
	position: fixed;
	bottom: 24px;
	left: 24px;
	z-index: 9990;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	background: #111;
	border: 1px solid rgba(255,255,255,0.15);
	border-radius: 8px;
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}
.bm-country-switcher-btn:hover {
	background: #1a1a1a;
	border-color: #0b6664;
}
.bm-country-switcher-btn img {
	display: block;
	border-radius: 2px;
}

/* Modal overlay */
.bm-country-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}
.bm-country-modal.is-open {
	opacity: 1;
	pointer-events: auto;
}

.bm-country-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.75);
	backdrop-filter: blur(4px);
}

.bm-country-modal__panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 440px;
	margin: 16px;
	background: #111;
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 16px;
	padding: 40px 32px 32px;
	transform: translateY(16px);
	transition: transform 0.25s ease;
}
.bm-country-modal.is-open .bm-country-modal__panel {
	transform: translateY(0);
}

.bm-country-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: none;
	border: none;
	color: #888;
	cursor: pointer;
	padding: 4px;
	transition: color 0.2s;
}
.bm-country-modal__close:hover {
	color: #fff;
}

.bm-country-modal__title {
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 8px;
}

.bm-country-modal__subtitle {
	font-size: 14px;
	color: #888;
	margin: 0 0 28px;
}

.bm-country-modal__options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.bm-country-modal__option {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 24px 16px;
	background: #1a1a1a;
	border: 2px solid rgba(255,255,255,0.08);
	border-radius: 12px;
	text-decoration: none;
	transition: border-color 0.2s, background 0.2s;
}
.bm-country-modal__option:hover {
	background: #222;
	border-color: rgba(11,102,100,0.5);
}
.bm-country-modal__option--active {
	border-color: #0b6664;
	background: rgba(11,102,100,0.1);
}
.bm-country-modal__option img {
	border-radius: 3px;
	display: block;
}
.bm-country-modal__flag-placeholder {
	font-size: 32px;
	line-height: 1;
}
.bm-country-modal__country-name {
	font-size: 15px;
	font-weight: 600;
	color: #fff;
}
.bm-country-modal__vat {
	font-size: 11px;
	color: #888;
	text-align: center;
}

@media (max-width: 480px) {
	.bm-country-modal__panel {
		padding: 32px 20px 24px;
	}
	.bm-country-switcher-btn {
		bottom: 16px;
		left: 16px;
	}
}
