/* ==========================================================================
   Relora — preferinte cookie-uri. CSS izolat, prefix .rlcc-
   Culori preluate din identitatea existenta: #1e3a8a (luxury-blue),
   #d4af37 (luxury-gold). Nu modifica niciun stil al site-ului.
   ========================================================================== */

.rlcc-hidden { display: none !important; }

/* ------------------------------ bannerul ------------------------------ */
.rlcc-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100000;                 /* peste bara sticky (9998) si FAB (9999) */
  background: #ffffff;
  border-top: 3px solid #d4af37;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, .18);
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #1f2937;
  line-height: 1.55;
}
.rlcc-banner__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rlcc-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1e3a8a;
}
.rlcc-text {
  margin: 0;
  font-size: .9375rem;
  color: #374151;
}
.rlcc-text a { color: #1e3a8a; text-decoration: underline; }

/* butoane: aceeasi dimensiune si aceeasi greutate vizuala pentru
   acceptare si refuz — refuzul nu este ascuns si nu este secundar */
.rlcc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.rlcc-btn {
  /* Pe ecrane inguste fiecare buton ocupa un rand intreg, ca sa aiba toate
     exact aceeasi latime. Altfel ultimul s-ar intinde singur pe un rand nou
     si ar parea mai important decat refuzul. */
  flex: 1 1 100%;
  min-width: 0;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 2px solid #1e3a8a;
  background: #ffffff;
  color: #1e3a8a;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.rlcc-btn:hover { background: #eef2ff; }
.rlcc-btn--primary { background: #1e3a8a; color: #ffffff; }
.rlcc-btn--primary:hover { background: #16306e; }
.rlcc-btn:focus-visible,
.rlcc-link:focus-visible,
.rlcc-switch input:focus-visible + .rlcc-switch__ui {
  outline: 3px solid #d4af37;
  outline-offset: 2px;
}

@media (min-width: 720px) {
  .rlcc-banner__inner { flex-direction: row; align-items: center; }
  .rlcc-banner__copy { flex: 1 1 auto; }
  .rlcc-actions { flex: 0 0 auto; flex-wrap: nowrap; }
  .rlcc-btn { flex: 0 0 auto; min-width: 132px; }
}

/* ---------------------------- panoul de preferinte ---------------------------- */
.rlcc-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, .55);
}
.rlcc-modal__box {
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #1f2937;
}
.rlcc-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.rlcc-close {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border: 0; border-radius: 8px;
  background: #f3f4f6;
  color: #374151;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.rlcc-close:hover { background: #e5e7eb; }
.rlcc-close:focus-visible { outline: 3px solid #d4af37; outline-offset: 2px; }

.rlcc-cat {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 12px;
}
.rlcc-cat__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rlcc-cat__name { font-weight: 600; color: #111827; font-size: .9375rem; }
.rlcc-cat__desc { margin: 6px 0 0; font-size: .8125rem; color: #6b7280; }
.rlcc-cat__fixed { font-size: .8125rem; font-weight: 600; color: #6b7280; white-space: nowrap; }

/* comutator accesibil: input real, vizual personalizat */
.rlcc-switch { position: relative; flex: 0 0 auto; }
.rlcc-switch input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.rlcc-switch__ui {
  display: block;
  width: 52px; height: 30px;
  border-radius: 999px;
  background: #d1d5db;
  transition: background-color .15s ease;
  pointer-events: none;
}
.rlcc-switch__ui::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: transform .15s ease;
}
.rlcc-switch input:checked + .rlcc-switch__ui { background: #1e3a8a; }
.rlcc-switch input:checked + .rlcc-switch__ui::after { transform: translateX(22px); }

.rlcc-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.rlcc-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  font-size: .8125rem;
  color: #78350f;
}

/* ------------------------- link permanent in footer ------------------------- */
.rlcc-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .rlcc-btn, .rlcc-switch__ui, .rlcc-switch__ui::after { transition: none; }
}
