/* Consimtamant cookies - bara neblocanta + panou de setari, paleta de brand.
   z-index: peste portal (sidebar 100, confirm 80, copilot 50), bara 1000,
   panoul 1001 (backdrop 1000). */
.fc-bar, .fc-panel, .fc-backdrop {
  --fc-dark: #141008;
  --fc-gold: #C5973A;
  --fc-gold-hover: #D4A94E;
  --fc-cream: #FAF6EE;
  --fc-muted: #BDB6A3;   /* text secundar pe fundal inchis, AA */
  --fc-line: #2A2418;
  --fc-ink: #141008;
  --fc-ink-muted: #5C5746; /* text secundar pe crem, AA */
  --fc-border: #D8D4C4;
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
}
.fc-bar *, .fc-panel * { box-sizing: border-box; }
.fc-bar[hidden], .fc-panel[hidden], .fc-backdrop[hidden] { display: none !important; }

/* ── Bara (primul nivel) ── */
.fc-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--fc-dark);
  color: var(--fc-cream);
  border-top: 1px solid var(--fc-gold);
  box-shadow: 0 -12px 32px rgba(11, 9, 4, 0.28);
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px));
}
.fc-bar-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px 28px;
}
.fc-bar-text {
  flex: 1 1 auto;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--fc-cream);
}
.fc-bar .fc-link { color: var(--fc-gold); text-decoration: underline; text-underline-offset: 2px; }
.fc-bar .fc-link:hover { color: var(--fc-gold-hover); }

.fc-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

/* Toate butoanele identice: aceeasi marime, greutate si stil (fara dark patterns). */
.fc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--fc-gold);
  background: var(--fc-gold);
  color: var(--fc-dark);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.fc-btn:hover { background: var(--fc-gold-hover); border-color: var(--fc-gold-hover); }

.fc-bar .fc-btn:focus-visible,
.fc-bar .fc-link:focus-visible {
  outline: 2px solid var(--fc-cream);
  outline-offset: 2px;
}

/* ── Panoul de setari ── */
.fc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11, 9, 4, 0.55);
}
.fc-panel {
  position: fixed;
  z-index: 1001;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  max-width: 520px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: var(--fc-cream);
  color: var(--fc-ink);
  border: 1px solid var(--fc-border);
  border-radius: 14px;
  padding: 24px 24px 20px;
  box-shadow: 0 24px 60px rgba(11, 9, 4, 0.35);
}
.fc-panel:focus { outline: none; }
.fc-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.fc-panel-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  color: var(--fc-ink);
}
.fc-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--fc-ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.fc-close:hover { border-color: var(--fc-border); }
.fc-panel-intro {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--fc-ink-muted);
}
.fc-panel .fc-link { color: #7A5B1E; text-decoration: underline; text-underline-offset: 2px; }
.fc-panel .fc-link:hover { color: var(--fc-ink); }

.fc-cats { border-top: 1px solid var(--fc-border); margin-bottom: 18px; }
.fc-cat { padding: 14px 0; border-bottom: 1px solid var(--fc-border); }
.fc-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.fc-cat-title {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--fc-ink);
  cursor: pointer;
}
.fc-cat-desc {
  margin: 4px 0 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--fc-ink-muted);
  padding-right: 60px;
}
.fc-cat-note {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--fc-ink);
  background: rgba(197, 151, 58, 0.14);
  border-left: 3px solid var(--fc-gold);
  padding: 6px 10px;
  border-radius: 4px;
}

/* Comutator: input checkbox real (role=switch), desenat cu CSS. */
.fc-switch {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  position: relative;
  width: 44px;
  height: 24px;
  margin: 0;
  border-radius: 999px;
  background: #A8A290;
  border: 1px solid #8B8574;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.fc-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(11, 9, 4, 0.3);
  transition: transform 0.15s;
}
.fc-switch:checked { background: var(--fc-dark); border-color: var(--fc-dark); }
.fc-switch:checked::after { transform: translateX(20px); background: var(--fc-gold); }
.fc-switch:disabled { cursor: not-allowed; opacity: 0.55; }
.fc-switch:disabled + * { cursor: not-allowed; }

.fc-panel .fc-actions { flex-wrap: wrap; }
.fc-panel .fc-btn { flex: 1 1 0; min-width: 0; }

.fc-panel .fc-btn:focus-visible,
.fc-panel .fc-close:focus-visible,
.fc-panel .fc-link:focus-visible,
.fc-switch:focus-visible {
  outline: 2px solid var(--fc-dark);
  outline-offset: 2px;
}

html.fc-open { overflow: hidden; }

/* Regiune aria-live pentru confirmarea "Cookie choices saved." */
.fc-live {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Linkuri legale (sidebar portal + login) ── */
.linklike {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 11px;
  line-height: 1.5;
}
.legal-links .sep { opacity: 0.7; }
.legal-links a, .legal-links .linklike { color: inherit; text-decoration: none; }
.legal-links a:hover, .legal-links .linklike:hover { text-decoration: underline; }
.legal-links a:focus-visible, .legal-links .linklike:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 2px;
}

/* In sidebar .foot (248px): randul trece pe o linie separata sub email/sign out. */
.foot { flex-wrap: wrap; row-gap: 6px; }
.foot .legal-links { flex-basis: 100%; }
.foot .legal-links a:hover, .foot .legal-links .linklike:hover { color: #C9A84C; }

/* Login: linie mica sub formular. */
.form-panel .legal-links {
  justify-content: center;
  margin-top: 28px;
  font-size: 0.8rem;
  color: #5C5746;
}

/* ── Mobil ── */
@media (max-width: 760px) {
  .fc-bar-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .fc-bar .fc-actions .fc-btn { flex: 1 1 0; min-width: 0; }
}
@media (max-width: 480px) {
  .fc-bar { padding-left: 16px; padding-right: 16px; }
  .fc-actions { flex-direction: column; }
  .fc-bar .fc-actions .fc-btn,
  .fc-panel .fc-btn { width: 100%; flex: 0 0 auto; }
  .fc-panel { padding: 20px 16px 16px; }
  .fc-cat-desc { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .fc-btn, .fc-switch, .fc-switch::after { transition: none; }
}

@media print {
  .fc-bar, .fc-panel, .fc-backdrop { display: none !important; }
}
