/* Cookie Consent Manager - front end styles */

.ccm-root,
.ccm-badge {
	--ccm-bg: #1f2430;
	--ccm-text: #ffffff;
	--ccm-accept-bg: #2ecc71;
	--ccm-accept-text: #0b1a10;
	--ccm-reject-bg: #3a4152;
	--ccm-reject-text: #ffffff;
	--ccm-settings-text: #9fb0c9;
	--ccm-badge-bg: #1f2430;
	--ccm-badge-icon: #ffffff;
	--ccm-radius: 10px;
	box-sizing: border-box;
}

.ccm-root *,
.ccm-root *::before,
.ccm-root *::after {
	box-sizing: border-box;
}

.ccm-root[data-hidden="true"] {
	display: none;
}

/* Overlay for the modal layout */
.ccm-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 2147483000;
	animation: ccm-fade 0.2s ease;
}

/* Shared panel look */
.ccm-banner,
.ccm-prefs {
	position: fixed;
	z-index: 2147483001;
	background: var(--ccm-bg);
	color: var(--ccm-text);
	border-radius: var(--ccm-radius);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	animation: ccm-rise 0.25s ease;
}

.ccm-heading {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	color: var(--ccm-text);
}

.ccm-message {
	margin: 0;
	color: var(--ccm-text);
	opacity: 0.92;
}

.ccm-message p {
	margin: 0 0 8px;
}

.ccm-message p:last-child {
	margin-bottom: 0;
}

.ccm-message a,
.ccm-privacy-link {
	color: var(--ccm-accept-bg);
	text-decoration: underline;
}

.ccm-privacy-link {
	display: inline-block;
	margin-top: 8px;
	font-size: 14px;
}

/* Actions */
.ccm-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: flex-end;
}

.ccm-btn {
	appearance: none;
	border: 0;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	padding: 11px 18px;
	border-radius: var(--ccm-radius);
	line-height: 1;
	transition: transform 0.08s ease, opacity 0.15s ease, filter 0.15s ease;
}

.ccm-btn:hover {
	filter: brightness(1.06);
}

.ccm-btn:active {
	transform: translateY(1px);
}

.ccm-btn:focus-visible {
	outline: 2px solid var(--ccm-accept-bg);
	outline-offset: 2px;
}

.ccm-btn-accept {
	background: var(--ccm-accept-bg);
	color: var(--ccm-accept-text);
}

.ccm-btn-reject {
	background: var(--ccm-reject-bg);
	color: var(--ccm-reject-text);
}

.ccm-btn-settings {
	background: transparent;
	color: var(--ccm-settings-text);
	padding-left: 6px;
	padding-right: 6px;
	text-decoration: underline;
}

.ccm-btn-settings:hover {
	filter: none;
	opacity: 0.85;
}

/* Layout: full width bar */
.ccm-layout-bar .ccm-banner {
	left: 16px;
	right: 16px;
	bottom: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	padding: 18px 22px;
	max-width: 1180px;
	margin: 0 auto;
}

.ccm-layout-bar .ccm-banner-body {
	flex: 1 1 auto;
	min-width: 240px;
}

.ccm-layout-bar .ccm-actions {
	flex: 0 0 auto;
}

/* Layout: floating boxes */
.ccm-layout-box-left .ccm-banner,
.ccm-layout-box-right .ccm-banner {
	bottom: 16px;
	width: 380px;
	max-width: calc(100vw - 32px);
	padding: 20px;
}

.ccm-layout-box-left .ccm-banner {
	left: 16px;
}

.ccm-layout-box-right .ccm-banner {
	right: 16px;
}

.ccm-layout-box-left .ccm-actions,
.ccm-layout-box-right .ccm-actions {
	margin-top: 16px;
	justify-content: flex-start;
}

/* Layout: centered modal */
.ccm-layout-modal .ccm-banner {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 460px;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 26px;
}

.ccm-layout-modal .ccm-actions {
	margin-top: 18px;
}

/* Preferences panel */
.ccm-prefs {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 480px;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 32px);
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
}

.ccm-prefs-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 22px 12px;
}

.ccm-prefs-head .ccm-heading {
	margin: 0;
}

.ccm-close {
	appearance: none;
	background: transparent;
	border: 0;
	color: var(--ccm-text);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.7;
	padding: 0 4px;
}

.ccm-close:hover {
	opacity: 1;
}

.ccm-prefs-body {
	padding: 4px 22px 8px;
	overflow: auto;
}

.ccm-prefs .ccm-actions {
	padding: 14px 22px 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Category rows */
.ccm-cat {
	padding: 14px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.ccm-cat:last-child {
	border-bottom: 0;
}

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

.ccm-cat-title {
	font-weight: 700;
	font-size: 15px;
}

.ccm-cat-desc {
	margin-top: 6px;
	font-size: 13.5px;
	opacity: 0.85;
}

/* Toggle switch */
.ccm-toggle {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	flex: 0 0 auto;
	cursor: pointer;
}

.ccm-toggle input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

.ccm-toggle > span {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	transition: background 0.15s ease;
}

.ccm-toggle > span::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.15s ease;
}

.ccm-toggle input:checked + span,
.ccm-toggle-locked > span {
	background: var(--ccm-accept-bg);
}

.ccm-toggle input:checked + span::before,
.ccm-toggle-locked > span::before {
	transform: translateX(20px);
}

.ccm-toggle-locked {
	cursor: not-allowed;
	opacity: 0.75;
}

/* Floating badge */
.ccm-badge {
	position: fixed;
	z-index: 2147482999;
	width: 60px;
	height: 60px;
	border: 1px solid #fff !important;
	border-radius: 60px !important;
	background: var(--ccm-badge-bg);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: transform 0.12s ease;
}

.ccm-badge:hover {
	transform: scale(1.06);
	background:#000 !important;
}

.ccm-badge svg {
	width: 26px;
	height: 26px;
	fill: #fff !important;
	color: #fff !important;
}

.ccm-badge-bottom-left {
	left: 18px;
	bottom: 18px;
}

.ccm-badge-bottom-right {
	right: 18px;
	bottom: 18px;
}

/* Animations */
@keyframes ccm-rise {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

.ccm-layout-modal .ccm-banner,
.ccm-prefs {
	animation: ccm-pop 0.2s ease;
}

@keyframes ccm-pop {
	from { opacity: 0; transform: translate(-50%, -46%); }
	to   { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes ccm-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* Small screens */
@media (max-width: 640px) {
	.ccm-layout-bar .ccm-banner {
		flex-direction: column;
		align-items: stretch;
	}
	.ccm-layout-bar .ccm-actions,
	.ccm-actions {
		justify-content: stretch;
	}
	.ccm-btn {
		flex: 1 1 auto;
		text-align: center;
	}
	.ccm-btn-settings {
		flex-basis: 100%;
	}
}
