/* ========================================
   TermsFeed Cookie Banner — Illuminex (Clean + Compact + Pills)
   Replace ALL previous TermsFeed banner CSS with this block.
======================================== */

/* Banner wrapper (TermsFeed injects this id) */
#termsfeed-com---nb {
  background: #061a2a !important; /* blue-black */
  color: #ffffff !important;

  /* Force compact rectangle size (prevents "massive" banner) */
  width: 550px !important;
  max-width: 550px !important;

  padding: 18px !important;
  border-radius: 16px !important;

  border: 4px solid #ff8c1a !important;

box-shadow:
  inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -2px 0 rgba(0,0,0,0.35),
    0 0 0 3px rgba(255,140,26,0.35),
    0 0 18px rgba(255,140,26,0.45),
    0 14px 28px rgba(0,0,0,0.45) !important;
  
}

/* TermsFeed often wraps content in an inner container — keep it compact too */
#termsfeed-com---nb .cc-nb-main-container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

/* Title + text (TermsFeed uses IDs, not h2/p reliably) */
#termsfeed-com---nb #cc-nb-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 0 10px !important;
}

#termsfeed-com---nb #cc-nb-text {
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.6 !important;
  color: rgba(255,255,255,0.92) !important;
  margin: 0 !important;
}

/* Buttons container */
#termsfeed-com---nb .cc-nb-buttons {

  display: flex !important;
  flex-wrap: wrap !important;

  gap: 10px !important;

  margin-top: 22px !important; /* creates breathing room from text */

  padding-top: 4px !important; /* subtle separation */
}

/* Base button (pills like header/CTA) */
#termsfeed-com---nb .cc-nb-button,
#termsfeed-com---nb button {
  border-radius: 999px !important; /* true pill */
  padding: 10px 20px !important;
  height: 40px !important;

  font-size: 13px !important;
  font-weight: 700 !important;

  min-width: unset !important;
  width: auto !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  transition: all 0.25s ease !important;
}

/* I Agree — orange CTA pill like your sector CTA buttons */

#termsfeed-com---nb .cc-nb-okagree {

  background: linear-gradient(
    180deg,
    #ffa63a 0%,
    #ff8c1a 60%,
    #e67600 100%
  ) !important;

  color: #083a63 !important;

  border: 2px solid #ff8c1a !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.30),
    0 4px 10px rgba(0,0,0,0.25) !important;
}

/* Decline — blue pill with orange outline */
#termsfeed-com---nb .cc-nb-reject {
  background: #184e73 !important;
  color: #ffffff !important;
  border: 2px solid #ff8c1a !important;
}

/* Change preferences — white pill with orange outline */
#termsfeed-com---nb .cc-nb-changep {
  background: #ffffff !important;
  color: #184e73 !important;
  border: 2px solid #ff8c1a !important;
}

/* Hover polish */
#termsfeed-com---nb .cc-nb-button:hover,
#termsfeed-com---nb button:hover {
  transform: translateY(-1px) !important;
  box-shadow:
    0 6px 14px rgba(0,0,0,0.25),
    0 0 10px rgba(255,140,26,0.35) !important;
}

/* Cookie banner title styling (match sector card typography) */

#termsfeed-com---nb #cc-nb-title {

  font-size: 18px !important;

  font-weight: 700 !important;

  letter-spacing: 0.04em !important;

  color: rgba(255,255,255,0.92) !important;

  margin-bottom: 12px !important;
}


/* ========================================
   TermsFeed spacing fix (text → buttons gap)
   Paste at VERY bottom of globals.css
======================================== */

/* Create breathing room under the last line of text */
#termsfeed-com---nb p:last-of-type{
  margin-bottom: 18px !important;
}

/* TermsFeed uses different button wrapper class names depending on build.
   So we target all likely containers. */
#termsfeed-com---nb .cc-nb-buttons,
#termsfeed-com---nb .cc-nb-btns,
#termsfeed-com---nb .cc-nb-button-group,
#termsfeed-com---nb .cc-nb-buttons-container{
  margin-top: 18px !important;
  padding-top: 6px !important;
}

/* Extra safety: if buttons sit in a footer area */
#termsfeed-com---nb .cc-nb-footer,
#termsfeed-com---nb .cc-nb-actions{
  margin-top: 18px !important;
  padding-top: 6px !important;
}

/* ========================================
   TermsFeed — Mobile responsiveness fix
   Paste at VERY bottom of globals.css
======================================== */

@media (max-width: 700px) {
  /* Make banner fit the viewport and stop horizontal overflow */
  #termsfeed-com---nb {
    box-sizing: border-box !important;

    /* force it to stay inside the screen */
    left: 18px !important;
    right: 18px !important;
    width: auto !important;
    max-width: none !important;

    /* keep it compact */
    padding: 14px !important;
    border-radius: 16px !important;
  }

  /* Slightly smaller text so it doesn’t feel huge on mobile */
  #termsfeed-com---nb h2 {
    font-size: 16px !important;
    letter-spacing: 0.02em !important;
  }

  #termsfeed-com---nb p {
    font-size: 13px !important;
    line-height: 1.55 !important;
  }

  /* Stack buttons vertically on mobile */
#termsfeed-com---nb .cc-nb-buttons,
#termsfeed-com---nb .cc-nb-btns,
#termsfeed-com---nb .cc-nb-button-group,
#termsfeed-com---nb .cc-nb-buttons-container,
#termsfeed-com---nb .cc-nb-footer,
#termsfeed-com---nb .cc-nb-actions {

  display: flex !important;
  flex-direction: column !important;   /* STACK */
  gap: 10px !important;
  margin-top: 16px !important;
}

  /* Make buttons “pill” but not oversized; allow wrapping */
  #termsfeed-com---nb button,
  #termsfeed-com---nb .cc-nb-okagree,
  #termsfeed-com---nb .cc-nb-reject,
  #termsfeed-com---nb .cc-nb-changep {
    white-space: nowrap !important;
    max-width: 100% !important;
  }
}

/* USA cookie preferences control */
#open_preferences_center {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #f59e0b;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
}

#open_preferences_center:focus-visible {
  outline: 3px solid #035ba3;
  outline-offset: 3px;
}

/* Match original UK winged-emblem display sizes */
@media (min-width: 1101px) {
  .site-footer .footer-emblem {
    width: auto;
    height: 110px;
    max-width: none;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .site-footer .footer-emblem {
    width: auto;
    height: 96px;
    max-width: none;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .site-footer .footer-emblem {
    width: auto;
    height: 84px;
    max-width: none;
  }
}

/* ILLUMINEX UK COOKIE ICON MATCH */
#open_preferences_center {
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;

  background: transparent !important;
  background-image: url("assets/cookie-icon.png") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;

  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;

  font-size: 0 !important;
  color: transparent !important;

  opacity: 0.8;
  filter: saturate(0.9);

  animation: cookieFadeIn 0.3s ease forwards;
  animation-delay: 0.2s;

  transition: opacity 0.25s ease, transform 0.25s ease;
}

#open_preferences_center svg {
  display: none !important;
}

#open_preferences_center:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

#open_preferences_center:focus-visible {
  outline: 2px solid #ff8c00;
  outline-offset: 3px;
}

@keyframes cookieFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 0.7;
    transform: translateY(0);
  }
}

/* ILLUMINEX UK COOKIE MOBILE MATCH */
@media (max-width: 900px) {
  #open_preferences_center {
    width: 34px !important;
    height: 34px !important;
    background-size: 32px !important;
    left: 4px !important;
    bottom: 10px !important;
  }
}