/* Simple GDPR Cookie Consent — front-end styles */

.sgcc-banner,
.sgcc-prefs {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 999999;
	background: var(--sgcc-bg, #1f2937);
	color: var(--sgcc-text, #f9fafb);
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
	font-size: 14px;
	line-height: 1.5;
}

.sgcc-banner[hidden],
.sgcc-prefs[hidden] {
	display: none;
}

.sgcc-position-bottom { bottom: 0; }
.sgcc-position-top { top: 0; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25); }

.sgcc-position-popup {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
}
.sgcc-position-popup .sgcc-banner-inner {
	max-width: 560px;
	border-radius: 10px;
	background: var(--sgcc-bg, #1f2937);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.sgcc-banner-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 16px 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	justify-content: space-between;
}

.sgcc-message {
	flex: 1 1 420px;
	margin: 0;
}

.sgcc-message a {
	color: var(--sgcc-accent, #22c55e);
	text-decoration: underline;
}

.sgcc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sgcc-btn {
	cursor: pointer;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: transparent;
	color: inherit;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

.sgcc-btn-accept {
	background: var(--sgcc-accent, #22c55e);
	border-color: var(--sgcc-accent, #22c55e);
	color: #0b1a0f;
}

.sgcc-btn:hover {
	opacity: 0.9;
}

.sgcc-ccpa-link {
	flex-basis: 100%;
	margin: 4px 0 0;
	font-size: 12px;
	opacity: 0.85;
}

.sgcc-ccpa-link a {
	color: inherit;
	text-decoration: underline;
}

/* Preferences panel */
.sgcc-prefs {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.sgcc-prefs-inner {
	max-width: 560px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	background: var(--sgcc-bg, #1f2937);
	border-radius: 10px;
	padding: 24px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.sgcc-prefs-inner h2 {
	margin-top: 0;
	color: inherit;
	font-size: 18px;
}

.sgcc-category {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding: 12px 0;
}

.sgcc-category:first-of-type {
	border-top: none;
}

.sgcc-category label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.sgcc-category p {
	margin: 6px 0 0 26px;
	opacity: 0.85;
	font-size: 13px;
}

.sgcc-prefs .sgcc-actions {
	margin-top: 16px;
	justify-content: flex-end;
}

.sgcc-reopen {
	background: var(--sgcc-accent, #22c55e);
	color: #0b1a0f;
}

@media (max-width: 640px) {
	.sgcc-banner-inner {
		flex-direction: column;
		align-items: stretch;
	}
	.sgcc-actions {
		justify-content: stretch;
	}
	.sgcc-actions .sgcc-btn {
		flex: 1;
	}
}
