/* Play button, breadcrumbs under the header (inc/play.php). Outbound <button> styles: out-buttons.css */

/* home hero: "Choose your casino" + Play */
.cg-hero-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* Play under page headings */
.cg-play-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

#single-info .single__wrapper > .cg-play-wrap {
  grid-column: 1/3;
  margin: 0 0 24px;
}

#casinos-banner .banner__title .cg-play-wrap,
#games-banner .banner__title + .cg-play-wrap {
  margin-bottom: 24px;
}

/* games / provider banners: fixed height with the tabs pinned to the bottom, make room for Play */
#games-banner .banner:has(.cg-play-wrap),
#games-provider-banner .banner:has(.cg-play-wrap) {
  height: 480px;
}

#games-banner .banner__title:has(.cg-play-wrap),
#games-provider-banner .banner__title:has(.cg-play-wrap) {
  margin-top: 0;
  margin-bottom: 70px;
}

/* bonuses page: centred title, the category icons hang 54px above their cards */
#bonuses-banner h2:has(+ .cg-play-wrap) {
  margin-bottom: 0;
}

#bonuses-banner .cg-play-wrap {
  justify-content: center;
  margin: 24px 0 100px;
}

/* breadcrumbs moved out of the hero, hero keeps a small gap under them */
#single-info.cg-bc-out {
  padding-top: 0;
}

@media (width < 993px) {
  .cg-hero-btns {
    justify-content: center;
  }
}

@media (width < 993px) {
  #games-banner .banner__title:has(.cg-play-wrap),
  #games-provider-banner .banner__title:has(.cg-play-wrap) {
    margin: 0;
  }

  #bonuses-banner .cg-play-wrap {
    margin-bottom: 70px;
  }
}

@media (width < 769px) {
  /* picture goes below the title + Play, tabs stay pinned to the bottom */
  #games-banner .banner:has(.cg-play-wrap) {
    height: 660px;
  }

  #games-banner .banner:has(.cg-play-wrap) picture {
    top: 190px;
  }

  /* provider banner has only the select at the bottom, its default height is enough */
  #games-provider-banner .banner:has(.cg-play-wrap) {
    height: 478px;
  }

  .cg-play-wrap,
  .cg-hero-btns {
    width: 100%;
  }

  .cg-play-wrap .btn-lg,
  .cg-hero-btns .btn-lg {
    flex: 0 1 320px;
    width: 100%;
    max-width: 320px;
  }

  .cg-play-wrap {
    justify-content: center;
    margin-top: 16px;
  }
}
