/**
 * Cookie consent banner — see inc/cookie-consent.php.
 *
 * Plain CSS rather than Tailwind utilities so it works without rebuilding
 * dist/style.css. Bottom-left, clear of the Zendesk chat launcher.
 */

.td-consent {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 2147483000; /* Above the Zendesk widget. */
	box-sizing: border-box;
	width: calc(100% - 32px);
	max-width: 440px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 18px 18px 16px;
	background: #0a0a0a;
	color: #d4d4d4;
	border: 1px solid #262626;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	line-height: 1.55;
}

.td-consent[hidden] {
	display: none;
}

.td-consent__title {
	margin: 0 0 8px;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.td-consent__text p {
	margin: 0 0 8px;
}

.td-consent__text p[hidden] {
	display: none;
}

.td-consent__text a {
	color: #fff;
	text-decoration: underline;
}

.td-consent__note {
	color: #fff;
	font-weight: 600;
}

/* Accept and Decline are deliberately identical: neither may be easier to pick. */
.td-consent__actions {
	display: flex;
	gap: 10px;
	margin-top: 12px;
}

.td-consent__button {
	flex: 1 1 0;
	min-height: 44px;
	padding: 10px 14px;
	border: 0;
	border-radius: 6px;
	background: #dc2626;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s;
}

.td-consent__button:hover {
	background: #b91c1c;
}

.td-consent__button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Footer "Cookie Settings" button; colors come from its Tailwind classes. */
.td-consent-open {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	cursor: pointer;
}

@media (max-width: 480px) {
	.td-consent {
		left: 8px;
		bottom: 8px;
		width: calc(100% - 16px);
	}
}
