/* GDPR Cookie Consent for GA4 - Frontend Styles */

.gccg4-banner {
	--gccg4-primary: #2563eb;
	--gccg4-text: #111827;
	--gccg4-bg: #ffffff;
	--gccg4-radius: 12px;
	position: fixed;
	z-index: 999999;
	max-width: 640px;
	width: calc(100% - 32px);
	background: var(--gccg4-bg);
	color: var(--gccg4-text);
	border-radius: var(--gccg4-radius);
	box-shadow: 0 10px 40px rgba(0,0,0,0.18);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.55;
	padding: 20px 22px;
	transition: transform .3s ease, opacity .3s ease;
}

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

/* Positions */
.gccg4-position-bottom { left: 50%; bottom: 16px; transform: translateX(-50%); }
.gccg4-position-top { left: 50%; top: 16px; transform: translateX(-50%); }
.gccg4-position-bottom-left { left: 16px; bottom: 16px; }
.gccg4-position-bottom-right { right: 16px; bottom: 16px; }

.gccg4-layout-bar.gccg4-position-bottom,
.gccg4-layout-bar.gccg4-position-top { max-width: 900px; }

.gccg4-layout-modal {
	position: fixed;
	inset: 0;
	max-width: 100%;
	width: 100%;
	height: 100%;
	border-radius: 0;
	background: rgba(0,0,0,0.5);
	display: flex;
	align-items: center;
	justify-content: center;
}
.gccg4-layout-modal .gccg4-view { background: var(--gccg4-bg); border-radius: var(--gccg4-radius); max-width: 560px; width: calc(100% - 40px); padding: 24px; max-height: 85vh; overflow-y: auto; }

.gccg4-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 8px;
	color: var(--gccg4-text);
}

.gccg4-text {
	margin: 0 0 16px;
	color: var(--gccg4-text);
	opacity: 0.85;
}

.gccg4-text a {
	color: var(--gccg4-primary);
	text-decoration: underline;
}

.gccg4-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.gccg4-btn {
	border: none;
	border-radius: 8px;
	padding: 10px 18px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity .15s ease, transform .1s ease;
}
.gccg4-btn:hover { opacity: 0.9; }
.gccg4-btn:active { transform: scale(0.98); }

.gccg4-btn-primary { background: var(--gccg4-primary); color: #fff; }
.gccg4-btn-secondary { background: transparent; color: var(--gccg4-text); border: 1px solid rgba(0,0,0,0.15); }
.gccg4-btn-outline { background: transparent; color: var(--gccg4-text); border: 1px solid rgba(0,0,0,0.25); }

.gccg4-categories { display: flex; flex-direction: column; gap: 14px; margin: 16px 0; max-height: 320px; overflow-y: auto; }

.gccg4-category { border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; padding: 12px 14px; }

.gccg4-category-header { display: flex; align-items: center; gap: 10px; }

.gccg4-badge {
	font-size: 11px;
	background: rgba(37,99,235,0.1);
	color: var(--gccg4-primary);
	padding: 2px 8px;
	border-radius: 999px;
	margin-left: auto;
}

.gccg4-category-desc { margin: 6px 0 0; font-size: 12.5px; opacity: 0.75; }

/* Toggle switch */
.gccg4-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.gccg4-switch input { opacity: 0; width: 0; height: 0; }
.gccg4-slider {
	position: absolute; cursor: pointer; inset: 0;
	background-color: #ccc; transition: .3s; border-radius: 999px;
}
.gccg4-slider::before {
	position: absolute; content: ""; height: 16px; width: 16px;
	left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%;
}
.gccg4-switch input:checked + .gccg4-slider { background-color: var(--gccg4-primary); }
.gccg4-switch input:checked + .gccg4-slider::before { transform: translateX(18px); }
.gccg4-switch input:disabled + .gccg4-slider { opacity: 0.55; cursor: not-allowed; }

.gccg4-reopen-btn {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 999998;
	background: var(--gccg4-primary, #2563eb);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 10px 16px;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

@media (max-width: 520px) {
	.gccg4-actions { justify-content: stretch; }
	.gccg4-btn { flex: 1; }
}
