/*
 * Cookie banner — fixed strip at the bottom of the viewport.
 * Rendered by part/cookie-banner.php; show/hide controlled by Alpine + localStorage.
 *
 * Note: this banner is informational only. Tracking scripts in inc/tracking.php
 * load regardless of accept/dismiss state.
 */

.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: var(--sf-z-toast);
  background: var(--sf-color-bg-inverse);
  color: var(--sf-color-text-inverse);
  border-top: 1px solid color-mix(in srgb, var(--sf-color-text-inverse) 20%, transparent);
  box-shadow: 0 -4px 24px rgb(0 0 0 / 0.25);
}

.cookie-banner__inner {
  max-width: var(--sf-container);
  margin: 0 auto;
  padding: var(--sf-space-4) var(--sf-space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sf-space-4) var(--sf-space-6);
}

.cookie-banner__text {
  flex: 1 1 min(420px, 100%);
  margin: 0;
  font-size: var(--sf-text-sm);
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--sf-color-text-inverse);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cookie-banner__text a:hover {
  color: var(--sf-color-accent);
}

.cookie-banner__btn {
  appearance: none;
  flex: 0 0 auto;
  padding: var(--sf-space-2) var(--sf-space-6);
  background: var(--sf-color-accent);
  color: var(--sf-color-text-inverse);
  border: 0;
  border-radius: var(--sf-radius-pill);
  font-family: var(--sf-font-body);
  font-size: var(--sf-text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--sf-duration-fast) var(--sf-ease);
}

.cookie-banner__btn:hover {
  background: var(--sf-color-accent-deep);
}

@media (max-width: 640px) {
  .cookie-banner__inner {
    padding: var(--sf-space-3) var(--sf-space-4);
    gap: var(--sf-space-3);
  }
  .cookie-banner__btn {
    width: 100%;
  }
}
