/*
 * Frontend currency switcher. Uses logical properties (margin-inline,
 * inset-inline) instead of left/right so it's RTL-correct automatically —
 * no separate .rtl.css needed.
 */

.mc-switcher {
	position: relative;
	display: inline-block;
	font-size: 14px;
}

.mc-switcher__trigger {
	display: flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 4px;
	padding: 6px 10px;
	cursor: pointer;
	color: inherit;
	font: inherit;
}

.mc-switcher__trigger:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.mc-switcher__chevron {
	transition: transform 0.15s ease;
}

.mc-switcher.is-open .mc-switcher__chevron {
	transform: rotate(180deg);
}

.mc-switcher__panel {
	list-style: none;
	margin: 4px 0 0;
	padding: 4px;
	position: absolute;
	inset-inline-start: 0;
	top: 100%;
	min-width: 100%;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	z-index: 100;
	max-height: 260px;
	overflow-y: auto;
}

.mc-switcher__panel[hidden] {
	display: none;
}

.mc-switcher__option {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	background: transparent;
	border: none;
	text-align: start;
	padding: 8px 10px;
	cursor: pointer;
	font: inherit;
	color: inherit;
	border-radius: 3px;
}

.mc-switcher__option:hover,
.mc-switcher__option:focus-visible {
	background: rgba(0, 0, 0, 0.06);
}

.mc-switcher__option.is-active {
	font-weight: 600;
}

.mc-display-only-notice {
	font-size: 13px;
}

@media (max-width: 480px) {
	.mc-switcher__panel {
		min-width: 180px;
	}
}
