/* CasinoQuill RG disclaimers (kept subtle and theme-friendly) */

.cq-rg-adline{
  margin-top:.55rem;
  font-size:12px;
  line-height:1.25;
  opacity:.85;
  text-align:center;
}

/* Comparison table rows */
.cq-rg-adline--row{
  grid-column: 1 / -1;
  margin-top:.35rem;
}

/* Generic card variants */
.cq-rg-adline--card{ margin-top:.55rem; }

/* Homepage selected casinos panel */
.cq-rg-adline--picks{
  margin-top:20px; /* add a clear blank line after the button */
  font-size:11px;
  opacity:.8;
}

/* Review cards (homepage + related + other grids) */
.cq-rg-adline--latest{
  margin-top:10px;
  font-size:11px;
  opacity:.82;
}

/* Top lists “Top picks” cards */
.cq-rg-adline--top-pick{
  margin-top:12px;
  font-size:11px;
  opacity:.82;
}

/* Sticky bar */
.cq-rg-adline--sticky{
  margin:0;
  opacity:.8;
  font-size:11px;
  width:auto;
}

.cq-rg-tag{ font-weight:600; }
.cq-rg-sep{ opacity:.75; padding:0 .35rem; }
.cq-rg-link{ text-decoration:underline; text-underline-offset:2px; }

/* Topbar: keep on ONE line (desktop) and reduce extra space */
.cq-rg-topbar{ font-size:12px; opacity:.9; display:inline; margin-left:0; }
.bm-topbar-note .cq-rg-link{ color:inherit; }

/* When RG topbar injection is active, keep note centered and show the original right link. */
.cq-rg-on .bm-topbar-inner{ position:relative; justify-content:center; }
.cq-rg-on .bm-topbar-right{ display:flex !important; align-items:center; }
.cq-rg-on .bm-topbar-note{ text-align:center; }
@media(min-width:900px){
  /* Anchor the original green "Responsible Gaming" link to the right without shifting the centered note. */
  .cq-rg-on .bm-topbar-right{
    display:flex !important;
    align-items:center;
    position:absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);
  }
  .cq-rg-on .bm-topbar-note{ white-space:nowrap; }
}

/* Mobile: allow the topbar note to wrap onto 2+ lines (prevents clipping). */
@media(max-width:899px){
  .cq-rg-on .bm-topbar-note{
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
    line-height:1.25;
    display:block;
    width:100%;
    box-sizing:border-box;
  }
  .cq-rg-on .bm-topbar-inner{
    overflow:visible !important;
    padding-left:12px !important;
    padding-right:12px !important;
    box-sizing:border-box;
  }
  /* Show the original green RG link below the note on mobile */
  .cq-rg-on .bm-topbar-inner{
    flex-wrap:wrap !important;
    row-gap:4px;
  }
  .cq-rg-on .bm-topbar-right{
    flex:0 0 100%;
    width:100%;
    justify-content:center;
    margin-top:2px;
  }
}

/* Review cards: keep RG line anchored at the bottom even if the bonus line is short. */
.bm-review-card{ display:flex; flex-direction:column; height:100%; }
.bm-review-card .bm-card-link{ display:flex; flex-direction:column; flex:1 1 auto; height:100%; }
.bm-review-card .bm-card-body{ flex:1 1 auto; }
.bm-review-card .bm-card-foot{ margin-top:auto; }

/* For “You might also like” / latest review grids, force the RG line to sit at the very bottom.
   (Some grids don't stretch items equally, so flex-based `margin-top:auto` isn't always enough.) */
.cq-rg-on .bm-review-card{ position:relative; padding-bottom:38px; }
.cq-rg-on .bm-review-card > .cq-rg-adline--latest{
  position:absolute;
  left:0; right:0;
  bottom:12px;
  margin:0;
  padding:0;
}

/* Top lists: keep actions + RG line at the bottom of the pick card */
.cql-top-pick{ display:flex; flex-direction:column; }
.cql-top-pick .cql-top-pick-actions{ margin-top:auto; }
.cql-top-pick > .cq-rg-adline{ margin-top:12px; }

/* Sticky bar layout: left | centered RG | right CTA */
.bm-review-stickybar.cq-rg-sticky-mode{
  display:grid !important;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  column-gap:14px;
  padding-top:10px !important;
  padding-bottom:10px !important;
}
.bm-review-stickybar.cq-rg-sticky-mode .bm-sticky-left{ justify-self:start; }
.bm-review-stickybar.cq-rg-sticky-mode .bm-sticky-right{ justify-self:end; }
.bm-review-stickybar.cq-rg-sticky-mode .cq-rg-adline--sticky{
  justify-self:center;
  text-align:center;
}

/* Footer inline snippet */
.cq-rg-footer{
  font-size:11px;
  opacity:.8;
  white-space:normal;
}

/* Center the copyright line so it matches the centered topbar style */
.cq-rg-on .bm-footer-bottom,
.cq-rg-on .bm-footer-bottom p{
  text-align:center;
}
.cq-rg-on .bm-footer-bottom p{
  margin-left:auto;
  margin-right:auto;
}

/* Center the global list disclaimer shown under tables (home + all casinos + lists) */
.cq-rg-on .bm-disclaimer{
  text-align:center;
}


/* Back-compat: if JS adds cq-rg-topbar-mode, keep note centered.
   Show the original green “Responsible Gaming” link on desktop, hide on mobile to avoid crowding. */
.bm-topbar-inner.cq-rg-topbar-mode{ justify-content:center; position:relative; }
.bm-topbar-inner.cq-rg-topbar-mode .bm-topbar-note{ text-align:center; }

@media(min-width:900px){
  .bm-topbar-inner.cq-rg-topbar-mode .bm-topbar-right{
    display:flex !important;
    align-items:center;
    position:absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);
  }
  .bm-topbar-inner.cq-rg-topbar-mode .bm-topbar-note{ white-space:nowrap; }
}

@media(max-width:899px){
  .bm-topbar-inner.cq-rg-topbar-mode{ flex-wrap:wrap !important; row-gap:4px; }
  .bm-topbar-inner.cq-rg-topbar-mode .bm-topbar-right{
    display:flex !important;
    flex:0 0 100%;
    width:100%;
    justify-content:center;
    margin-top:2px;
  }
}
