/*
 * The analytics consent banner.
 *
 * ITS OWN FILE, AND NOT IN site.css, because two of the four pages that load
 * analytics — wallety and qurany — do not use site.css at all. A banner that
 * inherited tokens from a stylesheet half the pages lack would be unstyled
 * exactly where it matters.
 *
 * Colours are literal for the same reason: --bg and friends are defined in
 * site.css and are not there to inherit.
 */

#oa-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  margin: 0 auto;
  max-width: 34rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.125rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  font:
    400 0.875rem/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #1a1410;
}

#oa-consent p {
  margin: 0;
  flex: 1 1 16rem;
}

#oa-consent a {
  color: #6b5c4a;
}

.oa-consent-actions {
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
}

/*
 * IDENTICAL BUTTONS. Accept and Decline share every declaration — same size,
 * same weight, same colour. Making one louder than the other is the standard
 * way a consent banner stops being consent, and this site sells a tool that
 * reports that sort of thing.
 */
.oa-consent-button {
  font: inherit;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  background: #fdf5ea;
  color: #1a1410;
  cursor: pointer;
}

.oa-consent-button:hover {
  background: #f6ead9;
}

.oa-consent-button:focus-visible {
  outline: 2px solid #1a1410;
  outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
  #oa-consent {
    background: #1a1410;
    color: #f5efe8;
    border-color: rgba(255, 255, 255, 0.16);
  }
  #oa-consent a {
    color: #c9b9a4;
  }
  .oa-consent-button {
    background: #2a221b;
    color: #f5efe8;
    border-color: rgba(255, 255, 255, 0.16);
  }
  .oa-consent-button:hover {
    background: #362c23;
  }
  .oa-consent-button:focus-visible {
    outline-color: #f5efe8;
  }
}
