/* Freeport Metrics theme for vanilla-cookieconsent v3.
   Palette and type from _ds/.../colors_and_type.css — the brand allows only
   these colors; edges are hard (radius 0), emphasis is brand blue. */
#cc-main {
  --cc-font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  --cc-modal-border-radius: 0;
  --cc-btn-border-radius: 0;

  --cc-bg: #ffffff;
  --cc-primary-color: #252525;
  --cc-secondary-color: #656565;

  --cc-btn-primary-bg: #464bff;
  --cc-btn-primary-color: #ffffff;
  --cc-btn-primary-border-color: #464bff;
  --cc-btn-primary-hover-bg: #2025c3;
  --cc-btn-primary-hover-color: #ffffff;
  --cc-btn-primary-hover-border-color: #2025c3;

  --cc-btn-secondary-bg: #ffffff;
  --cc-btn-secondary-color: #252525;
  --cc-btn-secondary-border-color: #252525;
  --cc-btn-secondary-hover-bg: #eaeaea;
  --cc-btn-secondary-hover-color: #252525;
  --cc-btn-secondary-hover-border-color: #252525;

  --cc-link-color: #464bff;
  --cc-separator-border-color: #eaeaea;
  --cc-section-category-border: #eaeaea;

  --cc-cookie-category-block-bg: #ffffff;
  --cc-cookie-category-block-border: #eaeaea;
  --cc-cookie-category-block-hover-bg: #eaeaea;
  --cc-cookie-category-block-hover-border: #eaeaea;
  --cc-cookie-category-expanded-block-bg: #ffffff;
  --cc-cookie-category-expanded-block-hover-bg: #eaeaea;

  --cc-toggle-on-bg: #464bff;
  --cc-toggle-off-bg: #656565;
  --cc-toggle-on-knob-bg: #ffffff;
  --cc-toggle-off-knob-bg: #ffffff;
  --cc-toggle-readonly-bg: #eaeaea;
  --cc-toggle-readonly-knob-bg: #ffffff;

  --cc-footer-bg: #ffffff;
  --cc-footer-color: #656565;
  --cc-footer-border-color: #eaeaea;

  --cc-overlay-bg: rgba(37, 37, 37, 0.7);

  --cc-webkit-scrollbar-bg: #eaeaea;
  --cc-webkit-scrollbar-hover-bg: #656565;
}

/* Buttons fade between colors on hover, matching the page buttons
   (the library ships no transition of its own). */
#cc-main .cm__btn,
#cc-main .pm__btn {
  transition:
    background-color 0.25s,
    color 0.25s,
    border-color 0.25s;
}

/* Layout fine-tuning */
/* The consent bar no longer blocks the page, so it stands out by inversion
   instead: brand dark background with light text. Scoped to the bar —
   the preferences modal keeps the light theme above. Buttons keep the global
   palette (blue primary, white secondary) which reads well on dark. */
#cc-main .cm--bar {
  /* Not full-bleed: the bar is as wide as the page content (1120px) plus a
     48px gutter each side, centered. left/right 0 + max-width + auto
     margins center a fixed element; the library's slide-in transform on
     .cm--bottom is untouched. Below 1216px it is simply full width. */
  width: auto;
  max-width: 1216px;
  margin: 0 auto;
  border: 1px solid #656565;
  border-bottom: none;
  box-shadow: 0 -4px 24px rgba(37, 37, 37, 0.18);
  /* The title inherits its color from #cc-main (where the variable still
     resolves dark), so the bar needs an explicit color of its own. */
  color: #ffffff;
  /* 90% opaque so the page shows faintly through the bar. */
  --cc-bg: rgba(37, 37, 37, 0.9);
  --cc-primary-color: #ffffff;
  --cc-secondary-color: #eaeaea;
  --cc-link-color: #ffffff;
}
/* The inner body fills the bar; the 48px gutter is what keeps text and
   buttons flush with the page content edge (the library's own 1.3rem side
   padding on title/desc/btns is replaced, not added to). */
#cc-main .cm--bar.cm--inline .cm__body {
  max-width: none;
}
#cc-main .cm--bar .cm__title,
#cc-main .cm--bar .cm__desc {
  padding-left: 48px;
}
#cc-main .cm--bar .cm__btns {
  padding-right: 48px;
}
/* Reduced from the library's default vertical padding: texts (1rem top),
   desc (1em bottom), and the buttons column (1rem top+bottom) — the
   buttons column is what actually drives the bar's height. */
#cc-main .cm--bar .cm__texts {
  padding-top: 0.75rem;
}
#cc-main .cm--bar .cm__desc {
  padding-bottom: 0.75em;
}
#cc-main .cm--bar .cm__btns {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
#cc-main .pm__body,
#cc-main .pm__footer,
#cc-main .pm__header {
  padding: 1em 1.5em;
}
#cc-main .pm__close-btn {
  border: none;
}
#cc-main .pm__section:first-child {
  margin-bottom: 1em;
}
/* Keep the intro text clear of the body scrollbar so it doesn't reflow
   when the scrollbar appears (expanded cookie tables make the body scroll). */
#cc-main .pm__section:first-child .pm__section-desc {
  margin-right: 4px;
}
/* Advertising cookie table: the Cookie column names fit two lines at ~140px,
   so cap it there (the cells' side padding comes on top — table cells size
   width as content); the freed space flows to the widest column, Purpose. */
#cc-main
  .pm__section--toggle:nth-child(3)
  .pm__section-table
  tr
  > :first-child {
  width: 140px;
}
#cc-main .pm__section-toggles + .pm__section {
  margin-top: 1em;
}

/* Phone band (the library's own breakpoint). The library stacks title,
   description and three full-width 42px buttons in a column — on a 360px
   phone that bar covered the hero headline. Compact it: no title (the
   dialog's accessible name still resolves from the hidden h2), smaller
   type, and a single control row: Allow + Decline sharing the space on
   the left, "Let me choose" at its natural width on the right. cc-init.js
   also serves
   shorter copy at this width. The library's phone rules all carry
   !important, so these do too. */
@media screen and (max-width: 640px) {
  #cc-main .cm--bar {
    border-left: none;
    border-right: none;
  }
  #cc-main .cm--bar .cm__title {
    display: none;
  }
  /* Top padding sits a little below the bottom one on purpose: the
     description's line-height half-leading adds ~3px of visual space
     above the text. */
  #cc-main .cm--bar .cm__texts {
    padding-top: 0.4rem;
  }
  /* The hidden title still counts as a sibling, so the library's
     title + desc gap would otherwise add 1.1em of empty space on top. */
  #cc-main .cm--bar .cm__title + .cm__desc {
    margin-top: 0;
  }
  #cc-main .cm--bar .cm__desc {
    font-size: 13px;
    line-height: 1.45;
    padding-bottom: 0.37em;
    max-height: none;
  }
  #cc-main .cm--bar .cm__btns {
    border-top: none !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.25rem !important;
    padding-bottom: 0.4rem;
  }
  #cc-main .cm--bar .cm__btn-group {
    flex-direction: row !important;
    align-items: center;
    margin: 0 !important;
  }
  /* Allow + Decline share the space left of the link. */
  #cc-main .cm--bar .cm__btn-group:first-child {
    flex: 1 1 auto;
  }
  #cc-main .cm--bar .cm__btn-group:first-child .cm__btn + .cm__btn {
    margin: 0 0 0 0.5rem !important;
  }
  #cc-main .cm--bar .cm__btn {
    min-width: 0;
    min-height: 30px;
    padding-left: 0.75em;
    padding-right: 0.75em;
  }
  /* "Let me choose" keeps its secondary-button look, natural width. */
  #cc-main .cm--bar .cm__btn-group:nth-child(2) {
    flex: 0 0 auto;
    margin-left: 0.5rem !important;
  }
  #cc-main .cm--bar .cm__btn-group:nth-child(2) .cm__btn {
    white-space: nowrap;
  }
}

/* Footer "Do Not Sell or Share My Personal Information" link (CPRA wording).
   Hidden inline in the template; cc-init.js stamps data-cc-mode on <html>
   and the link shows only for visitors who get the US opt-out flow. */
html[data-cc-mode="opt-out"] #fm-do-not-sell {
  display: inline !important;
}
