/**
 * Cookie consent banner
 */

.cookie-consent {
  position: fixed;
  z-index: 9998;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(var(--bottom-nav-height, 4.25rem) + 0.65rem);
  pointer-events: none;
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent__inner {
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
  margin: 0 auto;
  padding: 1rem 1.05rem;
  border: 1px solid var(--home-line, rgba(15, 28, 46, 0.08));
  border-radius: var(--home-radius, 1.125rem);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 40px rgba(15, 28, 46, 0.14);
  pointer-events: auto;
}

@media (min-width: 48rem) {
  .cookie-consent {
    left: auto;
    right: 1.25rem;
    bottom: 1.25rem;
    width: min(24rem, calc(100vw - 2.5rem));
  }

  .cookie-consent__inner {
    margin: 0;
  }
}

.cookie-consent__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--home-muted, #5f6d82);
}

.cookie-consent__text a {
  color: var(--home-primary-deep, #3a7db5);
  font-weight: 600;
  text-decoration: none;
}

.cookie-consent__text a:hover {
  text-decoration: underline;
}

.cookie-consent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--v2-violet, #8b6fd4) 0%,
    var(--home-primary, #589fdc) 55%,
    var(--v2-teal, #18b5a4) 100%
  );
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.cookie-consent__btn:hover {
  opacity: 0.95;
}
