.cc-banner {
	--cc-bg: #151b36;
	--cc-bg2: #0b1022;
	--cc-yellow: #ffb703;
	--cc-yellow-hover: #f2ad00;
	--cc-purple: #8b5cf6;
	--cc-text: #e8ebff;
	--cc-muted: #9aa2c7;

	position: fixed;
	inset: 0;
	z-index: 999999;
	font-family: 'Segoe UI', system-ui, sans-serif;
	color: var(--cc-text);
}

.cc-banner[hidden] {
	display: none;
}

.cc-banner * {
	box-sizing: border-box;
}

.cc-banner-overlay {
	position: absolute;
	inset: 0;
	background: rgba( 5, 7, 20, 0.6 );
	display: none;
}

.cc-banner-box {
	position: absolute;
	background: var(--cc-bg2);
	border: 1px solid rgba( 255, 255, 255, 0.08 );
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.4 );
	border-radius: 12px;
	padding: 24px;
	max-height: calc( 100vh - 32px );
	overflow-y: auto;
}

.cc-title {
	margin: 0 0 8px;
	font-weight: 700;
	font-size: 1.05em;
	color: var(--cc-yellow);
}

.cc-description {
	margin: 0;
	font-size: 0.85em;
	line-height: 1.6;
	color: var(--cc-muted);
}

.cc-policy-link {
	color: var(--cc-purple);
	text-decoration: underline;
	white-space: nowrap;
}

.cc-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 16px;
}

#cc-banner .cc-btn {
	border-radius: 8px;
	padding: 10px 16px;
	font-size: 0.85em;
	font-weight: 700;
	cursor: pointer;
	border: none;
}

#cc-banner .cc-btn-primary {
	background: var(--cc-yellow);
	color: #1a1200;
}
#cc-banner .cc-btn-primary:hover {
	background: var(--cc-yellow-hover);
	color: #1a1200;
}

#cc-banner .cc-btn-primary:hover {
	background: var(--cc-yellow-hover);
}

#cc-banner .cc-btn-outline {
	background: transparent;
	color: var(--cc-text);
	border: 1px solid var(--cc-purple);
}
#cc-banner .cc-btn-outline:hover {
	background: #8b5cf650;
}

#cc-banner .cc-btn-ghost {
	background: transparent;
	color: var(--cc-muted);
	text-decoration: underline;
	padding-left: 4px;
	padding-right: 4px;
}

.cc-view[hidden] {
	display: none;
}

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

.cc-category-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.cc-category-name {
	font-weight: 700;
	font-size: 0.9em;
}

.cc-category-desc {
	margin: 6px 0 0;
	font-size: 0.8em;
	color: var(--cc-muted);
	line-height: 1.5;
}

.cc-switch {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 22px;
	flex: 0 0 auto;
}

.cc-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.cc-switch-slider {
	position: absolute;
	inset: 0;
	background: rgba( 255, 255, 255, 0.15 );
	border-radius: 22px;
	transition: background 0.15s ease;
	cursor: pointer;
}

.cc-switch-slider::before {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.15s ease;
}

.cc-switch input:checked + .cc-switch-slider {
	background: var(--cc-purple);
}

.cc-switch input:checked + .cc-switch-slider::before {
	transform: translateX( 18px );
}

.cc-switch-disabled .cc-switch-slider {
	opacity: 0.5;
	cursor: not-allowed;
}

/* --- Style : barre en bas de page --- */
.cc-style-bar .cc-banner-box {
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 12px 12px 0 0;
	max-width: 100%;
}

.cc-style-bar .cc-view-summary .cc-title,
.cc-style-bar .cc-view-summary .cc-description {
	display: inline;
}

@media ( min-width: 720px ) {
	.cc-style-bar .cc-banner-box {
		display: flex;
		align-items: center;
		gap: 24px;
		padding: 18px 24px;
	}

	.cc-style-bar .cc-view-summary {
		display: flex;
		align-items: center;
		gap: 24px;
		width: 100%;
	}

	.cc-style-bar .cc-view-summary .cc-title {
		margin: 0;
		white-space: nowrap;
	}

	.cc-style-bar .cc-view-summary .cc-actions {
		margin: 0 0 0 auto;
		flex-shrink: 0;
	}
}

/* --- Style : fenêtre modale centrée --- */
.cc-style-modal .cc-banner-overlay {
	display: block;
}

.cc-style-modal .cc-banner-box {
	left: 50%;
	top: 50%;
	transform: translate( -50%, -50% );
	width: 92%;
	max-width: 460px;
}

/* --- Style : petite fenêtre en coin --- */
.cc-style-corner .cc-banner-box {
	left: 16px;
	bottom: 16px;
	width: calc( 100% - 32px );
	max-width: 360px;
}

@media ( max-width: 480px ) {
	.cc-style-corner .cc-banner-box,
	.cc-style-modal .cc-banner-box {
		left: 8px;
		right: 8px;
		width: auto;
		transform: none;
		bottom: 8px;
		top: auto;
	}
}

/* --- Lien "Gérer mes cookies" (shortcode [cookie_settings]) --- */
.cc-reopen-link {
	background: none;
	border: none;
	padding: 0;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
}
