/* V2 footer — matches the redesign. Replaces the inline yellow .footer-bar
   styling from the Customizer's Additional CSS (which is left intact so the
   user can revert via the Customizer). Loaded site-wide so the footer is
   consistent regardless of whether the page itself is V2 or legacy. */

/* Don't force the footer background — the Customizer's
   `footer_background_color` is the source of truth so users can change it.
   Only set typography defaults here. */
.site-footer.footer-bar-active {
  font-family: var(--ccs-font-display, "Hanken Grotesk"), system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.site-footer .inside-site-info {
  max-width: 1700px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Compliance row — 18+ + GambleAware logos */
.site-footer .footer-bar {
  width: 100% !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 0 0 24px;
  margin-bottom: 24px;
}
.site-footer .footer-bar .widget {
  margin: 0;
  padding: 0;
  background: transparent;
}
.site-footer .footer-bar .widget img {
  display: block;
  max-height: 40px;
  width: auto;
}
/* 18+ SVG has no intrinsic width — give it explicit dimensions so it renders.
   The Customizer's footer_background_color controls whether the bg is light
   or dark, so we DON'T force a colour filter here (would invisible-out on
   white bg). The SVG's natural black-on-transparent renders fine on both. */
.site-footer .footer-bar .widget img[alt="18+"],
.site-footer .footer-bar .widget img[src*="18.svg"] {
  width: 62px !important;
  height: 40px !important;
  max-height: none !important;
  max-width: none !important;
  object-fit: contain;
}
/* GambleAware logo sized consistently with 18+ */
.site-footer .footer-bar img[alt*="GambleAware"],
.site-footer .footer-bar img[src*="gamble-aware"] {
  height: 28px !important;
  width: auto !important;
  max-height: none !important;
  max-width: 200px !important;
}

/* GP footer widgets area — element is `<div id="footer-widgets">`, NOT inside
   `.site-footer`. Target it directly. Currently it's a single widget area
   containing one big menu list; flow the list into multiple columns on
   wider viewports so it doesn't read as a single tall stack. */
#footer-widgets,
.site.footer-widgets {
  background: var(--ccs-primary, #310058) !important;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--ccs-font-display, "Hanken Grotesk"), system-ui, sans-serif;
  padding: 48px 0 24px;
}
#footer-widgets .inside-footer-widgets,
#footer-widgets .footer-widgets-container {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 24px;
}
#footer-widgets .footer-widget-1,
#footer-widgets [class*="footer-widget-"] {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
}
#footer-widgets .widget {
  background: transparent !important;
  margin: 0;
  padding: 0;
}
#footer-widgets .widget-title,
#footer-widgets h2,
#footer-widgets h3,
#footer-widgets h4 {
  font-family: var(--ccs-font-label, "Inter"), sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #fff !important;
  margin: 0 0 16px 0 !important;
  line-height: 1.3 !important;
}
#footer-widgets a {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  padding: 6px 0;
}
#footer-widgets a:hover {
  color: #fff !important;
  text-decoration: underline !important;
}
#footer-widgets ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
#footer-widgets ul li {
  margin: 0 !important;
  padding: 0 !important;
  break-inside: avoid;
}
/* The single widget contains 13+ menu items in one <ul>. Flow into columns on
   wider viewports so it reads as a balanced grid, not a single tall stack. */
@media (min-width: 600px) {
  #footer-widgets .widget > ul,
  #footer-widgets .menu {
    column-count: 2;
    column-gap: 32px;
  }
}
@media (min-width: 900px) {
  #footer-widgets .widget > ul,
  #footer-widgets .menu {
    column-count: 3;
  }
}
@media (min-width: 1200px) {
  #footer-widgets .widget > ul,
  #footer-widgets .menu {
    column-count: 4;
  }
}

/* Hide the WP comments box on V2 listing pages — it's not appropriate for
   category/listing pages (only used on guides / news posts). */
body.ccs-rev-fullwidth #comments,
body.ccs-rev-fullwidth .comments-area {
  display: none !important;
}

/* Copyright + disclaimer block — typography only, no color overrides.
   Customizer's footer_text_color / footer_link_color drive the actual
   colours so users can switch between dark/light footer designs. */
.site-footer .copyright-bar {
  font-family: var(--ccs-font-label, "Inter"), system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.65;
  text-align: left;
  padding: 0;
  margin: 0;
}
.site-footer .copyright-bar p {
  margin: 0 0 12px 0;
}
.site-footer .copyright-bar p:last-child { margin-bottom: 0; }
.site-footer .copyright-bar strong {
  font-weight: 700;
}
.site-footer .copyright-bar a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer .copyright-bar a:hover {
  text-decoration: none;
}

/* Compliance / nav link rows — typography + layout only, colours from
   Customizer's footer_text_color / footer_link_color. */
.site-footer .copyright-bar .ccs-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 16px 0 0;
  margin: 16px 0 0;
  border-top: 1px solid currentColor;
  border-top-color: rgba(0, 0, 0, 0.12);
  font-size: 12px;
}
.site-footer .copyright-bar .ccs-foot-links a {
  text-decoration: none;
}
.site-footer .copyright-bar .ccs-foot-links a:hover {
  text-decoration: underline;
}
.site-footer .copyright-bar .ccs-foot-meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 11px;
  opacity: 0.7;
}

/* Widen the inside info on wider viewports to match the V2 container */
@media (min-width: 1024px) {
  .site-footer .inside-site-info { padding: 48px 32px; }
  .site-footer .footer-bar { gap: 32px; }
}
@media (max-width: 768px) {
  .site-footer .inside-site-info { padding: 32px 16px; }
  .site-footer .footer-bar { padding-bottom: 20px; margin-bottom: 20px; gap: 16px; }
}