/* Cookie consent bar — RAE Energy. Tokens mirror site/styles.css. */
:root {
  --cc-bg: #0F2236;            /* --navy */
  --cc-fg: #E9EDF1;
  --cc-accent: #ED7422;        /* --brand (RAE orange) */
  --cc-link: #F7BC8A;
  --cc-link-h: #FFFFFF;
  --cc-btn-bg: #FFFFFF;
  --cc-btn-bg-h: #FDF1E8;      /* --brand-tint */
  --cc-btn-fg: #0F2236;
  --cc-btn-br: #FFFFFF;
  --cc-focus: #ED7422;
  --cc-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --cc-wrap: 1240px;
}

/* ---- shared rules: identical on all three sites ------------------------- */
.cc-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: var(--cc-bg); color: var(--cc-fg);
  border-top: 3px solid var(--cc-accent);
  box-shadow: 0 -8px 24px rgba(0,0,0,.20);
  font-family: var(--cc-font); font-size: 15px; line-height: 1.5;
  padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.cc-wrap { max-width: var(--cc-wrap); margin: 0 auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cc-text { margin: 0; flex: 1 1 340px; min-width: 0; }
.cc-link { color: var(--cc-link); text-decoration: underline; }
.cc-link:hover, .cc-link:focus { color: var(--cc-link-h); }
.cc-acts { display: flex; gap: 10px; flex: 0 0 auto; }
/* Decline and Accept share this one class: identical size, color and weight. */
.cc-btn {
  font: inherit; font-weight: 600; min-width: 108px; padding: 9px 18px;
  border: 1px solid var(--cc-btn-br); border-radius: 4px;
  background: var(--cc-btn-bg); color: var(--cc-btn-fg); cursor: pointer;
}
.cc-btn:hover { background: var(--cc-btn-bg-h); }
.cc-bar:focus-visible, .cc-bar .cc-btn:focus-visible, .cc-bar .cc-link:focus-visible {
  outline: 3px solid var(--cc-focus); outline-offset: 2px;
}
.cc-bar:focus { outline: none; }
/* the footer "Cookie settings" link: inherits the footer's own color, stays keyboard-visible */
[data-cookie-settings] { color: inherit; text-decoration: underline; cursor: pointer; }
[data-cookie-settings]:focus-visible { outline: 2px solid var(--cc-accent); outline-offset: 3px; }
/* Phone: kept deliberately short (~96px) so the bar clears the hero call-to-action
   at 390x844 on all three sites. Fixed position, so nothing shifts when it appears. */
@media (max-width: 600px) {
  .cc-bar { font-size: 12.5px; line-height: 1.35; padding: 8px 14px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .cc-wrap { gap: 6px; }
  .cc-text { flex: 1 1 100%; }
  .cc-acts { width: 100%; gap: 8px; }
  .cc-btn { flex: 1 1 0; min-width: 0; padding: 9px 12px; font-size: 13px; }
}
