/* WageArmor cookie-consent theme.
   Overrides the vendored CookieConsent v3 CSS variables to the WageArmor palette (brand gold #feb91e)
   and styles the floating "manage cookies" button added by cookie-consent-init.js.
   Loaded AFTER /js/lib/cookieconsent.css in header_frontend.php so these win.
   Contrast note: gold is light, so button/link text is dark ink (#2c2f31) — white-on-gold would fail AA. */

#cc-main {
  --cc-bg: #ffffff;
  --cc-primary-color: #2c2f31;
  --cc-secondary-color: #5e5e5e;

  /* Primary = "Accept all" (brand gold, dark text) */
  --cc-btn-primary-bg: #feb91e;
  --cc-btn-primary-color: #2c2f31;
  --cc-btn-primary-border-color: #feb91e;
  --cc-btn-primary-hover-bg: #e5a800;
  --cc-btn-primary-hover-color: #2c2f31;
  --cc-btn-primary-hover-border-color: #e5a800;

  /* Secondary = "Reject non-essential" / "Customize" (equal-prominence, neutral) */
  --cc-btn-secondary-bg: #f2f2f2;
  --cc-btn-secondary-color: #2c2f31;
  --cc-btn-secondary-border-color: #e6e6e6;
  --cc-btn-secondary-hover-bg: #e6e6e6;
  --cc-btn-secondary-hover-border-color: #d6d6d6;

  --cc-toggle-on-bg: #feb91e;
  --cc-toggle-off-bg: #b7bcc0;
  --cc-link-color: #8a6a00;            /* dark gold — AA-readable on white (gold #feb91e would fail) */
  --cc-modal-border-radius: 10px;
  --cc-btn-border-radius: 6px;
}

/* Floating "manage cookies" button (re-opens preferences after a choice). */
.cc-float {
  position: fixed; left: .9rem; bottom: .9rem; z-index: 40;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #feb91e; color: #2c2f31; border: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: background .2s, transform .2s;
}
.cc-float:hover { background: #e5a800; transform: translateY(-1px); }
.cc-float:focus-visible { outline: 2px solid #2c2f31; outline-offset: 2px; }
.cc-float[hidden] { display: none; }

/* "Manage cookie preferences" button on the /cookie-policy page (brand gold, dark text). */
.wa-cookie-prefs-btn {
  background: #feb91e; color: #2c2f31; border: none; border-radius: 6px;
  padding: .55rem 1.3rem; font-weight: 600; cursor: pointer;
  transition: background .2s;
}
.wa-cookie-prefs-btn:hover { background: #e5a800; }
.wa-cookie-prefs-btn:focus-visible { outline: 2px solid #2c2f31; outline-offset: 2px; }
