/* Cookie consent banner — fixed bottom bar, matches WayHopper .btn tokens */

.wh-cc {
  position: fixed;
  inset: auto 0 0;
  z-index: 9999;
  padding: 16px 20px;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -12px 40px -20px color-mix(in oklch, var(--fg) 25%, transparent);
  transform: translateY(110%);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.wh-cc--visible {
  transform: translateY(0);
  opacity: 1;
}

.wh-cc__inner {
  max-width: var(--wrap, 1180px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  flex-wrap: wrap;
}

.wh-cc__copy {
  flex: 1 1 320px;
  min-width: 0;
}

.wh-cc__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.wh-cc__body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 62ch;
}

.wh-cc__body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wh-cc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.wh-cc__btn {
  white-space: nowrap;
}

body.wh-cc-open {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (max-width: 640px) {
  .wh-cc {
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0));
  }

  .wh-cc__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .wh-cc__actions {
    width: 100%;
  }

  .wh-cc__actions .wh-cc__btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
