/**
 * WMC Multi Currency 前端样式
 *
 * @package WMC_Multi_Currency
 * @since 1.0.0
 */

/* ========================================
 * 切换器样式
 * ======================================== */
.wmc-switcher {
	margin: 10px 0;
}

/* 下拉模式 */
.wmc-switcher-dropdown select {
	padding: 8px 12px;
	font-size: 14px;
	border: 1px solid #ddd;
	border-radius: 4px;
	min-width: 200px;
	background: #fff;
	cursor: pointer;
}

.wmc-switcher-dropdown select:focus {
	border-color: #0073aa;
	outline: none;
	box-shadow: 0 0 0 1px #0073aa;
}

/* 按钮模式 */
.wmc-switcher-flags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wmc-flag-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
	color: #333;
	cursor: pointer;
	transition: all 0.2s;
}

.wmc-flag-item:hover {
	border-color: #0073aa;
	background: #f0f7fc;
}

.wmc-flag-active {
	border-color: #0073aa;
	background: #0073aa;
	color: #fff;
}

.wmc-flag-active:hover {
	background: #005a87;
	color: #fff;
}

.wmc-flag-code {
	font-weight: 600;
	font-size: 13px;
}

.wmc-flag-symbol {
	font-size: 13px;
	line-height: 1;
}

/* ========================================
 * 转换器样式
 * ======================================== */
.wmc-converter {
	max-width: 350px;
}

.wmc-converter-row {
	margin-bottom: 10px;
}

.wmc-converter-row label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 13px;
}

.wmc-converter-row input[type="text"],
.wmc-converter-row select {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
}

.wmc-converter-row input[type="text"]:focus,
.wmc-converter-row select:focus {
	border-color: #0073aa;
	outline: none;
	box-shadow: 0 0 0 1px #0073aa;
}

.wmc-converter-results {
	background: #f9f9f9 !important;
}

.wmc-converter-btn {
	padding: 10px 24px;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s;
}

.wmc-converter-btn:hover {
	background: #005a87;
}

.wmc-converter-btn:active {
	background: #004a6f;
}

/* ========================================
 * 汇率表样式
 * ======================================== */
.wmc-rates-table {
	width: 100%;
	border-collapse: collapse;
}

.wmc-rates-table th,
.wmc-rates-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid #eee;
}

.wmc-rates-table th {
	background: #f5f5f5;
	font-weight: 600;
	font-size: 13px;
}

.wmc-rates-table td {
	font-size: 14px;
}

.wmc-rates-table tr:hover {
	background: #fafafa;
}

/* ========================================
 * 当前货币显示
 * ======================================== */
.wmc-current-currency {
	font-weight: 600;
}

/* ========================================
 * 缓存模式价格加载状态
 * ======================================== */
.wmc-price-loading {
	opacity: 0.5;
}
