/* Cookie consent banner — fixed bottom pill, landing only. Hidden by default;
   the Stimulus controller adds .is-visible after checking localStorage to
   avoid a flash for returning visitors with a stored decision. */

.cookie-consent {
  position: fixed;
  left: var(--spacing-4);
  right: var(--spacing-4);
  bottom: var(--spacing-4);
  max-width: 640px;
  margin: 0 auto;
  padding: var(--spacing-4) var(--spacing-5);
  background: var(--color-fill-dark);
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: var(--spacing-3);
  z-index: var(--z-toast);
}

.cookie-consent.is-visible {
  display: flex;
}

.cookie-consent__message {
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: color-mix(in srgb, var(--color-text-inverse) 80%, transparent);
  margin: 0;
}

.cookie-consent__link {
  color: var(--color-text-inverse);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__actions {
  display: flex;
  gap: var(--spacing-3);
  justify-content: flex-end;
}

.cookie-consent__btn {
  font-size: var(--font-size-sm);
  font-weight: 500;
  padding: var(--spacing-2) var(--spacing-4);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.cookie-consent__btn--primary {
  background: var(--color-text-inverse);
  color: var(--color-fill-dark);
}

.cookie-consent__btn--secondary {
  background: transparent;
  color: var(--color-text-inverse);
  border-color: color-mix(in srgb, var(--color-text-inverse) 30%, transparent);
}

@media (min-width: 640px) {
  .cookie-consent {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-consent__actions {
    flex-shrink: 0;
  }
}
