/* Multi-currency switcher — top bar */

.bsp-topbar__currency {
	position: relative;
}

.bsp-mcx {
	position: relative;
}

.bsp-mcx__trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--bsp-topbar-link, #fff);
	font-size: inherit;
	font-family: inherit;
	line-height: inherit;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.bsp-mcx__trigger:hover {
	opacity: 0.85;
}

.bsp-mcx__flag {
	display: block;
	width: 20px;
	height: 15px;
	object-fit: cover;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
	flex-shrink: 0;
}

.bsp-mcx__flag--trigger {
	width: 22px;
	height: 16px;
}

.bsp-mcx__current {
	font-weight: 600;
	letter-spacing: 0.04em;
}

.bsp-mcx__menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 201;
	min-width: 220px;
	max-width: min(280px, 92vw);
	max-height: min(360px, 70vh);
	padding: 8px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(17, 24, 39, 0.16);
	border: 1px solid #f3f4f6;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.bsp-mcx__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bsp-mcx__option {
	display: grid;
	grid-template-columns: auto auto 1fr;
	gap: 4px 10px;
	align-items: center;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #111827;
	font-size: 13px;
	text-align: left;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.bsp-mcx__option:hover {
	background: #fff5f9;
}

.bsp-mcx__option.is-active {
	background: #fff5f9;
	color: #f06292;
	font-weight: 700;
}

.bsp-mcx__option-flag {
	display: flex;
	align-items: center;
}

.bsp-mcx__option-code {
	font-weight: 700;
	letter-spacing: 0.04em;
}

.bsp-mcx__option-label {
	color: #6b7280;
	font-size: 12px;
}

.bsp-mcx.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

/* Checkout notice */
.woocommerce-checkout .woocommerce-info.bsp-mcx-notice,
.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-info {
	border-top-color: #f06292;
}
