/**
 * Currency Switcher for WooCommerce – Frontend CSS
 *
 * Styles the switcher widget (dropdown or inline list).
 * Uses the .fmecs- prefix throughout.
 */

/* ── Wrapper ─────────────────────────────────────────────────────────────*/
.fmecs-switcher-wrap {
	display: inline-block;
	vertical-align: middle;
	position: relative;
	font-size: 14px;
	line-height: 1.4;
}

/* ── Dropdown type ───────────────────────────────────────────────────────*/
.fmecs-switcher-dropdown .fmecs-currency-switcher-select {
	padding: 6px 28px 6px 10px;
	border: 1px solid var(--fmecs-border, #dddddd);
	border-radius: 4px;
	background-color: var(--fmecs-bg, #ffffff);
	color: var(--fmecs-text, #555555);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23555' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 12px;
	min-width: 120px;
	font-size: inherit;
	transition: border-color .15s;
}
.fmecs-switcher-dropdown .fmecs-currency-switcher-select:focus {
	outline: none;
	border-color: var(--fmecs-active, #96588a);
	box-shadow: 0 0 0 2px rgba(150, 88, 138, .15);
}

/* ── List type ───────────────────────────────────────────────────────────*/
.fmecs-switcher-list .fmecs-currency-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	align-items: center;
}
.fmecs-switcher-list .fmecs-currency-list li {
	display: inline-block;
}
.fmecs-switcher-list .fmecs-currency-list a {
	text-decoration: none;
	color: var(--fmecs-text, #555555);
	padding: 4px 8px;
	border-radius: 3px;
	transition: color .15s, background .15s;
	font-size: inherit;
}
.fmecs-switcher-list .fmecs-currency-list a:hover {
	color: var(--fmecs-active, #96588a);
	background: rgba(150, 88, 138, .06);
}
.fmecs-switcher-list .fmecs-currency-list li.active a {
	color: var(--fmecs-active, #96588a);
	font-weight: 600;
}

/* ── Sticky floating widget ──────────────────────────────────────────────*/
.fmecs-sticky-wrap {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9999;
	background: var(--fmecs-bg, #ffffff);
	border: 1px solid var(--fmecs-border, #dddddd);
	border-radius: 6px;
	padding: 10px 14px;
	box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

/* Sticky: make list vertical like the design */
.fmecs-sticky-wrap .fmecs-switcher-wrap {
	display: block;
}
.fmecs-sticky-wrap .fmecs-switcher-list .fmecs-currency-list {
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
}
.fmecs-sticky-wrap .fmecs-switcher-list .fmecs-currency-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border: 1px solid var(--fmecs-border, #dddddd);
	background: #fff;
}
.fmecs-sticky-wrap .fmecs-switcher-list .fmecs-currency-list li.active a {
	background: rgba(150, 88, 138, .06);
}

/* Product-page auto switcher spacing */
.fmecs-product-switcher {
	margin-top: 8px;
	margin-bottom: 8px;
}

/* ── Flag emoji ──────────────────────────────────────────────────────────*/
.fmecs-flag-emoji {
	display: inline-block;
	margin-right: 4px;
	font-size: 1.1em;
	vertical-align: middle;
}

/* ── Responsive ──────────────────────────────────────────────────────────*/
@media ( max-width: 480px ) {
	.fmecs-sticky-wrap {
		bottom: 12px;
		right: 12px;
		padding: 8px 10px;
	}
	.fmecs-switcher-dropdown .fmecs-currency-switcher-select {
		font-size: 13px;
	}
}
