/* Simple Cookie Consent — front-end styles */

.scc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999998;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease;
}
.scc-overlay.scc-overlay-visible {
	opacity: 1;
	pointer-events: auto;
}

.scc-banner {
	position: fixed;
	left: 0;
	right: 0;
	background: var(--scc-bg, #1f2937);
	color: var(--scc-text, #f9fafb);
	z-index: 999999;
	box-shadow: 0 -2px 20px rgba(0,0,0,.2);
	transform: translateY(100%);
	transition: transform .35s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
}
.scc-banner.scc-pos-top { top: 0; transform: translateY(-100%); box-shadow: 0 2px 20px rgba(0,0,0,.2); }
.scc-banner.scc-pos-bottom { bottom: 0; }
.scc-banner.scc-visible { transform: translateY(0); }

.scc-banner.scc-layout-box {
	left: auto;
	right: 20px;
	bottom: 20px;
	max-width: 380px;
	border-radius: 12px;
	transform: translateY(20px);
	opacity: 0;
	transition: opacity .3s ease, transform .3s ease;
}
.scc-banner.scc-layout-box.scc-visible { opacity: 1; transform: translateY(0); }
.scc-banner.scc-layout-box.scc-pos-top { top: 20px; bottom: auto; }

.scc-banner-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px 24px;
	max-width: 1200px;
	margin: 0 auto;
	flex-wrap: wrap;
}
.scc-layout-box .scc-banner-inner {
	flex-direction: column;
	align-items: flex-start;
}

.scc-logo img { display: block; height: auto; }

.scc-content { flex: 1; min-width: 220px; }
.scc-heading { font-weight: 600; margin: 0 0 4px; font-size: 15px; }
.scc-text { margin: 0; opacity: .95; }
.scc-privacy-link { color: var(--scc-link, #93c5fd); margin-left: 6px; text-decoration: underline; }

.scc-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	flex-shrink: 0;
}
.scc-layout-box .scc-actions { width: 100%; }

.scc-btn {
	border: 1px solid transparent;
	border-radius: 6px;
	padding: 10px 18px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity .15s ease, transform .1s ease;
}
.scc-btn:hover { opacity: .85; }
.scc-btn:active { transform: scale(.97); }

.scc-btn-accept { background: var(--scc-accept-bg, #22c55e); color: var(--scc-accept-text, #fff); }
.scc-btn-decline { background: var(--scc-decline-bg, transparent); color: var(--scc-decline-text, #f9fafb); border-color: currentColor; }
.scc-btn-customize { background: var(--scc-customize-bg, transparent); color: var(--scc-customize-text, #f9fafb); text-decoration: underline; border: none; padding: 10px 6px; }

/* Preferences modal */
.scc-modal {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.scc-modal.scc-modal-visible { display: flex; }

.scc-modal-box {
	background: var(--scc-modal-bg, #fff);
	color: var(--scc-modal-text, #111827);
	max-width: 480px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	border-radius: 12px;
	padding: 30px;
	position: relative;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.scc-modal-box h2 { margin: 0 0 16px; font-size: 20px; }

.scc-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
	opacity: .6;
}
.scc-modal-close:hover { opacity: 1; }

.scc-category { padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.scc-category:last-of-type { border-bottom: none; }
.scc-category-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; }
.scc-category-desc { margin: 6px 0 0; font-size: 13px; opacity: .8; line-height: 1.5; }

.scc-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.scc-switch input { opacity: 0; width: 0; height: 0; }
.scc-slider {
	position: absolute; cursor: pointer; inset: 0;
	background-color: #ccc; border-radius: 24px; transition: .2s;
}
.scc-slider:before {
	content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px;
	background-color: #fff; border-radius: 50%; transition: .2s;
}
.scc-switch input:checked + .scc-slider { background-color: var(--scc-toggle-active, #22c55e); }
.scc-switch input:checked + .scc-slider:before { transform: translateX(18px); }
.scc-switch-disabled { opacity: .6; cursor: not-allowed; }

.scc-modal-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.scc-modal-actions .scc-btn { flex: 1; text-align: center; }

.scc-reopen-btn {
	background: none;
	border: 1px solid currentColor;
	border-radius: 6px;
	padding: 8px 14px;
	cursor: pointer;
	font-size: 13px;
}

@media (max-width: 600px) {
	.scc-banner-inner { flex-direction: column; align-items: flex-start; }
	.scc-actions { width: 100%; }
	.scc-btn { flex: 1; text-align: center; }
}
