/* cookie-consent.css — RGPD cookie banner styles for REVALUNA
   Matches the dark teal / navy brand palette. */

#rv-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100000;
  background: rgba(4, 9, 26, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(20, 184, 166, 0.3);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  animation: rv-cb-slide-up 0.35s ease-out;
  /* Hidden by default until JS slides it in */
  transform: translateY(calc(100% + 1px));
  transition: transform 0.3s ease;
}
#rv-cookie-banner.visible {
  transform: translateY(0);
}

@keyframes rv-cb-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

#rv-cookie-banner .rv-cb-text {
  color: #c9d1d9;
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 640px;
  flex: 1 1 auto;
}

#rv-cookie-banner .rv-cb-text a {
  color: #14b8a6;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#rv-cookie-banner .rv-cb-text a:hover {
  color: #5eead4;
}

#rv-cookie-banner .rv-cb-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

#rv-cookie-banner .rv-cb-btn {
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}

#rv-cookie-banner .rv-cb-btn:active {
  transform: scale(0.97);
}

#rv-cookie-banner .rv-cb-accept {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #050d1a;
}

#rv-cookie-banner .rv-cb-accept:hover {
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
}

#rv-cookie-banner .rv-cb-reject {
  background: rgba(255, 255, 255, 0.08);
  color: #c9d1d9;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

#rv-cookie-banner .rv-cb-reject:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Focus-visible for a11y */
#rv-cookie-banner .rv-cb-btn:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: 2px;
}

/* Mobile stacking */
@media (max-width: 600px) {
  #rv-cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    gap: 0.75rem;
  }
  #rv-cookie-banner .rv-cb-actions {
    width: 100%;
    justify-content: center;
  }
}
