/* 사이트 공통 디자인 톤(Astra 기본값)에 맞춘 회색조 텍스트 계층 + 기본 시스템
   폰트 스택, border-radius 6px. 다른 계산기 플러그인과 톤을 맞춘다. */

.mic-widget {
	max-width: 580px;
	padding: 20px;
	background: #fff;
	border: 1px solid #e1e1e1;
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", "Malgun Gothic", sans-serif;
	color-scheme: light;
	color: #3a3a3a;
}

.mic-field {
	margin-bottom: 16px;
}

.mic-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #3a3a3a;
}

.mic-input {
	width: 100%;
	padding: 10px 12px;
	font-size: 15px;
	font-family: inherit;
	color: #3a3a3a;
	border: 1px solid #cccccc;
	border-radius: 6px;
	box-sizing: border-box;
}

.mic-input:focus {
	outline: none;
	border-color: #0274be;
}

/* author 스타일이 [hidden]의 user agent 기본값(display:none)을 이겨버리는 것을
   막기 위해 명시적으로 되살린다(이 코드베이스에서 반복되는 패턴). */
.mic-toggle-group[hidden] {
	display: none;
}

.mic-amount-korean {
	margin: 6px 0 0;
	font-size: 12px;
	color: #767676;
	min-height: 16px;
}

.mic-radio-note {
	font-size: 12px;
	color: #999999;
	font-weight: 400;
}

.mic-income-group {
	margin-bottom: 18px;
	padding: 14px 16px;
	background: #fafafa;
	border: 1px solid #ececec;
	border-radius: 6px;
}

.mic-income-group .mic-field:last-child {
	margin-bottom: 0;
}

.mic-group-title {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	color: #3a3a3a;
}

.mic-subtotal {
	margin: 4px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: #0274be;
	text-align: right;
}

.mic-help-text {
	margin: 6px 0 0;
	font-size: 11px;
	color: #999999;
	line-height: 1.6;
}

.mic-help-text a {
	color: #767676;
}

.mic-income-total {
	text-align: right;
	font-weight: 600;
}

.mic-details {
	margin: 8px 0 16px;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #e1e1e1;
	border-radius: 6px;
}

.mic-details summary {
	font-size: 12px;
	font-weight: 600;
	color: #0274be;
	cursor: pointer;
}

.mic-details[open] summary {
	margin-bottom: 8px;
}

.mic-details-list {
	margin: 0;
	padding-left: 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mic-details-list li {
	font-size: 12px;
	color: #545454;
	line-height: 1.6;
}

.mic-details-list a {
	color: #0274be;
}

.mic-details-note {
	margin: 8px 0 0;
	font-size: 11px;
	color: #999999;
	line-height: 1.6;
}

.mic-field-wide {
	margin-bottom: 18px;
}

.mic-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
}

.mic-radio-group label {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	color: #3a3a3a;
	cursor: pointer;
}

.mic-checkbox-label {
	display: flex !important;
	align-items: baseline;
	gap: 6px;
	font-size: 13px;
	font-weight: 400 !important;
	cursor: pointer;
}

.mic-property-warning {
	margin: 0 0 14px;
	padding: 10px 12px;
	font-size: 12px;
	line-height: 1.6;
	color: #a15c00;
	background: rgba(240, 116, 0, 0.08);
	border: 1px solid rgba(240, 116, 0, 0.3);
	border-radius: 6px;
}

.mic-property-warning a {
	color: #a15c00;
	text-decoration: underline;
}

.mic-result {
	margin: 18px 0;
	padding: 14px 16px;
	background: #f7f7f7;
	border: 1px solid #e1e1e1;
	border-radius: 6px;
}

.mic-result-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
}

.mic-result-row + .mic-result-row {
	border-top: 1px solid #f0f0f0;
}

.mic-result-label {
	font-size: 13px;
	color: #767676;
}

.mic-result-value {
	font-size: 14px;
	font-weight: 600;
	color: #3a3a3a;
	text-align: right;
	white-space: nowrap;
}

.mic-result-main .mic-result-label {
	font-weight: 600;
	color: #3a3a3a;
}

.mic-result-total {
	font-size: 20px;
	font-weight: 700;
	color: #0274be;
}

.mic-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 18px;
	font-size: 13px;
}

.mic-table th,
.mic-table td {
	padding: 10px 8px;
	text-align: left;
	border-bottom: 1px solid #f0f0f0;
}

.mic-table thead th {
	font-size: 11px;
	font-weight: 600;
	color: #999999;
	border-bottom: 1px solid #e1e1e1;
}

.mic-row-separate th,
.mic-row-separate td {
	border-top: 2px solid #e1e1e1;
}

.mic-table tbody th {
	font-weight: 700;
	color: #3a3a3a;
	white-space: nowrap;
}

.mic-status-ok {
	color: #0e8a41;
	font-weight: 700;
}

.mic-status-no {
	color: #999999;
}

.mic-cost-box {
	margin: 0 0 16px;
	padding: 14px 16px;
	background: rgba(2, 116, 190, 0.06);
	border: 1px solid rgba(2, 116, 190, 0.25);
	border-left: 3px solid #0274be;
	border-radius: 6px;
}

.mic-cost-title {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	color: #055a94;
}

.mic-cost-list {
	margin: 0;
	padding-left: 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mic-cost-list li {
	font-size: 12px;
	color: #545454;
	line-height: 1.6;
}

.mic-cost-list strong {
	color: #3a3a3a;
}

.mic-disclaimer {
	margin: 0;
	font-size: 11px;
	color: #999999;
	line-height: 1.6;
}

.mic-disclaimer a {
	color: #767676;
}

@media (max-width: 480px) {
	.mic-result-row {
		flex-direction: column;
		gap: 2px;
	}

	.mic-result-value {
		text-align: left;
	}

	.mic-table {
		font-size: 12px;
	}

	.mic-table th,
	.mic-table td {
		padding: 8px 4px;
	}
}
