/* ============================================================
   CC GDPR — Cookie consent banner
   ============================================================ */

.ccgdpr-banner {
	position: fixed;
	z-index: 999998;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	pointer-events: none;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .35s ease, transform .35s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}
.ccgdpr-banner.ccgdpr-visible {
	opacity: 1;
	transform: translateY(0);
}
.ccgdpr-banner[hidden] { display: none; }

/* Positions */
.ccgdpr-pos-bottom { bottom: 0; padding: 20px; }
.ccgdpr-pos-top    { top: 0;    padding: 20px; }
.ccgdpr-pos-modal {
	inset: 0;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(6, 18, 28, .55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.ccgdpr-inner {
	pointer-events: auto;
	max-width: 1080px;
	width: 100%;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 30px 70px rgba(10, 37, 64, .18), 0 0 0 1px rgba(10, 37, 64, .05);
	padding: 20px 24px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 20px;
	align-items: center;
}

/* Style: bar */
.ccgdpr-style-bar .ccgdpr-inner {
	max-width: 100%;
	border-radius: 0;
	padding: 16px 24px;
	box-shadow: 0 -8px 24px rgba(10, 37, 64, .08);
}
.ccgdpr-pos-top.ccgdpr-style-bar .ccgdpr-inner { box-shadow: 0 8px 24px rgba(10, 37, 64, .08); }

/* Icon */
.ccgdpr-icon {
	width: 44px; height: 44px;
	flex: 0 0 44px;
	border-radius: 12px;
	background: #e0f2fe;
	color: #0284c7;
	display: grid;
	place-items: center;
}
.ccgdpr-icon svg { width: 24px; height: 24px; }

/* Content */
.ccgdpr-content { min-width: 0; }
.ccgdpr-title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	color: #0a2540;
	letter-spacing: -.01em;
}
.ccgdpr-message {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.55;
	color: #5a7080;
}
.ccgdpr-info-link {
	color: #0284c7;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.ccgdpr-info-link:hover { color: #0ea5e9; }

/* Actions */
.ccgdpr-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	flex: 0 0 auto;
}

.ccgdpr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 11px 18px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .01em;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .15s, box-shadow .15s, background .15s, color .15s;
	white-space: nowrap;
	font-family: inherit;
}
.ccgdpr-btn-primary {
	background: linear-gradient(135deg, #f97316, #ea580c);
	color: #fff;
	box-shadow: 0 8px 20px rgba(249, 115, 22, .28);
}
.ccgdpr-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(249, 115, 22, .42); }
.ccgdpr-btn-outline {
	background: #fff;
	color: #0a2540;
	border-color: #dbe5ea;
}
.ccgdpr-btn-outline:hover { background: #f5f9fc; }
.ccgdpr-btn-ghost {
	background: transparent;
	color: #5a7080;
}
.ccgdpr-btn-ghost:hover { color: #0a2540; background: #f5f9fc; }

/* Preferences panel */
.ccgdpr-preferences {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(6, 18, 28, .55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	pointer-events: auto;
}
.ccgdpr-preferences[hidden] { display: none; }
.ccgdpr-pref-inner {
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 18px;
	padding: 28px;
	box-shadow: 0 40px 90px rgba(10, 37, 64, .3);
}
.ccgdpr-pref-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}
.ccgdpr-pref-head h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: #0a2540;
}
.ccgdpr-close {
	width: 36px; height: 36px;
	border: 0;
	background: #f5f9fc;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #5a7080;
}
.ccgdpr-close:hover { background: #eef5fa; color: #0a2540; }

.ccgdpr-pref-intro {
	margin: 0 0 20px;
	font-size: 13.5px;
	line-height: 1.55;
	color: #5a7080;
}

.ccgdpr-pref-list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}
.ccgdpr-pref-item {
	padding: 14px 0;
	border-bottom: 1px solid #eef3f5;
}
.ccgdpr-pref-item:last-child { border-bottom: 0; }
.ccgdpr-pref-item label {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	margin-bottom: 6px;
}
.ccgdpr-pref-item input[type=checkbox] {
	width: 18px; height: 18px;
	margin: 0;
	accent-color: #0284c7;
	cursor: pointer;
}
.ccgdpr-pref-name {
	font-size: 14px;
	font-weight: 600;
	color: #0a2540;
}
.ccgdpr-pref-item p {
	margin: 0 0 0 30px;
	font-size: 12.5px;
	color: #5a7080;
	line-height: 1.5;
}

.ccgdpr-pref-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	padding-top: 18px;
	border-top: 1px solid #eef3f5;
}

/* Floating reopen button */
.ccgdpr-reopen {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 999990;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: #fff;
	color: #0a2540;
	border: 1px solid #e3ecf2;
	border-radius: 999px;
	box-shadow: 0 10px 26px rgba(10, 37, 64, .12);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: transform .15s, box-shadow .15s;
}
.ccgdpr-reopen:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(10, 37, 64, .18); }
.ccgdpr-reopen svg { width: 18px; height: 18px; color: #0284c7; }
.ccgdpr-reopen[hidden] { display: none; }

/* Responsive */
@media (max-width: 800px) {
	.ccgdpr-inner {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 18px;
	}
	.ccgdpr-icon { display: none; }
	.ccgdpr-actions {
		flex-direction: column;
		gap: 8px;
	}
	.ccgdpr-actions .ccgdpr-btn { width: 100%; }
	.ccgdpr-pref-inner { padding: 22px; }
	.ccgdpr-pref-actions { flex-direction: column; }
	.ccgdpr-pref-actions .ccgdpr-btn { width: 100%; }
	.ccgdpr-reopen span { display: none; }
	.ccgdpr-reopen { padding: 12px; border-radius: 50%; }
}

/* ============================================================
   PREFERENCES MODAL v2
   ============================================================ */

.ccgdpr-preferences {
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(6, 18, 28, .68);
	backdrop-filter: blur(8px) saturate(1.1);
	-webkit-backdrop-filter: blur(8px) saturate(1.1);
	box-sizing: border-box;
	overflow-y: auto;
}
.ccgdpr-preferences[hidden] { display: none !important; }

.ccgdpr-pref-inner {
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	background: #fff;
	border-radius: 18px;
	padding: 28px;
	box-shadow: 0 40px 90px rgba(10, 37, 64, .4);
	box-sizing: border-box;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

.ccgdpr-pref-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 14px;
	margin-bottom: 14px;
	border-bottom: 1px solid #eef3f5;
}
.ccgdpr-pref-head h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: #0a2540;
}
.ccgdpr-close {
	width: 36px;
	height: 36px;
	border: 0;
	background: #f5f9fc;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #5a7080;
	font-family: inherit;
}
.ccgdpr-close:hover { background: #eef5fa; color: #0a2540; }

.ccgdpr-pref-intro {
	margin: 0 0 20px;
	font-size: 13.5px;
	line-height: 1.55;
	color: #5a7080;
}

.ccgdpr-pref-list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}
.ccgdpr-pref-item {
	padding: 14px 0;
	border-bottom: 1px solid #eef3f5;
}
.ccgdpr-pref-item:last-child { border-bottom: 0; }
.ccgdpr-pref-item label {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	margin-bottom: 6px;
}
.ccgdpr-pref-item input[type=checkbox] {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #0284c7;
	cursor: pointer;
}
.ccgdpr-pref-name {
	font-size: 14px;
	font-weight: 600;
	color: #0a2540;
}
.ccgdpr-pref-item p {
	margin: 0 0 0 30px;
	font-size: 12.5px;
	color: #5a7080;
	line-height: 1.5;
}

.ccgdpr-pref-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	padding-top: 18px;
	border-top: 1px solid #eef3f5;
}

@media (max-width: 700px) {
	.ccgdpr-preferences { padding: 0; align-items: flex-end; }
	.ccgdpr-pref-inner {
		max-width: 100%;
		max-height: 92vh;
		border-radius: 20px 20px 0 0;
		padding: 24px 20px 32px;
	}
	.ccgdpr-pref-actions { flex-direction: column; }
	.ccgdpr-pref-actions .ccgdpr-btn { width: 100%; }
}

/* ============================================================
   REOPEN BUTTON
   ============================================================ */
.ccgdpr-reopen {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 2147483645;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: #fff;
	color: #0a2540;
	border: 1px solid #e3ecf2;
	border-radius: 999px;
	box-shadow: 0 10px 26px rgba(10, 37, 64, .12);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: transform .15s, box-shadow .15s;
}
.ccgdpr-reopen:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(10, 37, 64, .18); }
.ccgdpr-reopen svg { width: 18px; height: 18px; color: #0284c7; }
.ccgdpr-reopen[hidden] { display: none; }

@media (max-width: 700px) {
	.ccgdpr-reopen span { display: none; }
	.ccgdpr-reopen { padding: 12px; border-radius: 50%; }
}
