/* Malinco Cookie Consent v1.0.0 */

/* ── Banner wrapper ──────────────────────────────────────────────────────────*/
#mlconsent-wrap {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  transition: opacity .2s;
}
#mlconsent-wrap.mlc-hidden { display: none; }

#mlconsent-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* ── Banner card ─────────────────────────────────────────────────────────────*/
#mlconsent-banner {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  animation: mlc-slide-up .25s ease;
}

@keyframes mlc-slide-up {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Header ──────────────────────────────────────────────────────────────────*/
.mlc-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.mlc-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: #c8102e;
  margin-top: 2px;
}
.mlc-header strong {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  display: block;
  margin-bottom: 4px;
}
.mlc-header p {
  font-size: 13px;
  color: #4b5563;
  margin: 0;
  line-height: 1.5;
}
.mlc-lnk { color: #c8102e; text-decoration: none; }
.mlc-lnk:hover { text-decoration: underline; }

/* ── Categorii ───────────────────────────────────────────────────────────────*/
.mlc-cats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 10px;
}
.mlc-cat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-content: space-between;
}
.mlc-cat-info { flex: 1; min-width: 0; }
.mlc-cat-info strong {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  display: block;
  margin-bottom: 2px;
}
.mlc-cat-info span {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
  display: block;
}

/* ── Toggle ──────────────────────────────────────────────────────────────────*/
.mlc-toggle {
  flex-shrink: 0;
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  transition: background .2s;
  padding: 0;
  margin-top: 2px;
}
.mlc-toggle--on  { background: #c8102e; }
.mlc-toggle--locked {
  background: #c8102e;
  cursor: not-allowed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  width: 44px;
  height: 26px;
  border-radius: 13px;
}
.mlc-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.mlc-toggle--on .mlc-toggle-knob { transform: translateX(18px); }

/* ── Acțiuni ─────────────────────────────────────────────────────────────────*/
.mlc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.mlc-btn {
  flex: 1;
  min-width: 110px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
  line-height: 1;
  white-space: nowrap;
}
.mlc-btn--primary {
  background: #c8102e;
  color: #fff;
  border-color: #c8102e;
}
.mlc-btn--primary:hover { background: #a50d26; border-color: #a50d26; }
.mlc-btn--ghost {
  background: transparent;
  color: #6b7280;
  border-color: #d1d5db;
}
.mlc-btn--ghost:hover { background: #f3f4f6; color: #374151; }
.mlc-btn--outline {
  background: transparent;
  color: #c8102e;
  border-color: #c8102e;
}
.mlc-btn--outline:hover { background: #fff5f6; }

/* ── Util ────────────────────────────────────────────────────────────────────*/
.mlc-hidden { display: none !important; }
.mlc-noscroll { overflow: hidden; }

/* ── Buton reopen ────────────────────────────────────────────────────────────*/
.mlc-reopen {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 9999;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: box-shadow .15s;
  color: #6b7280;
  padding: 0;
}
.mlc-reopen:hover { box-shadow: 0 4px 16px rgba(0,0,0,.2); color: #c8102e; }

/* ── Mobile ──────────────────────────────────────────────────────────────────*/
@media (max-width: 540px) {
  #mlconsent-wrap { padding: 0; align-items: flex-end; }
  #mlconsent-banner { border-radius: 16px 16px 0 0; max-width: 100%; }
  .mlc-btn { min-width: unset; padding: 10px 12px; font-size: 12px; }
}
