/* Bannerul de consimțământ (inc/mkt-consent.php). Culorile și fonturile vin
   din variabilele temei, cu valori de rezervă. Fără umbre: chenar fin. */
.tzc {
	--tzc-accent: var(--color-accent, #02B783);
	--tzc-accent-dark: var(--color-accent-soft, #029A6E);
	--tzc-accent-light: var(--color-accent-light, #E6F8F1);
	--tzc-ink: var(--color-ink, #242424);
	--tzc-muted: var(--color-muted, #6b6b6b);
	--tzc-line: var(--color-border, #E8E8E6);
	--tzc-soft: var(--color-bg-soft, #F7F8F6);
	font-family: var(--font-body, system-ui, sans-serif);
	color: var(--tzc-ink);
}
.tzc[hidden],
.tzc [hidden] { display: none !important; }

/* Cardul */
.tzc-bar {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 100000;
	width: min(440px, calc(100vw - 32px));
	padding: 22px 22px 18px;
	border: 1px solid var(--tzc-line);
	border-radius: 18px;
	background: #fff;
	animation: tzc-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes tzc-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.tzc-bar__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tzc-bar__icon {
	flex: none; display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--tzc-accent-light); color: var(--tzc-accent-dark);
}
.tzc-bar__title { margin: 0; font-family: var(--font-heading, inherit); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.tzc-bar__text { margin: 0 0 16px; font-size: 0.875rem; line-height: 1.6; color: var(--tzc-muted); }
.tzc-bar__text a,
.tzc-modal a { color: var(--tzc-accent-dark); font-weight: 500; text-decoration: none; white-space: nowrap; }
.tzc-bar__text a:hover { color: var(--tzc-accent); }
.tzc-bar__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tzc-bar__actions .tzc-link { grid-column: 1 / -1; justify-self: center; }

/* Butoanele: refuzul are aceeași mărime ca acceptul */
.tzc-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 10px 16px;
	border-radius: 10px; border: 1px solid transparent;
	font: 600 0.875rem/1.2 var(--font-body, inherit);
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.tzc-btn--primary { background: var(--tzc-accent); color: #fff; }
.tzc-btn--primary:hover { background: var(--tzc-accent-dark); }
.tzc-btn--ghost { background: #fff; border-color: var(--tzc-line); color: var(--tzc-ink); }
.tzc-btn--ghost:hover { border-color: var(--tzc-ink); }
.tzc-link {
	padding: 4px 6px; border: 0; background: none; cursor: pointer;
	font: 500 0.8125rem/1.4 var(--font-body, inherit); color: var(--tzc-muted);
}
.tzc-link:hover { color: var(--tzc-accent-dark); }
.tzc-btn:focus-visible,
.tzc-link:focus-visible,
.tzc-modal__close:focus-visible,
.tzc-switch input:focus-visible + .tzc-switch__track { outline: 2px solid var(--tzc-accent); outline-offset: 2px; }

/* Preferințele */
.tzc-modal { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; padding: 16px; }
.tzc-modal__backdrop { position: absolute; inset: 0; background: rgba(17, 24, 20, 0.5); animation: tzc-fade 0.25s ease both; }
@keyframes tzc-fade { from { opacity: 0; } to { opacity: 1; } }
.tzc-modal__panel {
	position: relative;
	width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
	padding: 26px 28px 22px;
	border: 1px solid var(--tzc-line); border-radius: 20px; background: #fff;
	animation: tzc-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.tzc-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tzc-modal__title { margin: 0; font-family: var(--font-heading, inherit); font-size: 1.25rem; font-weight: 600; }
.tzc-modal__close {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border: 0; border-radius: 50%;
	background: none; color: var(--tzc-muted); cursor: pointer;
}
.tzc-modal__close:hover { color: var(--tzc-ink); }
.tzc-modal__intro { margin: 8px 0 18px; font-size: 0.875rem; line-height: 1.6; color: var(--tzc-muted); }

.tzc-cats { margin: 0 0 22px; padding: 0; list-style: none; border-top: 1px solid var(--tzc-line); }
.tzc-cat { padding: 16px 0; border-bottom: 1px solid var(--tzc-line); }
.tzc-cat__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tzc-cat__name { font-weight: 600; font-size: 0.9375rem; }
.tzc-cat__always { font-size: 0.75rem; font-weight: 600; color: var(--tzc-accent-dark); background: var(--tzc-accent-light); padding: 4px 10px; border-radius: 999px; }
.tzc-cat__desc { margin: 6px 0 0; font-size: 0.8125rem; line-height: 1.55; color: var(--tzc-muted); }

.tzc-switch { position: relative; display: inline-flex; flex: none; cursor: pointer; }
.tzc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tzc-switch__track { width: 44px; height: 24px; border-radius: 999px; background: #D6D8D4; transition: background-color 0.2s ease; position: relative; }
.tzc-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.2s ease; }
.tzc-switch input:checked + .tzc-switch__track { background: var(--tzc-accent); }
.tzc-switch input:checked + .tzc-switch__track::after { transform: translateX(20px); }

.tzc-modal__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

html.tzc-lock { overflow: hidden; }

@media (max-width: 600px) {
	.tzc-bar { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px 18px 14px; }
	.tzc-modal { align-items: flex-end; padding: 0; }
	.tzc-modal__panel { width: 100%; max-height: 88vh; border-radius: 20px 20px 0 0; padding: 22px 20px 18px; }
	.tzc-modal__actions { grid-template-columns: 1fr; }
	.tzc-modal__actions .tzc-btn--primary { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
	.tzc-bar, .tzc-modal__panel, .tzc-modal__backdrop { animation: none; }
}

/* Butonul mic de cookie (după decizie): redeschide preferințele.
   Poziția se poate muta din temă prin --tzc-fab-left / --tzc-fab-bottom. */
.tzc-fab {
	position: fixed;
	left: var(--tzc-fab-left, 18px);
	bottom: var(--tzc-fab-bottom, 18px);
	z-index: 9990;
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; padding: 0;
	border: 1px solid var(--color-border, #E8E8E6); border-radius: 50%;
	background: #fff; color: var(--color-accent-soft, #029A6E);
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.tzc-fab[hidden] { display: none; }
.tzc-fab:hover { color: var(--color-accent, #02B783); border-color: var(--color-accent, #02B783); transform: rotate(-12deg); }
.tzc-fab:focus-visible { outline: 2px solid var(--color-accent, #02B783); outline-offset: 2px; }
@media print { .tzc-fab { display: none !important; } }
