/**
 * EWR Currency Converter — Frontend Styles
 * @package EWRCurrencyConverter
 */

/* ============================================================
   Wrapper
   ============================================================ */
.ewrcc4w-switcher {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: inherit;
}

/* ============================================================
   Dropdown type
   ============================================================ */
.ewrcc4w-switcher--dropdown {
	position: relative;
}

.ewrcc4w-switcher--dropdown .ewrcc4w-select {
	appearance: none;
	-webkit-appearance: none;
	background: #fff;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	padding: 7px 32px 7px 12px;
	font-size: 14px;
	color: inherit;
	cursor: pointer;
	line-height: 1.4;
	transition: border-color .15s, box-shadow .15s;
	min-width: 80px;
}

.ewrcc4w-switcher--dropdown .ewrcc4w-select:hover,
.ewrcc4w-switcher--dropdown .ewrcc4w-select:focus {
	border-color: #7b7b7b;
	box-shadow: 0 0 0 2px rgba(0,0,0,.06);
	outline: none;
}

.ewrcc4w-dropdown-arrow {
	position: absolute;
	right: 11px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	font-size: 10px;
	color: #767676;
}

/* ============================================================
   Buttons type
   ============================================================ */
.ewrcc4w-switcher--buttons {
	flex-wrap: wrap;
	gap: 6px;
}

.ewrcc4w-btn {
	display: inline-block;
	padding: 7px 14px;
	background: #f0f0f0;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	font-size: 13px;
	cursor: pointer;
	color: inherit;
	line-height: 1.4;
	transition: background .15s, border-color .15s, color .15s;
	white-space: nowrap;
}

.ewrcc4w-btn:hover {
	background: #e0e0e0;
	border-color: #aaa;
}

.ewrcc4w-btn--active {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
	font-weight: 600;
}

.ewrcc4w-btn--active:hover {
	background: #135e96;
	border-color: #135e96;
	color: #fff;
}

/* ============================================================
   Loading state (AJAX in progress)
   ============================================================ */
.ewrcc4w-switcher--loading {
	opacity: .6;
	pointer-events: none;
}
