/* CE Cookie Consent — stiluri banner v1.1 */
:root {
	--ce-cc-primary: #1e6f5c;
	--ce-cc-text: #1f2937;
	--ce-cc-bg: #ffffff;
}

/* ---------- animații ---------- */
@keyframes ce-cc-up {
	from { opacity: 0; transform: translateY(28px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes ce-cc-pop {
	from { opacity: 0; transform: translate(-50%, -46%) scale(.97); }
	to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes ce-cc-fade {
	from { opacity: 0; } to { opacity: 1; }
}

/* ---------- banner ---------- */
.ce-cc-banner {
	position: fixed;
	z-index: 999999;
	background: var(--ce-cc-bg);
	color: var(--ce-cc-text);
	font-size: 15px;
	line-height: 1.55;
	max-height: 92vh;
	overflow-y: auto;
	border-top: 4px solid var(--ce-cc-primary);
	box-shadow: 0 -8px 40px rgba(0, 0, 0, .16);
}
.ce-cc-banner:not([hidden]) { animation: ce-cc-up .45s cubic-bezier(.16, 1, .3, 1); }

.ce-cc-pos-bottom { left: 0; right: 0; bottom: 0; border-radius: 18px 18px 0 0; }
.ce-cc-pos-bottom-left,
.ce-cc-pos-bottom-right {
	bottom: 20px; max-width: 440px; width: calc(100% - 40px);
	border-radius: 16px; border-top-width: 4px;
	box-shadow: 0 12px 50px rgba(0, 0, 0, .25);
}
.ce-cc-pos-bottom-left { left: 20px; }
.ce-cc-pos-bottom-right { right: 20px; }
.ce-cc-pos-center {
	left: 50%; top: 50%; transform: translate(-50%, -50%);
	max-width: 560px; width: calc(100% - 32px);
	border-radius: 16px;
	box-shadow: 0 20px 80px rgba(0, 0, 0, .35);
}
.ce-cc-pos-center:not([hidden]) { animation: ce-cc-pop .4s cubic-bezier(.16, 1, .3, 1); }

.ce-cc-inner { padding: 24px 28px; max-width: 1080px; margin: 0 auto; }

.ce-cc-title {
	display: flex; align-items: center; gap: 8px;
	font-size: 18px; margin-bottom: 6px;
}
.ce-cc-title::before { content: "🍪"; font-size: 20px; }

.ce-cc-text p { margin: 0 0 16px; opacity: .9; }
.ce-cc-text a { color: var(--ce-cc-primary); font-weight: 600; text-decoration: underline; }

/* ---------- categorii (panoul de preferințe) ---------- */
.ce-cc-prefs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 12px; margin: 0 0 18px;
}
.ce-cc-prefs:not([hidden]) { animation: ce-cc-fade .3s ease; }

.ce-cc-cat {
	border: 1px solid rgba(0, 0, 0, .08);
	background: rgba(0, 0, 0, .025);
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 13px;
	transition: border-color .2s, box-shadow .2s;
}
.ce-cc-cat:hover { border-color: var(--ce-cc-primary); box-shadow: 0 2px 12px rgba(0, 0, 0, .07); }
.ce-cc-cat-top { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.ce-cc-cat-top strong { font-size: 13.5px; flex: 1 1 auto; }
.ce-cc-cat small { opacity: .7; display: block; }

.ce-cc-ico { flex: none; width: 20px; height: 20px; color: var(--ce-cc-primary); }
.ce-cc-ico svg { width: 100%; height: 100%; display: block; }

/* ---------- toggle switch ---------- */
.ce-cc-switch { position: relative; display: inline-block; flex: none; width: 42px; height: 24px; margin: 0; }
.ce-cc-switch input {
	position: absolute; opacity: 0; width: 100%; height: 100%;
	margin: 0; cursor: pointer; z-index: 1;
}
.ce-cc-slider {
	position: absolute; inset: 0;
	background: #c3cbd6; border-radius: 999px;
	transition: background .2s ease;
}
.ce-cc-slider::before {
	content: ""; position: absolute;
	width: 18px; height: 18px; left: 3px; top: 3px;
	background: #fff; border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
	transition: transform .2s ease;
}
.ce-cc-switch input:checked + .ce-cc-slider { background: var(--ce-cc-primary); }
.ce-cc-switch input:checked + .ce-cc-slider::before { transform: translateX(18px); }
.ce-cc-switch input:disabled { cursor: not-allowed; }
.ce-cc-switch input:disabled + .ce-cc-slider { opacity: .55; }
.ce-cc-switch input:focus-visible + .ce-cc-slider { outline: 2px solid var(--ce-cc-primary); outline-offset: 2px; }

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

.ce-cc-btn {
	font-size: 14px; font-weight: 600; font-family: inherit;
	padding: 11px 22px; border-radius: 10px; cursor: pointer;
	border: 1.5px solid transparent;
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background .15s ease;
}
.ce-cc-btn:hover { transform: translateY(-1px); }
.ce-cc-btn:active { transform: translateY(0); }

.ce-cc-btn-primary {
	background: var(--ce-cc-primary); color: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.ce-cc-btn-primary:hover { filter: brightness(1.08); box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }

.ce-cc-btn-outline {
	background: transparent; color: var(--ce-cc-text);
	border-color: rgba(0, 0, 0, .22);
}
.ce-cc-btn-outline:hover { border-color: var(--ce-cc-primary); color: var(--ce-cc-primary); }

.ce-cc-btn-ghost {
	background: transparent; color: var(--ce-cc-primary);
	padding-left: 10px; padding-right: 10px;
	text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- badge plutitor ---------- */
.ce-cc-badge {
	position: fixed; left: 18px; bottom: 18px; z-index: 999998;
	width: 48px; height: 48px; border-radius: 50%;
	background: var(--ce-cc-bg); border: 2px solid var(--ce-cc-primary);
	box-shadow: 0 4px 16px rgba(0, 0, 0, .22);
	cursor: pointer; font-size: 22px; line-height: 1;
	transition: transform .2s ease, box-shadow .2s ease;
}
.ce-cc-badge:hover { transform: scale(1.1); box-shadow: 0 6px 22px rgba(0, 0, 0, .28); }

/* ---------- iframe-uri blocate ---------- */
.ce-cc-iframe-wrap { position: relative; display: block; min-height: 180px; }
.ce-cc-iframe-wrap iframe { opacity: .08; }
.ce-cc-iframe-overlay {
	position: absolute; inset: 0;
	display: flex; flex-direction: column;
	align-items: center; justify-content: center; gap: 12px;
	text-align: center; padding: 20px;
	background: linear-gradient(160deg, rgba(248, 249, 250, .97), rgba(238, 240, 243, .97));
	color: #374151; font-size: 14px;
	border: 1px solid rgba(0, 0, 0, .1); border-radius: 12px;
}
.ce-cc-iframe-overlay::before { content: "🔒"; font-size: 26px; }
.ce-cc-iframe-overlay p { margin: 0; max-width: 420px; }

/* Mod „hide": iframe complet ascuns până la consimțământ */
iframe[data-ce-cc-src][data-ce-cc-hide] { display: none !important; }

/* Mod „thumbnail": fațadă cu miniatura video-ului + buton de play (two-click) */
.ce-cc-thumb {
	background-color: #0f0f0f;
	background-size: cover;
	background-position: center;
	border: none; padding: 0; gap: 0;
	cursor: pointer;
}
.ce-cc-thumb::before {
	content: ""; position: absolute; inset: 0;
	background: rgba(0, 0, 0, .25);
	border-radius: inherit;
	transition: background .2s ease;
}
.ce-cc-thumb:hover::before, .ce-cc-thumb:focus-visible::before { background: rgba(0, 0, 0, .45); }
.ce-cc-thumb:focus-visible { outline: 3px solid var(--ce-cc-primary); outline-offset: 2px; }

.ce-cc-play {
	position: relative; z-index: 1;
	display: flex; align-items: center; justify-content: center;
	width: 68px; height: 48px; border-radius: 12px;
	background: rgba(0, 0, 0, .75);
	box-shadow: 0 4px 18px rgba(0, 0, 0, .4);
	transition: background .2s ease, transform .2s ease;
}
.ce-cc-thumb:hover .ce-cc-play, .ce-cc-thumb:focus-visible .ce-cc-play {
	background: var(--ce-cc-primary);
	transform: scale(1.1);
}
.ce-cc-play svg { width: 24px; height: 24px; display: block; margin-left: 2px; }

/* ---------- tabelul declarație cookie-uri ---------- */
.ce-cc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ce-cc-table th, .ce-cc-table td { border: 1px solid rgba(0, 0, 0, .12); padding: 9px 12px; text-align: left; vertical-align: top; }
.ce-cc-table th { background: rgba(0, 0, 0, .05); }
.ce-cc-table code { font-size: 12px; word-break: break-word; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
	.ce-cc-inner { padding: 18px 18px 16px; }
	.ce-cc-actions { justify-content: stretch; }
	.ce-cc-actions .ce-cc-btn { flex: 1 1 45%; padding: 12px 10px; }
	.ce-cc-pos-bottom-left, .ce-cc-pos-bottom-right { left: 10px; right: 10px; bottom: 10px; width: auto; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ce-cc-banner:not([hidden]), .ce-cc-pos-center:not([hidden]), .ce-cc-prefs:not([hidden]) { animation: none; }
	.ce-cc-btn, .ce-cc-badge, .ce-cc-slider, .ce-cc-slider::before { transition: none; }
}
