/* Currency Master — switcher styles */

.wcm-switcher {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	line-height: 1.4;
}

.wcm-switcher.wcm-loading {
	opacity: 0.5;
	pointer-events: none;
}

/* Dropdown */
.wcm-switcher--dropdown .wcm-switcher__select {
	padding: 6px 28px 6px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	max-width: 220px;
}

/* Buttons */
.wcm-switcher--buttons {
	flex-wrap: wrap;
}
.wcm-switcher__btn {
	padding: 6px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	color: inherit;
}
.wcm-switcher__btn.is-active {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

/* List */
.wcm-switcher--list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.wcm-switcher__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: inherit;
}
.wcm-switcher__item.is-active .wcm-switcher__link {
	font-weight: 600;
}

/* Flags row */
.wcm-switcher--flags {
	flex-wrap: wrap;
}
.wcm-switcher__flag-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	text-decoration: none;
	color: inherit;
	opacity: 0.7;
}
.wcm-switcher__flag-link.is-active {
	opacity: 1;
	font-weight: 600;
}

/* Flags — using emoji-free CSS sprite fallback. If no flag sprite is present,
   a small rounded box with the country code color is shown. */
.wcm-flag {
	display: inline-block;
	width: 20px;
	height: 14px;
	border-radius: 2px;
	background: #e0e0e0 center/cover no-repeat;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
	flex: 0 0 auto;
}

/* Floating switcher */
.wcm-floating {
	position: fixed;
	z-index: 9999;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 8px 10px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.wcm-floating--bottom-right { bottom: 20px; right: 20px; }
.wcm-floating--bottom-left { bottom: 20px; left: 20px; }
.wcm-floating--top-right { top: 20px; right: 20px; }
.wcm-floating--top-left { top: 20px; left: 20px; }

@media (max-width: 480px) {
	.wcm-floating { padding: 6px 8px; }
	.wcm-switcher--dropdown .wcm-switcher__select { max-width: 160px; }
}
