#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
  background: hsl(0 0% 100%);
  border-top: 1px solid hsl(0 0% 90%);
  box-shadow: 0 -6px 24px hsl(0 0% 0% / 0.08);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

#cookie-banner.cookie-banner--hide {
  transform: translateY(110%);
  opacity: 0;
}

.cookie-banner__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.cookie-banner__text {
  flex: 1 1 16rem;
  min-width: 0;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: hsl(0 0% 32%);
}

.cookie-banner__text a {
  color: hsl(25 95% 45%);
  font-weight: 500;
  word-break: break-word;
}

.cookie-banner__actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
}

.cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-family: inherit;
  box-sizing: border-box;
}

.cookie-banner__btn--primary {
  background: hsl(25 95% 53%);
  color: white;
}

.cookie-banner__btn--primary:hover {
  background: hsl(25 95% 48%);
}

.cookie-banner__btn--ghost {
  background: transparent;
  color: hsl(0 0% 35%);
  border: 1px solid hsl(0 0% 85%);
}

.cookie-banner__btn--ghost:hover {
  border-color: hsl(25 95% 53%);
  color: hsl(25 95% 45%);
}

@media (max-width: 767px) {
  #cookie-banner {
    padding: 0.65rem 0.75rem;
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0));
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .cookie-banner__text {
    flex: none;
    font-size: 0.625rem;
    line-height: 1.45;
    max-height: 3.6rem;
    overflow-y: auto;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: stretch;
    gap: 0.45rem;
  }

  .cookie-banner__btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.4rem 0.55rem;
    font-size: 0.625rem;
    min-height: 2rem;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .cookie-banner__text {
    font-size: 0.5875rem;
    max-height: 3.2rem;
  }

  .cookie-banner__btn {
    font-size: 0.5875rem;
    padding: 0.35rem 0.45rem;
  }
}
