/* Recallix Cookie Consent Banner — spec v2.0 */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #e4e7ec;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-sizing: border-box;
}

.cookie-banner *,
.cookie-banner *::before,
.cookie-banner *::after {
  box-sizing: border-box;
}

.cookie-banner__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px;
}

.cookie-banner__title {
  margin: 0 0 8px;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0;
  color: #0f172a;
  text-align: left;
}

.cookie-banner__description {
  margin: 0 0 20px;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: #475569;
  text-align: left;
}

.cookie-banner__link {
  color: #2563eb;
  text-decoration: none;
  transition: text-decoration 200ms ease;
}

.cookie-banner__link:hover,
.cookie-banner__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

.cookie-banner__primary,
.cookie-banner__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  background-image: none;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    color 200ms ease;
}

/* Override Astra global `button:focus/hover { color: transparent }` */
.cookie-banner .cookie-banner__primary,
.cookie-banner .cookie-banner__primary:hover,
.cookie-banner .cookie-banner__primary:focus,
.cookie-banner .cookie-banner__primary:focus-visible {
  border: none;
  background-color: #2563eb !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.cookie-banner .cookie-banner__primary:hover {
  background-color: #1d4ed8 !important;
}

.cookie-banner .cookie-banner__secondary,
.cookie-banner .cookie-banner__secondary:hover,
.cookie-banner .cookie-banner__secondary:focus,
.cookie-banner .cookie-banner__secondary:focus-visible {
  border: 1px solid #cbd5e1;
  background-color: transparent !important;
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
}

.cookie-banner .cookie-banner__secondary:hover {
  background-color: #f6f7f9 !important;
}

.cookie-banner__primary:focus-visible,
.cookie-banner__secondary:focus-visible,
.cookie-banner__link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Initial hidden state (JS removes --hidden to animate in) */
.cookie-banner--hidden {
  display: none;
}

.cookie-banner--visible {
  display: block;
  animation: cookie-banner-enter 200ms ease-out forwards;
}

@keyframes cookie-banner-enter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner--visible {
    animation: none;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .cookie-banner__container {
    padding: 20px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .cookie-banner__container {
    padding: 20px 16px;
  }

  .cookie-banner__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .cookie-banner__primary,
  .cookie-banner__secondary {
    width: 100%;
  }
}
