/* Khối "Thông tin xuất hóa đơn" trên form đăng ký Paid Member
 * Subscriptions. Số liệu dưới đây lấy ĐÚNG từ Computed Style thực đo
 * trên bimtool.dscons.vn/dang-ky/ (form #pms_register-form rộng
 * 1050px, padding 25px; 2 cột #select_package và
 * ul.pms-form-fields-wrapper vốn float:left, width:498.667px cố định).
 *
 * Để thêm cột thứ 3 mà không vỡ layout, JS (register.js) gói cả 3 cột
 * vào 1 wrapper flex chung — CSS dưới đây ép override float/width cố
 * định của 2 cột gốc để cả 3 chia đều bằng flex-basis.
 */
.dscons-einvoice-columns-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	width: 100%;
	box-sizing: border-box;
}

.dscons-einvoice-columns-wrapper > #select_package,
.dscons-einvoice-columns-wrapper > ul.pms-form-fields-wrapper,
.dscons-einvoice-columns-wrapper > .dscons-einvoice-column {
	float: none !important;
	width: auto !important;
	max-width: 100% !important;
	padding: 0 !important;
	box-sizing: border-box;
	flex: 1 1 280px;
	margin: 0;
}

.dscons-einvoice-column {
	min-width: 0; /* cho phép co lại đúng, tránh tràn nội dung dài (email...) */
}

@media (max-width: 900px) {
	.dscons-einvoice-columns-wrapper {
		flex-direction: column;
	}
}

#dscons-einvoice-heading {
	margin-top: 0;
	margin-bottom: 8px;
}

.dscons-einvoice-section {
	padding: 16px 20px;
	background: #ffffff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	margin-bottom: 16px;
}

.dscons-einvoice-buyer-type {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin-bottom: 16px;
}

.dscons-einvoice-radio {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	cursor: pointer;
}

.dscons-einvoice-radio input[type="radio"] {
	margin: 0;
}

.dscons-einvoice-row--half {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}

.dscons-einvoice-field {
	margin-bottom: 14px;
}

.dscons-einvoice-field label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.dscons-einvoice-field input {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}

.dscons-einvoice-field .required {
	color: #d63638;
}

.dscons-einvoice-hint {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: #667085;
}

.dscons-einvoice-hint--block {
	margin: 4px 0 0;
}

@media (max-width: 600px) {
	.dscons-einvoice-row--half {
		grid-template-columns: 1fr;
	}
}


/* --- Popup "Đang xử lý" khi bấm Đăng ký (không tắt được, chặn tương tác phía sau) --- */
.dscons-loading-overlay {
	position: fixed;
	inset: 0;
	background: rgba(8, 47, 87, 0.55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.dscons-loading-overlay__card {
	background: #ffffff;
	border-radius: 24px;
	padding: 64px 72px;
	text-align: center;
	box-shadow: 0 16px 60px rgba(0, 0, 0, 0.28);
	max-width: 620px;
}

.dscons-loading-overlay__spinner {
	position: relative;
	width: 108px;
	height: 108px;
	border: 7px solid #DCE7F2;
	border-top-color: #0667E8;
	border-radius: 50%;
	margin: 0 auto 28px;
	animation: dscons-spin 0.8s linear infinite;
}

.dscons-loading-overlay__spinner img {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 58%;
	height: 58%;
	object-fit: contain;
	animation: none;
}

@keyframes dscons-spin {
	to { transform: rotate(360deg); }
}

.dscons-loading-overlay__text {
	font-weight: 600;
	font-size: 22px;
	color: #102A43;
	line-height: 1.5;
}
