/* SEO content overlay — must match donor theme, high contrast, clear hierarchy */

.cf-home-content,
.cf-text-page {
  padding: 1.25rem 1rem 2rem;
  max-width: 960px;
  margin: 0 auto;
  color: rgb(var(--b-sc, var(--neutral, 255, 255, 255)));
}

.cf-home-content h2,
.cf-home-content h3,
.cf-text-page h1,
.cf-text-page h2,
.cf-text-page h3 {
  margin: 0 0 0.75rem;
  line-height: 1.3;
  color: rgb(var(--b-sc, var(--neutral, 255, 255, 255)));
}

.cf-home-content h2,
.cf-text-page h1,
.cf-text-page h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-top: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgb(var(--brand, 22, 199, 46));
}

.cf-home-content h2:first-child,
.cf-home-content .cf-promo h2 {
  margin-top: 0;
}

.cf-home-content h3,
.cf-text-page h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: 1rem;
  color: rgb(var(--oc-1, var(--b-sc, 255, 255, 255)));
}

.cf-home-content p,
.cf-text-page p,
.cf-text-page li {
  margin: 0 0 1rem;
  line-height: 1.65;
  color: rgb(var(--b-sc, var(--neutral, 255, 255, 255)));
}

.cf-promo {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
  background: rgba(var(--brand, 22, 199, 46), 0.12);
  border: 1px solid rgba(var(--brand, 22, 199, 46), 0.35);
}

.cf-promo p {
  opacity: 0.95;
}

.cf-promo-cta {
  margin-top: 1rem;
  margin-bottom: 0;
}

.cf-home-cta {
  margin: 1.25rem 0 1.75rem;
  text-align: center;
}

.cf-article {
  padding: 0.25rem 0 0;
}

.cf-footer-about {
  padding: 1rem 1.25rem 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgb(var(--b-sc, var(--neutral, 255, 255, 255)));
  opacity: 0.92;
}

.cf-text-page {
  min-height: 40vh;
  padding: 1.25rem 1rem 2.5rem;
}

#root .cf-home-content,
#root .cf-home-content h2,
#root .cf-home-content h3,
#root .cf-home-content p,
#root .cf-home-content li,
#root .cf-text-page h1,
#root .cf-text-page h2,
#root .cf-text-page h3,
#root .cf-text-page p,
#root .cf-text-page li {
  color: rgb(var(--b-sc, var(--neutral, 255, 255, 255)));
}

.cf-home-content ol,
.cf-home-content ul,
.cf-text-page ol,
.cf-text-page ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.cf-home-content table,
.cf-text-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
}

.cf-home-content th,
.cf-home-content td,
.cf-text-page th,
.cf-text-page td {
  padding: 0.625rem 0.75rem;
  border: 1px solid rgba(var(--b-sc, 255, 255, 255), 0.2);
  text-align: left;
  vertical-align: top;
  color: rgb(var(--b-sc, var(--neutral, 255, 255, 255)));
}

.cf-home-content th,
.cf-text-page th {
  background: rgba(var(--brand, 22, 199, 46), 0.18);
  font-weight: 600;
}

.cf-home-content tbody tr:nth-child(even),
.cf-text-page tbody tr:nth-child(even) {
  background: rgba(var(--b-sc, 255, 255, 255), 0.04);
}

[class$="-cta-btn"] {
  /* Base fallback; cta-button.css (injected last in head) provides the full button look. */
  display: inline-block;
  text-decoration: none;
}

[class$="-cta-btn"]:hover {
  text-decoration: none;
}

/* SPA donors (mezzo.bet) — SEO block below casino grid, above native footer */
app-root .cf-home-content,
body > .cf-home-content {
  display: block;
  clear: both;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  background: rgb(19, 23, 32);
  color: #fff;
  margin: 0;
  padding: 1.5rem 5%;
}

app-root .cf-home-content > .cf-promo,
app-root .cf-home-content > .cf-article,
body > .cf-home-content > .cf-promo,
body > .cf-home-content > .cf-article {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

app-root .cf-home-content h2,
app-root .cf-home-content h3,
app-root .cf-home-content p,
app-root .cf-home-content li,
app-root .cf-home-content th,
app-root .cf-home-content td {
  color: #fff;
}

.footer_brand-logo img,
footer.footer .footer_brand-logo img {
  max-height: 72px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.footer__social-networks img,
.social-network__link img {
  width: 32px;
  height: 32px;
  max-width: 32px;
  height: auto;
}

/* SPA footer (mezzo.bet): visible by default, toggle on footer-button */
footer.footer .footer-button {
  cursor: pointer;
}

footer.footer footer-new {
  display: block !important;
}

footer.footer.cf-footer-collapsed footer-new {
  display: none !important;
}

/* SPA footer (mezzo.bet): logo left, social centered, legal links on own row */
.desktop.footer {
  position: relative;
  box-sizing: border-box;
}

.desktop.footer .footer__container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 18px 24px 14px 110px !important;
  box-sizing: border-box;
}

.desktop.footer .footer__contact {
  width: 100% !important;
  text-align: center;
}

.desktop.footer .footer__container .footer__menu,
.desktop.footer .footer__container .cf-footer-legal-menu {
  display: block !important;
  width: 100%;
  margin-top: 10px;
}

.desktop.footer .cf-legal-links {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop.footer .cf-legal-links .nav-second__item {
  margin-right: 0 !important;
}

.desktop.footer .cf-legal-links .nav-second__link {
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.desktop.footer .footer_brand-logo {
  z-index: 1;
}

/* Text pages inside SPA chrome shell (match home casino-main area) */
.cf-text-page-shell.casino-main {
  background-color: var(--landing-background, rgb(0, 0, 0));
}

.cf-text-page-shell .casino-content {
  width: 90%;
  margin: 0 5%;
  padding: 1.5rem 0 2rem;
}

.cf-text-page-shell .cf-text-page {
  max-width: 960px;
  margin: 0 auto;
}

.cf-text-page-shell .cf-text-page,
.cf-text-page-shell .cf-text-page h1,
.cf-text-page-shell .cf-text-page h2,
.cf-text-page-shell .cf-text-page h3,
.cf-text-page-shell .cf-text-page p,
.cf-text-page-shell .cf-text-page li,
.cf-text-page-shell .cf-text-page td,
.cf-text-page-shell .cf-text-page th {
  color: #fff;
}

.cf-text-page-shell .cf-text-page h1,
.cf-text-page-shell .cf-text-page h2 {
  border-bottom-color: rgb(var(--wex-ligth-green, 125, 188, 62));
}

.cf-text-page-shell .cf-text-page a:not([class$="-cta-btn"]) {
  color: rgb(var(--wex-ligth-green, 125, 188, 62));
}

@media (max-width: 768px) {
  .cf-home-content,
  .cf-text-page {
    padding: 1rem 12px 2rem !important;
  }

  #root .cf-home-content,
  app-root .cf-home-content {
    padding: 1rem 12px !important;
  }

  .cf-home-content h2,
  .cf-text-page h1,
  .cf-text-page h2 {
    font-size: 1.125rem;
  }

  .cf-home-content table,
  .cf-text-page table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.8125rem;
  }

  .cf-home-cta {
    margin: 1rem 0 1.5rem;
  }
}


/* Affiliate CTA buttons — must override donor SPA link styles */

.cf-home-cta a[class$="-cta-btn"],
.cf-home-cta a.cf-play-now-btn,
.cf-login-cta a[class$="-cta-btn"],
.cf-login-cta a.cf-play-now-btn,
.cf-text-page a[class$="-cta-btn"],
.cf-text-page a.cf-play-now-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  min-width: 220px !important;
  padding: 14px 36px !important;
  margin: 0 auto !important;
  font-family: inherit !important;
  font-size: 1.0625rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  text-align: center !important;
  color: #111111 !important;
  background: linear-gradient(180deg, #b4ef3a 0%, #8ec714 52%, #78b816 100%) !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow:
    0 4px 18px rgba(142, 199, 20, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.35) !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease !important;
}

.cf-home-cta a[class$="-cta-btn"]:hover,
.cf-home-cta a[class$="-cta-btn"]:focus,
.cf-home-cta a.cf-play-now-btn:hover,
.cf-home-cta a.cf-play-now-btn:focus,
.cf-login-cta a[class$="-cta-btn"]:hover,
.cf-login-cta a[class$="-cta-btn"]:focus,
.cf-login-cta a.cf-play-now-btn:hover,
.cf-login-cta a.cf-play-now-btn:focus,
.cf-text-page a[class$="-cta-btn"]:hover,
.cf-text-page a[class$="-cta-btn"]:focus,
.cf-text-page a.cf-play-now-btn:hover,
.cf-text-page a.cf-play-now-btn:focus {
  color: #111111 !important;
  text-decoration: none !important;
  transform: translateY(-2px) !important;
  filter: brightness(1.06) !important;
  box-shadow:
    0 8px 24px rgba(142, 199, 20, 0.62),
    0 3px 8px rgba(0, 0, 0, 0.4) !important;
}

.cf-home-cta a[class$="-cta-btn"]:active,
.cf-home-cta a.cf-play-now-btn:active,
.cf-login-cta a[class$="-cta-btn"]:active,
.cf-login-cta a.cf-play-now-btn:active,
.cf-text-page a[class$="-cta-btn"]:active,
.cf-text-page a.cf-play-now-btn:active {
  transform: translateY(0) !important;
  filter: brightness(0.98) !important;
}

/* BetConstruct theme (--brand on #root) */
#root .cf-home-content .cf-home-cta a[class$="-cta-btn"],
#root .cf-home-content .cf-home-cta a.cf-play-now-btn,
#root .cf-text-page .cf-login-cta a[class$="-cta-btn"],
#root .cf-text-page .cf-login-cta a.cf-play-now-btn,
#root .cf-text-page a[class$="-cta-btn"],
#root .cf-text-page a.cf-play-now-btn {
  color: rgb(var(--brand-sc, 255, 255, 255)) !important;
  background: linear-gradient(
    180deg,
    rgb(40, 220, 72) 0%,
    rgb(var(--brand, 22, 199, 46)) 52%,
    rgb(16, 150, 34) 100%
  ) !important;
  box-shadow:
    0 4px 18px rgba(var(--brand, 22, 199, 46), 0.55),
    0 2px 6px rgba(0, 0, 0, 0.35) !important;
}

#root .cf-home-content .cf-home-cta a[class$="-cta-btn"]:hover,
#root .cf-home-content .cf-home-cta a[class$="-cta-btn"]:focus,
#root .cf-text-page .cf-login-cta a[class$="-cta-btn"]:hover,
#root .cf-text-page .cf-login-cta a[class$="-cta-btn"]:focus,
#root .cf-text-page a[class$="-cta-btn"]:hover,
#root .cf-text-page a[class$="-cta-btn"]:focus {
  color: rgb(var(--brand-sc, 255, 255, 255)) !important;
  box-shadow:
    0 8px 24px rgba(var(--brand, 22, 199, 46), 0.62),
    0 3px 8px rgba(0, 0, 0, 0.4) !important;
}

.cf-home-cta,
.cf-login-cta {
  margin: 1.5rem 0 2rem !important;
  padding: 0.25rem 0 !important;
  text-align: center !important;
}

@media (max-width: 768px) {
  .cf-home-cta a[class$="-cta-btn"],
  .cf-home-cta a.cf-play-now-btn,
  .cf-login-cta a[class$="-cta-btn"],
  .cf-login-cta a.cf-play-now-btn,
  .cf-text-page a[class$="-cta-btn"],
  .cf-text-page a.cf-play-now-btn {
    display: flex !important;
    width: 100% !important;
    max-width: 340px !important;
    min-height: 52px !important;
    font-size: 1.125rem !important;
    padding: 16px 24px !important;
  }
}
