/* Owl Consent – (c) Owl Concept */

#owlc-root {
	position: fixed;
	z-index: 999999;
	inset: auto 0 0 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: #fff;
}

#owlc-root[hidden],
#owlc-banner[hidden],
#owlc-panel[hidden],
#owlc-reopen[hidden] {
	display: none !important;
}

/* --- Bar layout --- */
.owlc-bar #owlc-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	padding: 20px 24px;
	background: var(--owlc-primary, #1a1a2e);
	box-shadow: 0 -4px 24px rgba(0, 0, 0, .25);
}

.owlc-bar .owlc-content { flex: 1 1 420px; }

/* --- Card layout --- */
.owlc-card {
	inset: auto auto 20px 20px;
	max-width: 420px;
}

.owlc-card #owlc-banner {
	padding: 24px;
	background: var(--owlc-primary, #1a1a2e);
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
}

.owlc-card .owlc-actions { margin-top: 16px; }

/* --- Text --- */
.owlc-title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 700;
}

.owlc-text {
	margin: 0;
	opacity: .85;
}

.owlc-text a {
	color: inherit;
	text-decoration: underline;
}

/* --- Buttons: equal visual weight (CNIL) --- */
.owlc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.owlc-btn {
	padding: 10px 20px;
	border-radius: 8px;
	border: 2px solid var(--owlc-accent, #e94560);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: filter .15s;
}

.owlc-btn:hover { filter: brightness(1.15); }
.owlc-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.owlc-btn-primary {
	background: var(--owlc-accent, #e94560);
	color: #fff;
}

.owlc-btn-secondary {
	background: transparent;
	color: #fff;
}

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

.owlc-panel-inner {
	background: var(--owlc-primary, #1a1a2e);
	border-radius: 12px;
	padding: 28px;
	max-width: 560px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	box-shadow: 0 12px 48px rgba(0, 0, 0, .4);
}

.owlc-cat {
	padding: 14px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}

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

.owlc-cat-label { font-weight: 600; }

.owlc-cat-desc {
	margin: 6px 0 0;
	font-size: 13px;
	opacity: .75;
}

.owlc-always {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	opacity: .6;
}

.owlc-panel-inner .owlc-actions {
	margin-top: 20px;
	justify-content: flex-end;
}

/* --- Toggle switch --- */
.owlc-switch {
	position: relative;
	display: inline-block;
	width: 46px;
	height: 26px;
	flex: none;
}

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

.owlc-slider {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, .25);
	border-radius: 26px;
	transition: background .2s;
}

.owlc-slider::before {
	content: "";
	position: absolute;
	width: 20px;
	height: 20px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform .2s;
}

.owlc-switch input:checked + .owlc-slider { background: var(--owlc-accent, #e94560); }
.owlc-switch input:checked + .owlc-slider::before { transform: translateX(20px); }
.owlc-switch input:focus-visible + .owlc-slider { outline: 3px solid #fff; outline-offset: 2px; }

/* --- Reopen button --- */
#owlc-reopen {
	position: fixed;
	z-index: 999998;
	bottom: 16px;
	left: 16px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: var(--owlc-primary, #1a1a2e);
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
}

#owlc-reopen:hover { filter: brightness(1.2); }

@media (max-width: 600px) {
	.owlc-bar .owlc-actions,
	.owlc-actions { width: 100%; }
	.owlc-btn { flex: 1 1 auto; text-align: center; }
	.owlc-card { inset: auto 12px 12px 12px; max-width: none; }
}
