.wcme-currency-switcher {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	position: relative;
}

.wcme-currency-switcher.wcme-align-left { justify-content: flex-start; }
.wcme-currency-switcher.wcme-align-center { justify-content: center; }
.wcme-currency-switcher.wcme-align-right { justify-content: flex-end; }

/* Button group style */
.wcme-currency-buttons {
	display: inline-flex;
	gap: 6px;
	flex-wrap: wrap;
	max-height: 220px;
	overflow-y: auto;
}

.wcme-currency-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid #d0d5dd;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	font-size: 13px;
}

.wcme-currency-button.wcme-active {
	background: #111827;
	color: #fff;
	border-color: #111827;
}

/* Custom dropdown */
.wcme-dropdown {
	position: relative;
	display: inline-block;
	width: 100%;
}

.wcme-dropdown-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	min-width: 140px;
	padding: 8px 12px;
	border: 1px solid #d0d5dd;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	font-size: 14px;
}

.wcme-dropdown-arrow {
	font-size: 10px;
	transition: transform 0.15s ease;
	opacity: 0.6;
}

.wcme-dropdown.wcme-open .wcme-dropdown-arrow {
	transform: rotate(180deg);
}

.wcme-dropdown-panel {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 220px;
	width: max-content;
	max-width: 320px;
	background: #fff;
	border: 1px solid #e4e7ec;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
	z-index: 9999;
	overflow: hidden;
	flex-direction: column;
}

.wcme-dropdown.wcme-open .wcme-dropdown-panel {
	display: flex;
}

.wcme-dropdown-search {
	border: none;
	border-bottom: 1px solid #e4e7ec;
	padding: 10px 12px;
	font-size: 13px;
	width: 100%;
	box-sizing: border-box;
	outline: none;
	flex-shrink: 0;
}

.wcme-dropdown-list {
	list-style: none;
	margin: 0;
	padding: 4px 0;
	overflow-y: auto;
	max-height: 300px;
}

.wcme-dropdown-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	cursor: pointer;
	font-size: 13px;
	white-space: nowrap;
}

.wcme-dropdown-item:hover,
.wcme-dropdown-item.wcme-active {
	background: #f2f4f7;
}

.wcme-dropdown-item[hidden] {
	display: none;
}

.wcme-flag {
	width: 20px;
	height: 15px;
	object-fit: cover;
	border-radius: 2px;
	flex-shrink: 0;
	display: inline-block;
	vertical-align: middle;
}

.wcme-loading,
.wcme-loading .wcme-dropdown-toggle,
.wcme-loading .wcme-currency-button {
	opacity: 0.55;
	pointer-events: none;
}

/* Thin, unobtrusive top-of-page progress bar while the page content refreshes. */
.wcme-progress-bar {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0;
	background: #111827;
	z-index: 999999;
	transition: width 0.4s ease;
}

.wcme-progress-bar.wcme-progress-active {
	width: 70%;
}

.wcme-progress-bar.wcme-progress-done {
	width: 100%;
	opacity: 0;
	transition: width 0.2s ease, opacity 0.3s ease 0.1s;
}
