/*
 * Nexus Client — Public Consent Banner styles
 * Sticky bottom-center cookie banner.
 */

.tmb-consent-banner {
	position: fixed;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	width: min(680px, calc(100% - 32px));
	z-index: 2147483600;
	background: #111827;
	color: #f9fafb;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0,0,0,.25);
	animation: tmb-consent-slide-in .25s ease-out;
}

@keyframes tmb-consent-slide-in {
	from { transform: translate(-50%, 24px); opacity: 0; }
	to   { transform: translate(-50%, 0);    opacity: 1; }
}

.tmb-consent-banner[hidden] {
	display: none !important;
}

.tmb-consent-banner-inner {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 16px 48px 16px 20px;
	align-items: center;
}

.tmb-consent-banner-body {
	flex: 1 1 320px;
	min-width: 0;
}

.tmb-consent-banner-title {
	margin: 0 0 4px 0;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}

.tmb-consent-banner-text {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #d1d5db;
}

.tmb-consent-banner-actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.tmb-consent-btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: 6px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
	font-family: inherit;
}

.tmb-consent-btn--decline {
	background: transparent;
	color: #d1d5db;
	border-color: #4b5563;
}

.tmb-consent-btn--decline:hover {
	border-color: #9ca3af;
	color: #fff;
}

.tmb-consent-btn--accept {
	background: #2563eb;
	color: #fff;
}

.tmb-consent-btn--accept:hover {
	background: #1d4ed8;
}

.tmb-consent-btn:focus {
	outline: 2px solid #93c5fd;
	outline-offset: 2px;
}

.tmb-consent-banner-dismiss {
	position: absolute;
	top: 6px;
	right: 8px;
	background: transparent;
	border: 0;
	color: #9ca3af;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
}

.tmb-consent-banner-dismiss:hover {
	color: #fff;
}

@media (max-width: 480px) {
	.tmb-consent-banner-inner {
		flex-direction: column;
		align-items: stretch;
	}
	.tmb-consent-banner-actions {
		justify-content: flex-end;
	}
}
