:root {
	--cc-accent: #4C9A76;
}

body.cc-no-scroll-modal {
	overflow: hidden;
}

.cc-root {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	position: fixed;
	inset: 0;
	z-index: 999999;
	pointer-events: none;
}

.cc-overlay {
	position: absolute;
	inset: 0;
	background: rgba( 20, 25, 22, 0.45 );
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
}

.cc-position-center_modal .cc-overlay {
	opacity: 1;
	pointer-events: auto;
}

.cc-banner {
	position: absolute;
	pointer-events: auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba( 0, 0, 0, 0.14 );
	max-width: 460px;
	width: calc( 100% - 32px );
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* Bandeau bas, pleine largeur. */
.cc-position-bottom_bar .cc-banner {
	left: 50%;
	bottom: 16px;
	transform: translateX( -50% );
	max-width: 720px;
	flex-direction: row;
	align-items: center;
	flex-wrap: wrap;
}

.cc-position-bottom_bar .cc-banner-body {
	flex: 1 1 320px;
}

.cc-position-bottom_bar .cc-banner-actions {
	flex: 0 0 auto;
}

/* Encart bas à gauche. */
.cc-position-bottom_left .cc-banner {
	left: 16px;
	bottom: 16px;
}

/* Fenêtre centrée. */
.cc-position-center_modal .cc-banner {
	left: 50%;
	top: 50%;
	transform: translate( -50%, -50% );
	max-height: calc( 100vh - 40px );
	overflow-y: auto;
}

.cc-banner-title {
	font-size: 17px;
	font-weight: 700;
	color: #223;
	margin: 0 0 8px;
}

.cc-banner-message {
	font-size: 13.5px;
	line-height: 1.55;
	color: #556;
	margin: 0;
}

.cc-policy-link {
	color: var( --cc-accent );
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.cc-policy-link:hover {
	text-decoration: underline;
}

.cc-categories {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 6px;
	padding-top: 14px;
	border-top: 1px solid #eee;
}

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

.cc-category-label {
	font-size: 13.5px;
	font-weight: 600;
	color: #223;
}

.cc-category-description {
	font-size: 12.5px;
	color: #778;
	margin: 4px 0 0;
	line-height: 1.5;
}

.cc-toggle {
	position: relative;
	display: inline-block;
	width: 38px;
	height: 22px;
	flex-shrink: 0;
}

.cc-toggle input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}

.cc-toggle-dot {
	position: absolute;
	inset: 0;
	background: #dcdfe0;
	border-radius: 999px;
	transition: background 0.15s ease;
}

.cc-toggle-dot::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.15s ease;
	box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.2 );
}

.cc-toggle input:checked + .cc-toggle-dot {
	background: var( --cc-accent );
}

.cc-toggle input:checked + .cc-toggle-dot::before {
	transform: translateX( 16px );
}

.cc-toggle-locked {
	opacity: 0.6;
}

.cc-toggle-locked .cc-toggle-dot {
	background: var( --cc-accent );
}

.cc-toggle-locked .cc-toggle-dot::before {
	transform: translateX( 16px );
}

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

.cc-btn {
	display: inline-block;
	padding: 9px 16px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cc-btn-primary {
	background: var( --cc-accent );
	color: #fff;
	border: none;
}

.cc-btn-primary:hover {
	background: #3d7d60;
	color: #fff;
}

.cc-btn-outline {
	background: #fff;
	color: #223;
	border: 1.5px solid #ddd;
}

.cc-btn-outline:hover {
	background: #00000020;
	color: #223;
}

.cc-btn-text {
	background: transparent;
	color: #556;
	border: none;
	padding-left: 6px;
	padding-right: 6px;
	margin-right: auto;
}

.cc-btn-text:hover {
	background: transparent;
	color: #556;
	text-decoration: underline;
}

.cc-position-bottom_bar .cc-btn-text {
	margin-right: 0;
}

.cc-reopen-fab {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 999998;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	border: 1.5px solid #eee;
	box-shadow: 0 6px 18px rgba( 0, 0, 0, 0.12 );
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease;
}

.cc-reopen-fab:hover {
	transform: translateY( -2px );
}

@media ( max-width: 560px ) {
	.cc-position-bottom_bar .cc-banner {
		flex-direction: column;
		align-items: stretch;
	}

	.cc-banner-actions {
		justify-content: stretch;
	}

	.cc-btn {
		flex: 1 1 auto;
		text-align: center;
	}

	.cc-btn-text {
		flex: 0 0 auto;
		margin-right: 0;
	}
}
