/* ─── cookie-consent.css — modal consimtamant cookies (blocant, fundal blur) ─── */
/* Modal centrat cu overlay blur. Ramane vizibil pana cand userul alege Accept/Refuz.
   Paleta se aliniaza brandului; variabilele --blue-* exista in CSS-ul paginii gazda. */

.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 22, 40, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* Implicit ascuns; afisat prin .open din JS doar daca nu exista deja consimtamant. */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cookie-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cookie-modal {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(6, 22, 40, 0.35);
  padding: 32px 30px 26px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'DM Sans', sans-serif;
}

.cookie-overlay.open .cookie-modal {
  transform: none;
}

.cookie-modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #E6F1FB;
  color: #185FA5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
}

.cookie-modal h2 {
  font-size: 20px;
  font-weight: 600;
  color: #0B2D5E;
  margin: 0 0 10px;
}

.cookie-modal p {
  font-size: 14px;
  line-height: 1.65;
  color: #4a5568;
  margin: 0 0 14px;
}

.cookie-modal a {
  color: #378ADD;
  text-decoration: underline;
}

.cookie-modal a:hover {
  color: #185FA5;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.cookie-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.cookie-btn i { font-size: 17px; }

.cookie-btn-accept {
  background: #378ADD;
  color: #fff;
}

.cookie-btn-accept:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.cookie-btn-reject {
  background: transparent;
  color: #0B2D5E;
  border: 1px solid rgba(11, 45, 94, 0.18);
}

.cookie-btn-reject:hover {
  background: #f5f7fa;
}

.cookie-modal-foot {
  margin-top: 16px;
  font-size: 12px;
  color: #8898aa;
  text-align: center;
}

@media (max-width: 480px) {
  .cookie-modal { padding: 26px 20px 22px; border-radius: 16px; }
  .cookie-actions { flex-direction: column; }
}
