/* APIgoat Consent — a bar at the foot of the window, in the site's idiom:
   paper, a thin rule, mono type, one green action. Fixed, so accepting or
   refusing never reflows what the visitor was reading.

   Theming: a theme skins the banner by setting --acx-* custom properties
   (on :root or .acx) — never by overriding these rules, so plugin updates
   keep applying. Each --acx-* falls back to the site-wide token the
   boiler theme already defines (--paper, --brand, --mono…), then to a
   literal default.

     --acx-bg              bar background
     --acx-rule            top border and ghost-button border
     --acx-shadow          bar shadow
     --acx-accent-bar      optional 3px strip across the top (any background)
     --acx-font            font family for text and buttons
     --acx-text-size       body text size
     --acx-text            body text color
     --acx-link            link color
     --acx-link-hover      link hover color
     --acx-link-underline  link underline color
     --acx-btn-size        button font size
     --acx-btn-weight      button font weight (accept)
     --acx-btn-transform   button text-transform
     --acx-btn-tracking    button letter-spacing
     --acx-btn-pad         button padding
     --acx-radius          button corner radius
     --acx-ghost-ink       refuse button text
     --acx-ghost-ink-hover refuse button text on hover
     --acx-ghost-border-hover  refuse button border on hover
     --acx-ghost-bg-hover  refuse button background on hover
     --acx-accept-bg       accept button background
     --acx-accept-bg-hover accept button background on hover
     --acx-accept-ink      accept button text
     --acx-focus           focus outline color
     --acx-maxw / --acx-pad  inner width and side padding
     --acx-z               stacking order */

.acx {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--acx-z, 60);
  background: var(--acx-bg, var(--paper, #fff));
  border-top: 1px solid var(--acx-rule, var(--rule, #e5e7e5));
  box-shadow: var(--acx-shadow, 0 -8px 24px rgba(10, 10, 10, 0.06));
  transform: translateY(100%);
  transition: transform .22s ease;
  font-family: var(--acx-font, var(--mono, ui-monospace, Menlo, Consolas, monospace));
}
.acx.is-open { transform: translateY(0); }

.acx::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--acx-accent-bar, none);
  pointer-events: none;
}

.acx__inner {
  max-width: var(--acx-maxw, var(--maxw, 1320px));
  margin: 0 auto;
  padding: 16px var(--acx-pad, var(--pad, 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.acx__text {
  margin: 0;
  font-size: var(--acx-text-size, 13px);
  line-height: 1.6;
  color: var(--acx-text, var(--ink-3, #525252));
  max-width: 76ch;
}
.acx__text a {
  color: var(--acx-link, var(--ink-2, #262626));
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--acx-link-underline, var(--brand, #2DCA3D));
}
.acx__text a:hover { color: var(--acx-link-hover, var(--brand-ink, #166B22)); }

.acx__actions {
  display: flex;
  gap: 10px;
  flex: none;
}

.acx__btn {
  font-family: inherit;
  font-size: var(--acx-btn-size, 13px);
  letter-spacing: var(--acx-btn-tracking, 0.02em);
  text-transform: var(--acx-btn-transform, none);
  padding: var(--acx-btn-pad, 9px 18px);
  border-radius: var(--acx-radius, 2px);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.acx__btn--ghost {
  background: transparent;
  border: 1px solid var(--acx-rule, var(--rule, #e5e7e5));
  color: var(--acx-ghost-ink, var(--ink-3, #525252));
}
.acx__btn--ghost:hover {
  background: var(--acx-ghost-bg-hover, transparent);
  border-color: var(--acx-ghost-border-hover, var(--ink-4, #a3a3a3));
  color: var(--acx-ghost-ink-hover, var(--ink, #0a0a0a));
}
.acx__btn--accept {
  background: var(--acx-accept-bg, var(--brand, #2DCA3D));
  border: 1px solid var(--acx-accept-bg, var(--brand, #2DCA3D));
  color: var(--acx-accept-ink, #0a0a0a);
  font-weight: var(--acx-btn-weight, 500);
}
.acx__btn--accept:hover {
  background: var(--acx-accept-bg-hover, var(--brand-deep, #1FA02D));
  border-color: var(--acx-accept-bg-hover, var(--brand-deep, #1FA02D));
}

.acx__btn:focus-visible {
  outline: 2px solid var(--acx-focus, var(--brand-ink, #166B22));
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .acx__inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .acx__actions { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .acx { transition: none; }
}
