/* Banner Styles */
.site-banner {
	max-width: 900px;
	margin: 0 auto;
	background-color: var(--bg-tertiary, #e9ecef);
	color: var(--text-primary, #333);
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: fixed;
	left: 50%;
	transform: translateX(-50%) translateY(-100%);
	top: 80px;
	z-index: 998;
	border-radius: 0.75rem;
	border: 1px solid var(--border-color, #eaeaea);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	opacity: 0;
	transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
	width: calc(100% - 3rem);
	pointer-events: none;
}

.site-banner.banner-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
	pointer-events: auto;
}

.site-banner.banner-dismissed {
	transform: translateX(-50%) translateY(-100%);
	opacity: 0;
	pointer-events: none;
}

.banner-content {
	flex: 1;
	margin-right: 1.5rem;
	padding: 1rem 1.5rem;
}

.banner-content p {
	margin: 0;
	line-height: 1.5;
	font-size: 0.925rem;
	color: var(--text-primary);
	font-weight: 500;
}

.banner-content p strong {
	font-weight: 600;
	color: var(--text-primary);
}

.banner-buttons {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
}

.banner-cta-button {
	background-color: var(--accent-color, #ff8300);
	color: white;
	padding: 0.5rem 1.25rem;
	border-radius: 0.5rem;
	font-weight: 500;
	font-size: 0.875rem;
	transition: all 0.2s ease;
	text-decoration: none;
	border: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.banner-cta-button:hover {
	background-color: var(--accent-color-hover, #e67600);
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.banner-close-button {
	background: transparent;
	border: none;
	color: var(--text-secondary, #666);
	width: 1.75rem;
	height: 1.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.2s ease;
	flex-shrink: 0;
	padding-right: 1rem;
}

.banner-close-button:hover {
	color: var(--text-primary, #333);
}

/* Ensure FA icons are displayed correctly */
.banner-close-button i {
	font-size: 0.9rem;
}

/* Apply custom background and text colors from JSON */
.site-banner[data-custom-style="true"] {
	background-color: attr(data-bg);
	color: attr(data-text);
}

/* Dark theme styles */
.dark-theme .site-banner {
	background-color: var(--bg-dark-secondary, #1e1e1e);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 1000px) {
	.site-banner {
		width: calc(100% - 3rem);
	}
}

/* Completely hide on mobile */
@media (max-width: 768px) {
	.site-banner {
		display: none !important;
	}
}