/* MEAS Currency Switcher — floating AED / USD tab */

.meascs-switcher {
	--meascs-accent: #0a4bb5;
	--meascs-top: 50%;
	position: fixed;
	top: var(--meascs-top);
	z-index: 99990;
	display: flex;
	flex-direction: column;
	transform: translateY(-50%);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
	font-family: inherit;
	overflow: hidden;
	cursor: grab;
	touch-action: none; /* lets a finger drag it without scrolling the page */
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}

/* While being dragged it follows the pointer freely. */
.meascs-switcher.is-dragging {
	right: auto;
	transform: none;
	border-radius: 6px;
	cursor: grabbing;
	opacity: 0.92;
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
}

.meascs-switcher--right {
	right: 0;
	border-radius: 6px 0 0 6px;
}

.meascs-switcher--left {
	left: 0;
	border-radius: 0 6px 6px 0;
}

.meascs-switcher__btn {
	all: unset;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 48px;
	background: #1c1c1c;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1;
	cursor: pointer;
	touch-action: none;
	transition: background-color 0.18s ease;
}

.meascs-switcher__btn:hover {
	background: #333;
}

.meascs-switcher__btn.is-active {
	background: var(--meascs-accent);
}

.meascs-switcher.is-dragging .meascs-switcher__btn {
	cursor: grabbing;
}

.meascs-switcher__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

/* Cart / checkout note: only visible while USD is selected. */
.meascs-charge-note {
	display: none;
}

html.meascs-usd tr.meascs-charge-note {
	display: table-row;
}

.meascs-charge-note__hint {
	display: block;
	margin-top: 2px;
	font-weight: 400;
	opacity: 0.75;
}

@media (max-width: 768px) {
	.meascs-switcher__btn {
		width: 46px;
		height: 40px;
		font-size: 12px;
	}
}

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

@media print {
	.meascs-switcher {
		display: none;
	}
}
