.rd-uc-wrapper {
	max-width: 610px;
	margin: 0 auto;
	font-size: 16px;
	box-sizing: border-box;
}
.rd-uc-wrapper * {
	box-sizing: border-box;
}

.rd-uc-tabs {
	display: flex;
	flex-wrap: wrap;
	border-bottom: 2px solid #e2e2e2;
	margin-bottom: 16px;
}

.rd-uc-tab {
	appearance: none;
	background: none;
	border: none;
	padding: 10px 16px;
	font-size: 14px;
	cursor: pointer;
	color: #666;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.rd-uc-tab:hover {
	color: #222;
}

.rd-uc-tab.is-active {
	color: #2271b1;
	border-bottom-color: #2271b1;
	font-weight: 600;
}

.rd-uc-panel {
	display: none;
}

.rd-uc-panel.is-active {
	display: block;
}

.rd-uc-row {
	display: flex;
	gap: 8px;
	align-items: flex-end;
	margin-bottom: 8px;
}

.rd-uc-field {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.rd-uc-field-label {
	font-size: 12px;
	color: #666;
}

.rd-uc-input {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 16px;
}

.rd-uc-output {
	background-color: #f7f7f7;
	font-weight: 600;
}

.rd-uc-select {
	flex: 0 0 auto;
	max-width: 160px;
	padding: 8px 6px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}

.rd-uc-swap {
	display: block;
	margin: 4px auto;
	background: #f0f0f0;
	border: 1px solid #ccc;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	line-height: 1;
	cursor: pointer;
	font-size: 16px;
	color: #333;
}

.rd-uc-swap:hover {
	background: #e2e2e2;
}

.rd-uc-empty {
	color: #999;
	font-style: italic;
}

.rd-uc-note {
	font-size: 12px;
	color: #999;
	margin-top: 12px;
	line-height: 1.5;
}

@media ( max-width: 480px ) {
	.rd-uc-select {
		max-width: 120px;
	}
}
