/*
 * Own cookie-consent banner. Hard-coded brand colours (not --a3-* tokens):
 * the banner renders on both the homepage (netlify.css tokens) and the
 * block-theme routes (design-tokens.css), which do not share one token set.
 */
.a3-cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 2147483000;
  display: flex;
  justify-content: center;
  padding: 0;
  font-family: "Geist", system-ui, sans-serif;
}

.a3-cookie-banner__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  background: #ffffff;
  color: #171717;
  border: 0;
  border-top: 1px solid #e3dfd2;
  border-radius: 0;
  box-shadow: none;
  padding: 8px max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.a3-cookie-banner__copy {
  display: block;
  font-size: 12px;
  line-height: 1.35;
}

.a3-cookie-banner__title {
  display: inline;
  margin: 0 6px 0 0;
  font-family: "Geist", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.a3-cookie-banner__text {
  display: inline;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: #42413b;
}

.a3-cookie-banner__text a {
  color: #171717;
  text-decoration-thickness: 1px;
}

.a3-cookie-status {
  display: block;
  margin: 2px 0 0;
  font-size: 12px;
  color: #42413b;
}

.a3-cookie-banner__categories {
  display: flex;
  flex-wrap: wrap;
  column-gap: 14px;
  row-gap: 2px;
  margin-top: 2px;
}

.a3-cookie-category {
  line-height: inherit;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.a3-cookie-category__name {
  font-size: 12px;
  font-weight: 700;
}

.a3-cookie-category__state {
  font-size: 12px;
  color: #5f5d56;
}

.a3-cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.a3-cookie-btn {
  appearance: none;
  cursor: pointer;
  border-radius: 4px;
  font-family: "Geist", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #d7d4ca;
  white-space: nowrap;
}

.a3-cookie-btn--accept,
.a3-cookie-btn--reject {
  background: #ffffff;
  color: #171717;
}

.a3-cookie-btn--accept:hover,
.a3-cookie-btn--reject:hover {
  background: #f5f2e8;
}

.a3-cookie-btn:focus-visible,
.cookie-settings-trigger:focus-visible {
  outline: 3px solid rgba(91, 46, 160, 0.42);
  outline-offset: 3px;
}

.cookie-settings-trigger {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-family: "Geist", system-ui, sans-serif;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .a3-cookie-banner {
    padding: 0;
  }

  .a3-cookie-banner__inner {
    max-width: none;
    border-radius: 0;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .a3-cookie-banner__actions {
    flex-direction: row;
  }

  .a3-cookie-btn {
    flex: 1;
    min-height: 36px;
    text-align: center;
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a3-cookie-btn {
    transition: none;
  }
}
