/* Banner consimțământ cookie — folosește aceleași valori ca formularele site-ului
   (#0E0E0E, linii #333, Lora, accent #FF833B). Autonom: merge și pe paginile
   care nu încarcă style.css. */
.ohm-cc {
  --cc-bg: #0E0E0E;
  --cc-line: #333333;
  --cc-text: #D8DBDC;
  --cc-muted: #9A9BA0;
  --cc-accent: #FF833B;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9990;
  background: var(--cc-bg);
  border-top: 1px solid var(--cc-line);
  color: var(--cc-text);
  font-family: var(--body-font, "Lora", Georgia, serif);
  font-size: 15px;
  line-height: 1.6;
  opacity: 0;
  transition: opacity 200ms ease;
}
.ohm-cc.is-open { opacity: 1; }
.ohm-cc[hidden] { display: none; }

.ohm-cc__inner {
  max-width: 1250px;
  margin: 0 auto;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 40px;
  align-items: center;
}
.ohm-cc__text { margin: 0; }
.ohm-cc__text strong { color: #FFFFFF; font-weight: 600; }
.ohm-cc a { color: var(--cc-accent); text-decoration: underline; text-underline-offset: 3px; }

.ohm-cc__prefs { grid-column: 1 / -1; border-top: 1px solid var(--cc-line); }
.ohm-cc__prefs[hidden] { display: none; }
.ohm-cc__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cc-line);
  margin: 0;
  cursor: pointer;
}
.ohm-cc__row:first-child { cursor: default; }
.ohm-cc__name { display: block; color: #FFFFFF; }
.ohm-cc__desc { display: block; color: var(--cc-muted); font-size: 13px; }
.ohm-cc__always { color: var(--cc-muted); font-size: 13px; white-space: nowrap; }
/* Tema ascunde toate checkbox-urile native (input[type="checkbox"] { visibility: hidden; width: 0 }).
   Aici le vrem vizibile. */
.ohm-cc .ohm-cc__switch {
  visibility: visible;
  opacity: 1;
  display: inline-block;
  position: static;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--cc-accent);
  flex: none;
  cursor: pointer;
}

.ohm-cc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ohm-cc__prefs:not([hidden]) ~ .ohm-cc__actions { grid-column: 1 / -1; justify-content: flex-end; }

.ohm-cc__btn {
  font: inherit;
  min-width: 150px;
  padding: 12px 22px;
  background: transparent;
  color: #FFFFFF;
  border: 1px solid var(--cc-text);
  border-radius: 0;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.ohm-cc__btn:hover { background: var(--cc-accent); border-color: var(--cc-accent); color: var(--cc-bg); }
.ohm-cc__btn[hidden], .ohm-cc__link[hidden] { display: none; }
.ohm-cc__link {
  font: inherit;
  background: none;
  border: 0;
  padding: 12px 4px;
  color: var(--cc-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ohm-cc button:focus-visible,
.ohm-cc a:focus-visible,
.ohm-cc__switch:focus-visible { outline: 2px solid var(--cc-accent); outline-offset: 2px; }

@media (max-width: 767px) {
  .ohm-cc__inner { grid-template-columns: 1fr; padding: 16px; gap: 12px; }
  .ohm-cc__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .ohm-cc__btn { min-width: 0; padding: 12px 10px; }
  .ohm-cc__btn--save, .ohm-cc__link { grid-column: 1 / -1; }
}

/* Linie legală minimă pe paginile fără footer (ofertă, mulțumim). */
.ohm-legal-strip {
  margin: 0;
  padding: 18px 16px;
  text-align: center;
  font-size: 13px;
  color: #9A9BA0;
}
.ohm-legal-strip a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .ohm-cc, .ohm-cc__btn { transition: none; }
}
