/* Mote Mote Multi Currency — switcher
 * Mewarisi font & warna dari tema. Override cukup di CSS tema.
 */

.mmc-switcher {
	display: inline-flex;
	align-items: center;
	gap: 0.9em;
	font: inherit;
	line-height: 1;
}

.mmc-switcher__item {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.3em 0;
	color: inherit;
	text-decoration: none;
	opacity: 0.45;
	border-bottom: 1px solid transparent;
	transition: opacity 0.15s ease;
}

.mmc-switcher__item:hover {
	opacity: 1;
}

.mmc-switcher__item.is-active {
	opacity: 1;
	border-bottom-color: currentColor;
}

.mmc-switcher__item:focus-visible,
.mmc-switcher__select:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 3px;
	opacity: 1;
}

.mmc-switcher__select {
	font: inherit;
	color: inherit;
	background-color: transparent;
	border: 1px solid currentColor;
	border-radius: 0;
	padding: 0.4em 2em 0.4em 0.7em;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.7em center;
}

/* Floating switcher */
.mmc-floating {
	position: fixed;
	z-index: 9990;
	background: #fff;
	color: #000;
	border: 1px solid #000;
	padding: 0.55em 0.9em;
	font-size: 12px;
	letter-spacing: 0.04em;
}

.mmc-floating--bottom-left  { left: 16px;  bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.mmc-floating--bottom-right { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.mmc-floating--middle-left  { left: 16px;  top: 50%; transform: translateY(-50%); }
.mmc-floating--middle-right { right: 16px; top: 50%; transform: translateY(-50%); }
.mmc-floating--top-left     { left: 16px;  top: calc(16px + env(safe-area-inset-top, 0px)); }
.mmc-floating--top-right    { right: 16px; top: calc(16px + env(safe-area-inset-top, 0px)); }

.admin-bar .mmc-floating--top-left,
.admin-bar .mmc-floating--top-right {
	top: 48px;
}

/* Di tengah samping layar: susun vertikal agar ramping */
.mmc-floating--middle-left .mmc-switcher,
.mmc-floating--middle-right .mmc-switcher {
	flex-direction: column;
	gap: 0.6em;
}

/* Switcher di dalam menu navigasi */
.menu-item-mmc-switcher {
	display: flex;
	align-items: center;
}

.menu-item-mmc-switcher .mmc-switcher__select {
	padding-top: 0.25em;
	padding-bottom: 0.25em;
}

.mmc-price-unavailable {
	opacity: 0.6;
	font-size: 0.9em;
}

@media (prefers-reduced-motion: reduce) {
	.mmc-switcher__item {
		transition: none;
	}
}
