/* Panorama Cookie Consent — banner, preference center, revisit button. */

#pvcc-root {
	--pvcc-accent: #1863dc;
	--pvcc-accent-text: #ffffff;
	--pvcc-revisit: #0056a7;
	--pvcc-text: #212121;
	--pvcc-bg: #ffffff;
	--pvcc-border: #f4f4f4;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: var(--pvcc-text);
}

#pvcc-root [hidden] {
	display: none !important;
}

#pvcc-root .pvcc-btn {
	display: inline-block;
	padding: 9px 18px;
	border-radius: 2px;
	border: 1px solid var(--pvcc-accent);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	text-align: center;
	transition: opacity 0.15s ease;
	background: none;
}

#pvcc-root .pvcc-btn:hover {
	opacity: 0.85;
}

#pvcc-root .pvcc-btn:focus-visible {
	outline: 2px solid var(--pvcc-revisit);
	outline-offset: 2px;
}

#pvcc-root .pvcc-btn-solid {
	background-color: var(--pvcc-accent);
	color: var(--pvcc-accent-text);
}

#pvcc-root .pvcc-btn-outline {
	background-color: transparent;
	color: var(--pvcc-accent);
}

/* ---------- Banner (box, bottom-left) ---------- */

.pvcc-banner {
	position: fixed;
	bottom: 16px;
	left: 16px;
	z-index: 999999;
	width: 440px;
	max-width: calc(100vw - 32px);
	background: var(--pvcc-bg);
	border: 1px solid var(--pvcc-border);
	border-radius: 6px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
	padding: 20px 22px;
	animation: pvcc-slide-up 0.35s ease;
}

@keyframes pvcc-slide-up {
	from {
		transform: translateY(24px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.pvcc-banner-title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
	color: var(--pvcc-text);
}

.pvcc-banner-description {
	margin: 0 0 16px;
	font-size: 13px;
	color: var(--pvcc-text);
}

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

.pvcc-banner-buttons .pvcc-btn {
	flex: 1 1 auto;
}

/* ---------- Preference center ---------- */

.pvcc-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999998;
	background: rgba(0, 0, 0, 0.5);
}

.pvcc-preferences {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 9999999;
	width: 600px;
	max-width: calc(100vw - 32px);
	max-height: min(80vh, 700px);
	display: flex;
	flex-direction: column;
	background: var(--pvcc-bg);
	border-radius: 6px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.pvcc-preferences[hidden] {
	display: none;
}

.pvcc-pc-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 22px;
	border-bottom: 1px solid #e0e0e0;
}

.pvcc-pc-header h2 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--pvcc-text);
}

.pvcc-pc-close {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	color: var(--pvcc-text);
	cursor: pointer;
}

.pvcc-pc-close:hover {
	background: #f0f0f0;
}

.pvcc-pc-body {
	overflow-y: auto;
	padding: 16px 22px;
}

.pvcc-pc-description {
	margin: 0 0 16px;
	font-size: 13px;
}

.pvcc-category {
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	margin-bottom: 8px;
}

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

.pvcc-category-toggle-details {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	border: 0;
	background: transparent;
	font-size: 14px;
	font-weight: 600;
	color: var(--pvcc-text);
	cursor: pointer;
	text-align: left;
	padding: 0;
}

.pvcc-caret {
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid currentColor;
	transition: transform 0.15s ease;
}

.pvcc-category-toggle-details[aria-expanded="true"] .pvcc-caret {
	transform: rotate(180deg);
}

.pvcc-category-description {
	padding: 0 14px 12px 28px;
	font-size: 13px;
	color: #444;
}

.pvcc-category-description p {
	margin: 0;
}

.pvcc-always-active {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 600;
	color: #008000;
}

/* Toggle switch */

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

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

.pvcc-slider {
	position: absolute;
	inset: 0;
	background: #c4c4c4;
	border-radius: 22px;
	transition: background 0.15s ease;
	pointer-events: none;
}

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

.pvcc-switch input:checked + .pvcc-slider {
	background: var(--pvcc-accent);
}

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

.pvcc-switch input:focus-visible + .pvcc-slider {
	outline: 2px solid var(--pvcc-revisit);
	outline-offset: 2px;
}

.pvcc-pc-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	padding: 14px 22px;
	border-top: 1px solid #e0e0e0;
}

/* ---------- Revisit button ---------- */

.pvcc-revisit {
	position: fixed;
	bottom: 16px;
	left: 16px;
	z-index: 999998;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: var(--pvcc-revisit);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s ease;
}

.pvcc-revisit:hover {
	transform: scale(1.08);
}

/* ---------- Mobile ---------- */

@media (max-width: 576px) {
	.pvcc-banner {
		left: 8px;
		right: 8px;
		bottom: 8px;
		width: auto;
		max-width: none;
		padding: 16px;
	}

	.pvcc-banner-buttons {
		flex-direction: column;
	}

	.pvcc-pc-footer {
		justify-content: stretch;
	}

	.pvcc-pc-footer .pvcc-btn {
		flex: 1 1 100%;
	}
}
