/* Affiche – additions for the static store. Everything else comes unchanged from theme/assets/critical.css.
   Uses the design tokens from theme/snippets/css-variables.liquid (docs/designsystem.md). */

/* Cookie consent: compact bar at the bottom, never covers the buy button for long (one tap closes it) */
.consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(21, 21, 21, 0.06);
  padding: var(--space-4) var(--page-margin);
  padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
}
.consent__inner {
  max-width: var(--page-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
}
.consent__text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.consent__text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.consent__prefs {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  font-size: 0.875rem;
}
.consent__prefs[hidden] { display: none; }
.consent__opt { display: inline-flex; align-items: center; gap: var(--space-2); }
.consent__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.consent__actions .button { min-height: 40px; padding-inline: var(--space-4); }
@media (max-width: 749px) {
  .consent__actions { width: 100%; }
  .consent__actions .button { flex: 1 1 auto; }
}

/* Checkout error under "Till kassan" */
[data-checkout-form] .form-message { margin-top: var(--space-2); }

/* Thank-you page order summary */
[data-thanks-order] { margin: var(--space-5) auto; max-width: 480px; text-align: left; }

/* Search results grid shares the collection styles; keep the empty state airy */
[data-search-results] .search-page__empty { margin-top: var(--space-6); }
