/* Trang công cụ: khung chung (form, kết quả, nút, bản in) (CSS riêng từng công cụ: assets/css/cong-cu-<ten>.css) */

.xds-cc {
	margin: 0 0 28px;
	padding: 20px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #f9fafb;
}
.xds-cc__form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
}
.xds-cc__o {
	display: flex;
	flex: 1 1 200px;
	flex-direction: column;
	gap: 4px;
}
.xds-cc__o label {
	font-size: 14px;
	font-weight: 600;
}
.xds-cc__o input,
.xds-cc__o select {
	width: 100%;
	min-height: 44px;
	font-size: 16px; /* tránh iPhone tự phóng to */
}
.xds-cc__tinh {
	min-height: 44px;
	padding: 0 22px;
	font-weight: 600;
}
.xds-cc__ket-qua {
	margin-top: 20px;
}
.xds-cc__nut {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}
.xds-cc__nut[hidden],
.xds-cc__ket-qua[hidden] {
	display: none;
}
.xds-cc__luu-y,
.xds-cc__loi {
	margin: 14px 0 0;
	font-size: 13px;
	color: #6b7280;
}

/* Nút dùng chung (trùng .xds-nut của bai-viet.css – trang công cụ không nạp file đó) */
.xds-cc .xds-nut {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 6px 14px;
	border: 1px solid #d1d5db;
	border-radius: 18px;
	background: #fff;
	color: #374151;
	font-size: 14px;
	cursor: pointer;
}
.xds-cc .xds-nut:hover {
	border-color: var(--accent, #1e73be);
	color: var(--accent, #1e73be);
}

@media (max-width: 768px) {
	.xds-cc {
		padding: 16px;
	}
	.xds-cc__tinh {
		width: 100%;
	}
}

/* Bản in: chỉ in tiêu đề + kết quả */
@media print {
	.site-header,
	.main-navigation,
	.rank-math-breadcrumb,
	.widget-area,
	.site-footer,
	.xds-cc__form,
	.xds-cc__nut,
	.xds-ad,
	.entry-content,
	.adsbygoogle,
	.google-auto-placed {
		display: none !important;
	}
	.xds-cc {
		border: 0;
		background: none;
	}
}

/* Câu hỏi thường gặp (xổ ra) ngay dưới kết quả */
.xds-cc-hd {
	margin: 0 0 28px;
}
.xds-cc-hd__td {
	margin-bottom: 12px;
	font-size: 22px;
}
.xds-cc-hd__muc {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
}
.xds-cc-hd__muc + .xds-cc-hd__muc {
	margin-top: 8px;
}
.xds-cc-hd__muc summary {
	position: relative;
	padding: 12px 44px 12px 16px;
	font-weight: 600;
	line-height: 1.45;
	list-style: none;
	cursor: pointer;
}
.xds-cc-hd__muc summary::-webkit-details-marker {
	display: none;
}
.xds-cc-hd__muc summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 16px;
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	color: var(--accent, #1e73be);
	transform: translateY(-50%);
}
.xds-cc-hd__muc[open] summary::after {
	content: "−";
}
.xds-cc-hd__muc summary:hover,
.xds-cc-hd__muc summary:focus-visible {
	color: var(--accent, #1e73be);
}
.xds-cc-hd__dap {
	padding: 0 16px 4px;
	color: #374151;
}
.xds-cc-hd__dap p {
	margin-bottom: 12px;
}
@media print {
	.xds-cc-hd {
		display: none;
	}
}