/* 
 * Custom Consent Tool - Frontend Styles
 * Focus: Accessibility, Responsiveness, and Equal Visual Weight (No Nudging)
 */

/* Banner Container */
#cct-consent-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: #ffffff;
	box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
	z-index: 999999; /* Ensure it sits above everything */
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #333333;
	transition: transform 0.3s ease-in-out;
}

#cct-consent-banner.cct-banner-hidden {
	transform: translateY(100%);
}

.cct-banner-content {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
}

#cct-banner-title {
	margin-top: 0;
	font-size: 1.25rem;
	font-weight: 600;
}

#cct-banner-desc {
	font-size: 0.9rem;
	line-height: 1.5;
	margin-bottom: 20px;
}

/* Action Buttons - Equal Visual Weight */
.cct-banner-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.cct-btn {
	flex: 1 1 auto;
	min-width: 120px;
	padding: 12px 20px;
	font-size: 1rem;
	font-weight: 600;
	text-align: center;
	border: 2px solid #333333;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
	background-color: transparent;
	color: #333333;
}

/* Hover states maintain equal weight */
.cct-btn:hover, .cct-btn:focus {
	background-color: #f0f0f0;
	outline: 2px solid #005fcc; /* Focus indicator for accessibility */
	outline-offset: 2px;
}

/* Settings Panel */
#cct-settings-panel {
	margin-bottom: 20px;
	padding: 15px;
	background-color: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

#cct-settings-panel.cct-settings-hidden {
	display: none;
}

.cct-category {
	margin-bottom: 15px;
}

.cct-category label {
	display: flex;
	align-items: flex-start;
	cursor: pointer;
}

.cct-category input[type="checkbox"] {
	margin-top: 4px;
	margin-right: 10px;
	width: 18px;
	height: 18px;
}

.cct-category strong {
	display: block;
	font-size: 1rem;
}

.cct-cat-desc {
	display: block;
	font-size: 0.85rem;
	color: #666666;
	margin-top: 2px;
}

#cct-btn-save-settings {
	margin-top: 10px;
	width: 100%;
}

/* Floating Privacy Icon */
#cct-privacy-icon {
	position: fixed;
	bottom: 20px;
	left: 20px;
	width: 48px;
	height: 48px;
	background-color: #ffffff;
	border: 2px solid #333333;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	z-index: 999998;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #333333;
	transition: transform 0.2s, background-color 0.2s;
}

#cct-privacy-icon.cct-icon-hidden {
	display: none;
}

#cct-privacy-icon:hover, #cct-privacy-icon:focus {
	background-color: #f0f0f0;
	transform: scale(1.05);
	outline: 2px solid #005fcc;
	outline-offset: 2px;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
	.cct-banner-actions {
		flex-direction: column;
	}
	.cct-btn {
		width: 100%;
	}
}
