/*
 * C4IR CMP — giao diện.
 * Yêu cầu pháp lý được thể hiện trong CSS: nút "Từ chối tất cả" và "Đồng ý tất cả"
 * có cùng kích thước, cùng độ tương phản, cùng vị trí thị giác. Không dùng màu nhạt,
 * chữ nhỏ hay vị trí lệch để hướng người dùng về phía đồng ý.
 */

.c4ir-cmp {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 99999;
	display: flex;
	justify-content: center;
	padding: 16px;
	background: rgba( 12, 22, 36, 0.45 );
}

.c4ir-cmp__box {
	width: 100%;
	max-width: 720px;
	max-height: 82vh;
	overflow-y: auto;
	padding: 24px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba( 0, 0, 0, 0.25 );
	font-size: 15px;
	line-height: 1.6;
	color: #14202e;
}

.c4ir-cmp__title {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 700;
}

.c4ir-cmp__body {
	margin: 0 0 12px;
}

.c4ir-cmp__meta {
	margin: 0 0 16px;
	font-size: 13px;
	color: #4a5768;
}

/* Bảng mục đích chỉ hiện khi người dùng chủ động mở lớp tuỳ chọn. */
.c4ir-cmp__purposes {
	display: none;
	border-top: 1px solid #e2e6ec;
	margin-bottom: 16px;
}

.c4ir-cmp.is-expanded .c4ir-cmp__purposes {
	display: block;
}

.c4ir-cmp__purpose {
	display: flex;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid #e2e6ec;
	font-size: 14px;
}

.c4ir-cmp__purpose input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 3px;
}

.c4ir-cmp__purpose em {
	font-size: 12px;
	color: #6b7889;
}

.c4ir-cmp__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.c4ir-cmp__btn {
	flex: 1 1 180px;
	padding: 12px 18px;
	font-size: 15px;
	font-weight: 600;
	color: #0b2545;
	background: #fff;
	border: 2px solid #0b2545;
	border-radius: 4px;
	cursor: pointer;
}

.c4ir-cmp__btn:hover {
	background: #f1f4f8;
}

.c4ir-cmp__btn--link {
	flex: 0 0 auto;
	font-weight: 500;
	text-decoration: underline;
	border-color: transparent;
	background: transparent;
}

.c4ir-cmp__btn--save {
	display: none;
	background: #0b2545;
	color: #fff;
}

.c4ir-cmp.is-expanded .c4ir-cmp__btn--save {
	display: block;
}

.c4ir-cmp__footer {
	margin: 16px 0 0;
	font-size: 13px;
	color: #4a5768;
}

/* Chỗ giữ cho nội dung nhúng bị tạm dừng. */
.c4ir-cmp-placeholder {
	padding: 20px;
	margin-bottom: 12px;
	background: #f1f4f8;
	border: 1px dashed #9aa7b8;
	border-radius: 6px;
	font-size: 14px;
	text-align: center;
}

.c4ir-cmp-placeholder button {
	padding: 8px 16px;
	font-weight: 600;
	color: #0b2545;
	background: #fff;
	border: 2px solid #0b2545;
	border-radius: 4px;
	cursor: pointer;
}

.c4ir-cmp-open {
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

@media ( max-width: 600px ) {
	.c4ir-cmp__box {
		padding: 18px;
	}

	.c4ir-cmp__btn {
		flex: 1 1 100%;
	}
}
