/* consent.css — approved change 8 (2026-11-17, ported from Alpha Omega
 * Electric): the cookie banner (src/components/ConsentBanner.astro,
 * public/js/consent.js). Shipping build only. Kit tokens only
 * (src/styles/tokens.css): the navy bar, white text, a gold top rule, white
 * square buttons (the kit's 0 radius) with black text, Work Sans throughout.
 * "Accept all" and "Reject all" look the same: neither answer is the easier
 * one to give.
 *
 * Hidden unless <html data-consent-needed> (no choice yet: set in <head>, so
 * it shows from the first paint) or the banner has data-open (reopened from
 * the footer). */
.orb-consent {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 -4px 24px rgb(0 0 0 / 0.3);
  border-top: 3px solid var(--color-accent);
}
html[data-consent-needed] .orb-consent,
.orb-consent[data-open] {
  display: block;
}
.orb-consent__inner,
.orb-consent__panel {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px 20px;
  box-sizing: border-box;
}
.orb-consent__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.orb-consent__text {
  flex: 1 1 auto;
}
.orb-consent p {
  margin: 0;
  color: inherit;
}
.orb-consent__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 4px;
  padding: 0;
  color: inherit;
}
.orb-consent a,
.orb-consent .orb-consent__link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}
.orb-consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.orb-consent .orb-consent__btn {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  min-width: 150px;
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid var(--color-secondary);
  border-radius: var(--button-radius);
  background: var(--color-secondary);
  color: var(--color-text);
  cursor: pointer;
}
/* White with black text (21:1); the kit gold with black text on hover (10:1). */
.orb-consent .orb-consent__btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text);
}
.orb-consent .orb-consent__link {
  background: none;
  border: 0;
  padding: 10px 6px;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 15px;
  cursor: pointer;
}
/* The theme paints every focused or hovered button (hello-elementor reset.css
 * `button:focus`, `button:hover`, and the kit after it): after a tap the
 * Settings link turned into a coloured block. State rules at (0,3,0). */
.orb-consent .orb-consent__btn:focus:not(:hover) {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-text);
}
.orb-consent .orb-consent__link:hover,
.orb-consent .orb-consent__link:focus {
  background: none;
  color: inherit;
  text-decoration: underline;
}
.orb-consent button:focus-visible,
.orb-consent a:focus-visible,
.orb-consent input:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 3px;
}
.orb-consent__panel {
  border-top: 1px solid rgb(255 255 255 / 0.2);
}
.orb-consent__panel[hidden] {
  display: none;
}
.orb-consent__choices {
  border: 0;
  margin: 0 0 14px;
  padding: 0;
}
.orb-consent__choices legend {
  margin-bottom: 8px;
}
.orb-consent__choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  cursor: pointer;
}
.orb-consent__choice input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--color-accent);
}
.orb-consent__choice strong {
  display: block;
}
.orb-consent__gpc[hidden] {
  display: none;
}
.orb-consent__gpc {
  display: block;
  font-style: normal;
  margin-top: 2px;
  opacity: 0.85;
}
.orb-consent__id {
  margin-top: 12px !important;
  font-size: 13px;
  opacity: 0.85;
}
.orb-consent__id code {
  font-family: inherit;
  word-break: break-all;
}
@media (max-width: 767px) {
  .orb-consent__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .orb-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .orb-consent .orb-consent__btn {
    min-width: 0;
  }
  .orb-consent .orb-consent__link {
    grid-column: 1 / -1;
  }
}
