/**
 * CookieGate — DPDP Cookie Consent & Data Principal Rights
 * Developed & maintained by: Vijaya Kumar L, Lead Application Engineering, CIEL HR
 * © 2026 CIEL HR. Internal use only — not for sale or redistribution.
 */

.ckg-cookie-table {
	margin: 0 0 1.5rem;
	font-size: 0.95rem;
	color: inherit;
}

.ckg-cookie-table .ckg-ct-group {
	margin: 0 0 2rem;
}

.ckg-cookie-table .ckg-ct-group-title {
	margin: 0 0 0.6rem;
	font-size: 1.1rem;
	font-weight: 600;
}

.ckg-cookie-table .ckg-ct-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.ckg-cookie-table .ckg-ct-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.ckg-cookie-table .ckg-ct-th,
.ckg-cookie-table .ckg-ct-td {
	padding: 0.6rem 0.75rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ckg-cookie-table .ckg-ct-th {
	font-weight: 600;
	white-space: nowrap;
	background: rgba(0, 0, 0, 0.03);
}

.ckg-cookie-table .ckg-ct-td-name {
	font-weight: 600;
	word-break: break-word;
}

.ckg-cookie-table .ckg-ct-td-description {
	max-width: 32rem;
}

.ckg-cookie-table .ckg-ct-empty {
	margin: 0;
	opacity: 0.75;
	font-style: italic;
}

/* Stacked card layout on small screens. */
@media (max-width: 600px) {
	.ckg-cookie-table .ckg-ct-table,
	.ckg-cookie-table .ckg-ct-table thead,
	.ckg-cookie-table .ckg-ct-table tbody,
	.ckg-cookie-table .ckg-ct-table tr,
	.ckg-cookie-table .ckg-ct-table th,
	.ckg-cookie-table .ckg-ct-table td {
		display: block;
		width: 100%;
	}

	.ckg-cookie-table .ckg-ct-table thead {
		position: absolute;
		left: -9999px;
	}

	.ckg-cookie-table .ckg-ct-row {
		margin: 0 0 0.75rem;
		border: 1px solid rgba(0, 0, 0, 0.12);
		border-radius: 8px;
		padding: 0.25rem 0.5rem;
	}

	.ckg-cookie-table .ckg-ct-td {
		border-bottom: none;
		padding: 0.35rem 0.25rem;
	}

	.ckg-cookie-table .ckg-ct-td::before {
		content: attr(data-ckg-label) ": ";
		font-weight: 600;
		display: inline-block;
		margin-right: 0.35rem;
	}
}
