/* Banner cookie-uri - lcdcookieconsent
   Culorile urmeaza tema lcdynamics.ro (rosu + alb). */

:root {
  --lcdcc-accent: #e3242b;
  --lcdcc-accent-dark: #c31c23;
  --lcdcc-accent-soft: rgba(227, 36, 43, .3);
  --lcdcc-ink: #23262b;
  --lcdcc-muted: #5d636d;
  --lcdcc-line: #e4e7ec;
  --lcdcc-bg: #ffffff;
  --lcdcc-radius: 6px;
}

#lcdcc-banner[hidden],
#lcdcc-modal[hidden],
#lcdcc-float[hidden] {
  display: none !important;
}

/* ---------------------------------------------------------------- Banner */

.lcdcc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99998;
  background: var(--lcdcc-bg);
  border-top: 3px solid var(--lcdcc-accent);
  box-shadow: 0 -6px 24px rgba(15, 20, 30, .14);
  color: var(--lcdcc-ink);
  font-size: 14px;
  line-height: 1.55;
  animation: lcdcc-up .28s ease-out both;
}

@keyframes lcdcc-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.lcdcc-banner__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.lcdcc-banner__content { flex: 1 1 auto; min-width: 0; }

.lcdcc-banner__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--lcdcc-ink);
}

.lcdcc-banner__text {
  margin: 0;
  color: var(--lcdcc-muted);
}

.lcdcc-link {
  color: var(--lcdcc-accent);
  text-decoration: underline;
  white-space: nowrap;
}

.lcdcc-link:hover { color: var(--lcdcc-accent-dark); }

.lcdcc-banner__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------- Butoane */

.lcdcc-btn {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: var(--lcdcc-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.lcdcc-btn:focus-visible {
  outline: 2px solid var(--lcdcc-accent);
  outline-offset: 2px;
}

.lcdcc-btn--primary {
  background: var(--lcdcc-accent);
  color: #fff;
}

.lcdcc-btn--primary:hover { background: var(--lcdcc-accent-dark); }

.lcdcc-btn--ghost {
  background: #fff;
  color: var(--lcdcc-ink);
  border-color: var(--lcdcc-line);
}

.lcdcc-btn--ghost:hover { border-color: #b9bfc9; }

.lcdcc-btn--text {
  background: none;
  color: var(--lcdcc-muted);
  padding: 11px 6px;
  text-decoration: underline;
}

.lcdcc-btn--text:hover { color: var(--lcdcc-ink); }

/* ----------------------------------------------------------------- Modal */

.lcdcc-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(20, 24, 31, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.lcdcc-modal__panel {
  background: #fff;
  color: var(--lcdcc-ink);
  width: 100%;
  max-width: 560px;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(10, 15, 25, .3);
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
}

.lcdcc-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--lcdcc-line);
}

.lcdcc-modal__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.lcdcc-modal__close {
  background: none;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--lcdcc-muted);
  cursor: pointer;
  padding: 0 4px;
}

.lcdcc-modal__close:hover { color: var(--lcdcc-ink); }

.lcdcc-modal__body { padding: 4px 20px; }

.lcdcc-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--lcdcc-line);
}

.lcdcc-row:last-child { border-bottom: 0; }

.lcdcc-row__text { flex: 1 1 auto; min-width: 0; }

.lcdcc-row__title {
  display: block;
  margin: 0 0 3px;
  font-weight: 700;
  cursor: pointer;
}

.lcdcc-row__desc {
  margin: 0;
  color: var(--lcdcc-muted);
  font-size: 13px;
}

.lcdcc-always {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--lcdcc-muted);
  background: #f2f4f7;
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

/* Switch */

.lcdcc-switch {
  flex: 0 0 auto;
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  margin: 2px 0 0;
}

.lcdcc-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.lcdcc-switch__slider {
  position: absolute;
  inset: 0;
  background: #c8cdd5;
  border-radius: 999px;
  transition: background-color .18s ease;
  pointer-events: none;
}

.lcdcc-switch__slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .18s ease;
}

.lcdcc-switch input:checked + .lcdcc-switch__slider { background: var(--lcdcc-accent); }
.lcdcc-switch input:checked + .lcdcc-switch__slider::before { transform: translateX(20px); }
.lcdcc-switch input:focus-visible + .lcdcc-switch__slider { box-shadow: 0 0 0 3px var(--lcdcc-accent-soft); }

.lcdcc-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--lcdcc-line);
  background: #fafbfc;
  flex-wrap: wrap;
}

/* --------------------------------------------------------- Buton plutitor */

.lcdcc-float {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 99997;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--lcdcc-line);
  background: #fff;
  color: var(--lcdcc-muted);
  box-shadow: 0 3px 12px rgba(15, 20, 30, .18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.lcdcc-float:hover { color: var(--lcdcc-accent); border-color: var(--lcdcc-accent); }

/* ------------------------------------------------------------------ Mobil */

@media (max-width: 991px) {
  .lcdcc-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }
  .lcdcc-banner__actions { justify-content: stretch; }
  .lcdcc-banner__actions .lcdcc-btn--ghost,
  .lcdcc-banner__actions .lcdcc-btn--primary { flex: 1 1 140px; }
  .lcdcc-banner__actions .lcdcc-btn--text { flex: 1 1 100%; text-align: center; }
  .lcdcc-banner__text { font-size: 13px; }
  .lcdcc-float { bottom: 12px; left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .lcdcc-banner { animation: none; }
  .lcdcc-btn,
  .lcdcc-switch__slider,
  .lcdcc-switch__slider::before { transition: none; }
}
