/* Cookie Consent Banner — styles */

#ccb-root,
#ccb-root * {
	box-sizing: border-box;
}

.ccb-banner {
	position: fixed;
	z-index: 2147483646;
	background: var(--ccb-bg, #fff);
	color: var(--ccb-text, #2d2d2d);
	border: 1px solid var(--ccb-border, #e5e5e5);
	border-radius: var(--ccb-radius, 8px);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
	padding: 20px 22px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	max-width: 440px;
	width: calc(100% - 32px);
}

.ccb-banner[data-position="bottom-left"]   { left: 16px;  bottom: 16px; }
.ccb-banner[data-position="bottom-right"]  { right: 16px; bottom: 16px; }
.ccb-banner[data-position="bottom-full"]   { left: 16px;  right: 16px; bottom: 16px; max-width: 100%; }
.ccb-banner[data-position="center"]        {
	left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 520px;
}

.ccb-banner h3 {
	margin: 0 0 8px 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--ccb-text);
}

.ccb-banner p {
	margin: 0 0 16px 0;
	color: var(--ccb-muted, var(--ccb-text));
}

.ccb-banner a {
	color: var(--ccb-accent);
	text-decoration: underline;
}

.ccb-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ccb-btn {
	border: 1px solid var(--ccb-border);
	background: var(--ccb-btn-bg, transparent);
	color: var(--ccb-btn-text, var(--ccb-text));
	padding: 10px 14px;
	border-radius: calc(var(--ccb-radius, 8px) / 1.5);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	line-height: 1;
	transition: opacity 0.15s;
	font-family: inherit;
}

.ccb-btn:hover { opacity: 0.85; }

.ccb-btn--primary {
	background: var(--ccb-accent);
	color: var(--ccb-accent-text);
	border-color: var(--ccb-accent);
}

.ccb-btn--link {
	background: transparent;
	border: none;
	color: var(--ccb-accent);
	text-decoration: underline;
	padding: 10px 4px;
}

/* Panel */

.ccb-overlay {
	position: fixed;
	inset: 0;
	background: var(--ccb-overlay, rgba(0,0,0,0.35));
	z-index: 2147483646;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.ccb-panel {
	background: var(--ccb-bg);
	color: var(--ccb-text);
	border-radius: var(--ccb-radius, 8px);
	width: 100%;
	max-width: 580px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.ccb-panel__header {
	padding: 18px 22px;
	border-bottom: 1px solid var(--ccb-border);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.ccb-panel__header h3 { margin: 0; font-size: 16px; font-weight: 600; }

.ccb-panel__close {
	background: transparent;
	border: none;
	font-size: 22px;
	cursor: pointer;
	color: var(--ccb-text);
	line-height: 1;
	padding: 4px 8px;
}

.ccb-panel__body {
	padding: 18px 22px;
	overflow-y: auto;
	flex: 1;
	font-size: 14px;
}

.ccb-category {
	border: 1px solid var(--ccb-border);
	border-radius: calc(var(--ccb-radius, 8px) / 1.5);
	margin-bottom: 10px;
}

.ccb-category__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	cursor: pointer;
}

.ccb-category__title { font-weight: 600; font-size: 14px; }

.ccb-category__body {
	padding: 0 14px 14px 14px;
	border-top: 1px solid var(--ccb-border);
	font-size: 13px;
	color: var(--ccb-muted, var(--ccb-text));
}

.ccb-category__body[hidden] { display: none; }

.ccb-category__desc { margin: 10px 0; }

.ccb-cookie-list {
	margin: 10px 0 0 0;
	padding: 0;
	list-style: none;
	font-size: 12px;
}

.ccb-cookie-list li {
	padding: 8px 0;
	border-top: 1px dashed var(--ccb-border);
}

.ccb-cookie-list code { background: rgba(0,0,0,0.05); padding: 1px 4px; border-radius: 3px; }

/* Toggle switch */

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

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

.ccb-switch__slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background: #cbcbcb;
	border-radius: 22px;
	transition: 0.2s;
}

.ccb-switch__slider::before {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: 0.2s;
}

.ccb-switch input:checked + .ccb-switch__slider { background: var(--ccb-accent); }
.ccb-switch input:checked + .ccb-switch__slider::before { transform: translateX(16px); }
.ccb-switch input:disabled + .ccb-switch__slider { opacity: 0.7; cursor: not-allowed; }

.ccb-switch__label {
	font-size: 11px;
	color: var(--ccb-muted, var(--ccb-text));
	margin-right: 8px;
}

.ccb-panel__footer {
	padding: 14px 22px;
	border-top: 1px solid var(--ccb-border);
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

/* Floating reopen button */

.ccb-floating {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 2147483645;
	background: var(--ccb-bg);
	border: 1px solid var(--ccb-border);
	color: var(--ccb-text);
	border-radius: 999px;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	padding: 0;
	font-family: inherit;
}

.ccb-floating svg { width: 20px; height: 20px; }

@media (max-width: 520px) {
	.ccb-banner { max-width: 100%; left: 8px; right: 8px; bottom: 8px; padding: 16px; }
	.ccb-banner[data-position="center"] { transform: translate(-50%, -50%); }
}
