/* Banner cookies — scope propio (.cookie-consent-banner), no toca estilos globales */

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10050;
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -4px 20px rgba(34, 41, 47, 0.12);
  border-top: solid 1px rgba(210, 215, 217, 0.9);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #3d4449;
  opacity: 0;
  transform: translateY(100%);
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  pointer-events: none;
}

.cookie-consent-banner.cookie-consent-banner--visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.cookie-consent-banner.cookie-consent-banner--hide {
  opacity: 0;
  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
}

.cookie-consent-banner__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.25rem;
}

.cookie-consent-banner__text {
  margin: 0;
  flex: 1 1 260px;
  max-width: 52rem;
}

.cookie-consent-banner__text a {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
  border-bottom: 0;
}

.cookie-consent-banner__text a:focus {
  outline: 2px solid var(--color-primary, #2563eb);
  outline-offset: 2px;
}

.cookie-consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-consent-banner__btn {
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55em 1.15em;
  border-radius: 0.35em;
  border: solid 1px rgba(210, 215, 217, 0.85);
  background: #f7f9fb;
  color: #3d4449;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cookie-consent-banner__btn:hover {
  background: #eef2f6;
}

.cookie-consent-banner__btn--accept {
  background-color: #8bde8f;
  border: none;
  color: #ffffff;
  transition: background-color 0.2s ease;
}

.cookie-consent-banner__btn--accept:hover {
  background-color: #91b4ff;
}

@media (max-width: 480px) {
  .cookie-consent-banner {
    padding: 0.75rem 0.65rem;
  }

  .cookie-consent-banner__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-consent-banner__actions {
    justify-content: center;
  }

  .cookie-consent-banner__btn {
    flex: 1 1 auto;
    min-width: 7rem;
  }
}
