/* ═══ Cookie Consent Banner ═══ */
.cc-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 99999;
	background: #2c3e2d;
	color: #f0f0f0;
	box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
}

.cc-banner-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 18px 24px;
	display: flex;
	align-items: center;
	gap: 20px;
	position: relative;
}

.cc-banner-text {
	flex: 1;
}

.cc-banner-text p {
	margin: 0;
	color: #e8e8e8;
}

.cc-banner-text a {
	color: #8fbc8f;
	text-decoration: underline;
}

.cc-banner-actions {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.cc-banner-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	color: #aaa;
	font-size: 20px;
	cursor: pointer;
	padding: 0 4px;
	line-height: 1;
}

.cc-banner-close:hover {
	color: #fff;
}

/* ═══ Buttons ═══ */
.cc-btn {
	padding: 10px 20px;
	border: 2px solid transparent;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cc-btn-accept {
	background: #4a8c5c;
	color: #fff;
	border-color: #4a8c5c;
}

.cc-btn-accept:hover {
	background: #3a7a4a;
	border-color: #3a7a4a;
}

.cc-btn-reject {
	background: transparent;
	color: #fff;
	border-color: #fff;
}

.cc-btn-reject:hover {
	background: rgba(255,255,255,0.1);
}

.cc-btn-customize {
	background: transparent;
	color: #8fbc8f;
	border-color: #8fbc8f;
}

.cc-btn-customize:hover {
	background: rgba(143,188,143,0.1);
}

/* ═══ Preferences Panel (modal overlay) ═══ */
.cc-preferences {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100000;
	font-family: inherit;
	font-size: 14px;
}

.cc-pref-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.5);
}

.cc-pref-panel {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	border-radius: 8px;
	width: 90%;
	max-width: 640px;
	max-height: 85vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 8px 32px rgba(0,0,0,0.3);
	color: #333;
}

.cc-pref-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #e0e0e0;
}

.cc-pref-header h3 {
	margin: 0;
	font-size: 18px;
	color: #2c3e2d;
}

.cc-pref-close {
	background: none;
	border: none;
	font-size: 24px;
	color: #999;
	cursor: pointer;
	padding: 0 4px;
	line-height: 1;
}

.cc-pref-close:hover {
	color: #333;
}

.cc-pref-body {
	padding: 16px 20px;
	overflow-y: auto;
	flex: 1;
}

.cc-pref-body > p {
	margin: 0 0 16px 0;
	color: #666;
	font-size: 13px;
}

/* ═══ Category blocks ═══ */
.cc-pref-category {
	border: 1px solid #e8e8e8;
	border-radius: 6px;
	margin-bottom: 12px;
	padding: 12px 16px;
}

.cc-pref-cat-header {
	display: flex;
	align-items: center;
	gap: 12px;
}

.cc-cat-name {
	font-weight: 600;
	font-size: 15px;
	flex: 1;
}

.cc-cat-badge {
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 10px;
}

.cc-badge-required {
	background: #e8f5e9;
	color: #2e7d32;
}

.cc-cat-expand {
	background: none;
	border: none;
	color: #999;
	cursor: pointer;
	font-size: 12px;
	padding: 4px;
}

.cc-cat-expand:hover {
	color: #333;
}

.cc-cat-desc {
	margin: 8px 0 0 0;
	font-size: 13px;
	color: #777;
}

/* ═══ Toggle switch ═══ */
.cc-toggle {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 22px;
	flex-shrink: 0;
}

.cc-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.cc-toggle-slider {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: #ccc;
	border-radius: 22px;
	cursor: pointer;
	transition: background 0.2s;
}

.cc-toggle-slider::before {
	content: '';
	position: absolute;
	width: 18px;
	height: 18px;
	left: 2px;
	bottom: 2px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s;
}

.cc-toggle input:checked + .cc-toggle-slider {
	background: #4a8c5c;
}

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

.cc-toggle input:disabled + .cc-toggle-slider {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ═══ Cookie detail table ═══ */
.cc-cat-cookies {
	margin-top: 10px;
}

.cc-cookie-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
}

.cc-cookie-table th {
	background: #f5f5f5;
	padding: 6px 8px;
	text-align: left;
	border: 1px solid #e0e0e0;
	font-weight: 600;
}

.cc-cookie-table td {
	padding: 5px 8px;
	border: 1px solid #e8e8e8;
	vertical-align: top;
}

.cc-cookie-table code {
	font-size: 11px;
	background: #f0f0f0;
	padding: 1px 4px;
	border-radius: 3px;
}

/* ═══ Preferences footer ═══ */
.cc-pref-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px;
	border-top: 1px solid #e0e0e0;
	gap: 12px;
}

.cc-pref-policy-link {
	color: #4a8c5c;
	font-size: 13px;
}

.cc-pref-buttons {
	display: flex;
	gap: 8px;
}

.cc-pref-footer .cc-btn-reject {
	color: #666;
	border-color: #ccc;
}

.cc-pref-footer .cc-btn-reject:hover {
	color: #333;
	border-color: #999;
	background: #f5f5f5;
}

.cc-pref-footer .cc-btn-accept {
	background: #4a8c5c;
	color: #fff;
}

/* ═══ Footer link ═══ */
.cookie-preferences-footer a {
	color: #888 !important;
	font-size: 12px;
	text-decoration: none;
}

.cookie-preferences-footer a:hover {
	color: #4a8c5c !important;
	text-decoration: underline;
}

/* ═══ Responsive ═══ */
@media (max-width: 768px) {
	.cc-banner-inner {
		flex-direction: column;
		padding: 16px 16px 16px 16px;
		gap: 12px;
	}

	.cc-banner-actions {
		flex-direction: column;
		width: 100%;
		gap: 8px;
	}

	.cc-btn {
		width: 100%;
		text-align: center;
		padding: 12px 16px;
	}

	.cc-banner-close {
		top: 6px;
		right: 8px;
	}

	.cc-pref-panel {
		width: 95%;
		max-height: 90vh;
	}

	.cc-pref-footer {
		flex-direction: column;
	}

	.cc-pref-buttons {
		width: 100%;
		flex-direction: column;
	}

	.cc-pref-buttons .cc-btn {
		width: 100%;
		text-align: center;
	}

	.cc-cookie-table {
		font-size: 11px;
	}
}
