/**
 * 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-blocking: iframe placeholders (shown in place of blocked embeds) and the
 * withdrawal/downgrade toast. Light-DOM styles (placeholders replace page iframes),
 * so everything is namespaced with the ckg- prefix and kept low-specificity + resilient.
 */

.ckg-embed {
	position: relative;
	display: block;
	width: 100%;
	min-height: 200px;
	margin: 0 0 1em;
	box-sizing: border-box;
}

.ckg-embed-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 200px;
	height: 100%;
	padding: 20px;
	text-align: center;
	color: #0a1931;
	background: #f4f6fa;
	border: 1px dashed #c6cedd;
	border-radius: 12px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.45;
}

.ckg-embed-title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
}

.ckg-embed-msg {
	margin: 0;
	max-width: 42ch;
	color: #5b6475;
}

.ckg-embed-btn {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	border: 0;
	border-radius: 8px;
	padding: 9px 18px;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: #0363fc;
	transition: filter .15s ease;
}

.ckg-embed-btn:hover {
	filter: brightness(1.06);
}

.ckg-embed-btn:focus-visible {
	outline: 2px solid #0a1931;
	outline-offset: 2px;
}

.ckg-embed-link {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	border: 0;
	background: none;
	padding: 2px 4px;
	font: inherit;
	font-size: 13px;
	color: #0363fc;
	text-decoration: underline;
}

.ckg-embed-link:hover {
	text-decoration: none;
}

/* Downgrade / withdrawal toast (shown briefly before the reload). */
.ckg-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 2147483646;
	max-width: 90vw;
	padding: 12px 18px;
	border-radius: 10px;
	background: #0a1931;
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	box-shadow: 0 8px 28px rgba(10, 25, 49, .32);
}

@media (prefers-reduced-motion: no-preference) {
	.ckg-toast {
		animation: ckg-toast-in .22s ease-out;
	}
}

@keyframes ckg-toast-in {
	from { opacity: 0; transform: translate(-50%, 12px); }
	to { opacity: 1; transform: translate(-50%, 0); }
}
