.copia-consent-banner {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: max(24px, env(safe-area-inset-bottom));
  width: min(580px, calc(100% - 48px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #e5eef4;
  color: #25313b;
  isolation: isolate;
  box-shadow: 0 8px 32px #174a3a20;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 240ms ease, transform 320ms cubic-bezier(.22, 1, .36, 1);
}

.copia-consent-banner[hidden], .cookie-preferences[hidden] {
  display: none;
}

.copia-consent-banner.is-in {
  opacity: 1;
  transform: none;
}

.copia-consent-banner > .copia-consent-message {
  display: block;
  visibility: visible;
  opacity: 1;
  color: #25313b;
  -webkit-text-fill-color: currentColor;
  font-family: Manrope, Arial, sans-serif;
  font-weight: 400;
  text-align: left;
  white-space: normal;
  overflow-wrap: break-word;
  margin: 0 0 22px;
  font-size: 1rem;
  line-height: 1.65;
}

.copia-consent-actions {
  display: flex;
  gap: 12px;
}

.copia-consent-actions .button {
  flex: 1;
  min-height: 48px;
  padding: 12px 24px;
  background: white;
  color: var(--brand);
  border-color: var(--brand);
}

.copia-consent-actions .button:hover {
  background: var(--brand);
  color: white;
}

.copia-consent-actions .button:focus-visible {
  outline-offset: 3px;
}

.footer-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.cookie-preferences {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: .875rem;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cookie-preferences:hover {
  color: var(--brand);
}

html.has-cookie-banner {
  scroll-padding-bottom: var(--cookie-space, 260px);
}

.has-cookie-banner body {
  padding-bottom: var(--cookie-space, 260px);
}

@media (max-width: 600px) {
  .copia-consent-banner {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: calc(100% - 32px);
    max-height: calc(100dvh - 32px);
    padding: 22px;
    border-radius: 20px;
  }

  .copia-consent-actions .button {
    padding-inline: 16px;
  }

  .footer-bottom {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .copia-consent-banner {
    transition: none;
    transform: none;
  }
}

@media print {
  .copia-consent-banner, .cookie-preferences {
    display: none;
  }

  .has-cookie-banner body {
    padding-bottom: 0;
  }
}

.copia-consent-policy {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -12px 0 14px;
  color: #315e78;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.copia-consent-policy:hover { color: #174a3a; }
