/**
 * BeatMaker Insights – Cookie consent banner (dark, glassmorphism).
 * Fixed bottom, smooth slide + fade. No layout impact on theme.
 */

/* Banner container: fixed bottom, full width, hidden by default for animation */
.bmi-consent-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 999999;
	padding: 0;
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(100%);
	transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

/* When visible: slide up and fade in */
.bmi-consent-banner.bmi-consent-banner--visible {
	pointer-events: auto;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Inner wrapper: glassmorphism, dark theme */
.bmi-consent-banner__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 24px;
	/* Dark glassmorphism: semi-transparent dark background + blur */
	background: rgba(18, 18, 22, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	justify-content: space-between;
}

.bmi-consent-banner__text {
	margin: 0;
	color: rgba(255, 255, 255, 0.92);
	flex: 1 1 280px;
	min-width: 0;
}

.bmi-consent-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	flex-shrink: 0;
}

/* Buttons */
.bmi-consent-banner__btn {
	cursor: pointer;
	border: none;
	border-radius: 8px;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.2s ease, transform 0.1s ease;
}

.bmi-consent-banner__btn:focus {
	outline: 2px solid rgba(255, 255, 255, 0.5);
	outline-offset: 2px;
}

/* Primary: Accept */
.bmi-consent-banner__btn--accept {
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	color: #fff;
}

.bmi-consent-banner__btn--accept:hover {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.bmi-consent-banner__btn--accept:active {
	transform: scale(0.98);
}

/* Secondary: Decline */
.bmi-consent-banner__btn--decline {
	background: rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.bmi-consent-banner__btn--decline:hover {
	background: rgba(255, 255, 255, 0.18);
}

.bmi-consent-banner__btn--decline:active {
	transform: scale(0.98);
}

/* Responsive: stack on small screens */
@media (max-width: 600px) {
	.bmi-consent-banner__inner {
		padding: 16px 18px;
		gap: 16px;
	}
	.bmi-consent-banner__actions {
		width: 100%;
		justify-content: flex-end;
	}
}
