/**
 * Bonus Cards (Hub) — cdh-client/bonus-cards. Scoped .cdhc-bc.
 * Se încarcă DOAR pe paginile care conțin blocul (style handle pe bloc).
 * Fără fonturi importate — moștenește tipografia site-ului.
 */
.cdhc-bc {
  --bc-o: #F36620;
  --bc-od: #D55515;
  --bc-ink: #203540;
  --bc-mut: #59737F;
  --bc-line: #E3E9EC;
  --bc-soft: #F8FAFB;
  --bc-green: #067434;
  --bc-green-bg: #E6F5EC;
  --bc-navy: #26404C;
  margin: 0 0 24px;
}
.cdhc-bc *, .cdhc-bc *::before, .cdhc-bc *::after { box-sizing: border-box; }

.cdhc-bc__list { display: flex; flex-direction: column; gap: 12px; }
/* Container query pe WRAPPER (un element nu se poate interoga singur). */
.cdhc-bc__item { container-type: inline-size; }

/* Layout „tichet": main (rând 1) + fapte 2×2 (rând 2) în stânga; coloana CTA
   în dreapta, despărțită de un separator punctat cu decupaje (cupon detașabil);
   contur ferm 1.5px + bandă portocalie sus; „Detalii bonus" jos, full-width. */
.cdhc-bc__card {
  position: relative;
  overflow: hidden; /* taie banda pe colțuri + decupajele (semicercuri) */
  display: grid;
  grid-template-columns: 1fr 216px;
  gap: 0;
  background: #fff;
  border: 1.5px solid #D6DEE2;
  border-radius: 14px;
  padding: 15px 16px 0;
  box-shadow: 0 4px 14px rgba(32, 53, 64, .07);
  align-items: start;
}
/* Banda portocalie de sus — tăiată de border-radius prin overflow:hidden */
.cdhc-bc__card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--bc-o); z-index: 1;
}
.cdhc-bc__main { grid-column: 1; grid-row: 1; padding-right: 18px; }
.cdhc-bc__more { grid-column: 1 / -1; grid-row: 3; }


/* ── Header: logo + tip (text colorat, fără fundal) + badge-uri ── */
.cdhc-bc__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.cdhc-bc__logo {
  width: 70px; height: 40px; object-fit: contain;
  border-radius: 8px; background: #12212B; padding: 6px;
}
.cdhc-bc__type {
  font-size: 12px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--bc-od); line-height: 1.4;
}
.cdhc-bc__type--g { color: var(--bc-green); }
.cdhc-bc__type--n { color: var(--bc-navy); }
.cdhc-bc__type--r { color: #C92A2A; } /* VIP */

/* Spațiere mai aerisită între cardurile aceluiași cazinou. */
.cdhc-bc__list { display: flex; flex-direction: column; gap: 30px; }

/* Tag-uri categorie (vertical: casino, sport, loto…) — pill outline discret,
   pe același rând cu tipul bonusului. SVG-ul moștenește culoarea textului. */
.cdhc-bc__cat {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #5F7683; border: 1px solid #D6DEE2; border-radius: 999px;
  padding: 2px 9px; line-height: 1.5; background: #fff; white-space: nowrap;
}
.cdhc-bc__cat svg { flex: none; }

/* flex:1 + min-width:0 — containerul de badge-uri ocupă spațiul rămas pe rândul 1
   (aliniat dreapta) în loc să cadă întreg pe rândul 2 pe mobil; badge-urile se
   înfășoară ÎN INTERIORUL lui doar când chiar nu mai încap. */
.cdhc-bc__badges { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
.cdhc-bc__badge {
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 10px; line-height: 1.4;
  color: var(--bc-mut); background: #EEF3F5;
}
.cdhc-bc__badge--rec     { color: #fff; background: var(--bc-o); }
.cdhc-bc__badge--excl    { color: #fff; background: #1C2B33; }
.cdhc-bc__badge--norulaj { color: var(--bc-green); background: var(--bc-green-bg); }
.cdhc-bc__badge--kyc     { color: #1A5B8A; background: #E8F2FA; }
.cdhc-bc__badge--code    { color: var(--bc-navy); background: #EEF3F5; }

.cdhc-bc__headline { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.3; color: var(--bc-ink); }
.cdhc-bc__summary  { margin: 0; font-size: 14px; line-height: 1.6; color: var(--bc-mut); }

/* ── Fapte: grilă 2×2 sub titlu, în coloana stângă ── */
.cdhc-bc__band { grid-column: 1; grid-row: 2; padding: 9px 20px 14px 0; min-width: 0; }
.cdhc-bc__facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bc-soft);
  border: 1px solid var(--bc-line); border-radius: 10px;
  overflow: hidden;
}
.cdhc-bc__facts li {
  display: flex; flex-direction: column; gap: 1px;
  padding: 7px 12px; margin: 0; min-width: 0;
}
.cdhc-bc__facts li::before { content: none; }
.cdhc-bc__facts li:nth-child(even) { border-left: 1px solid var(--bc-line); }
.cdhc-bc__facts li:nth-child(n+3) { border-top: 1px solid var(--bc-line); }
.cdhc-bc__facts li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.cdhc-bc__facts span {
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--bc-mut); overflow-wrap: break-word;
}
.cdhc-bc__facts b { font-size: 14.5px; font-weight: 800; color: var(--bc-ink); overflow-wrap: break-word; }
.cdhc-bc__facts b.g { color: var(--bc-green); }

/* ── Coloana din dreapta: cod + CTA — separator PUNCTAT cu decupaje sus/jos
      (senzația de cupon detașabil), conținut centrat vertical ── */
.cdhc-bc__side {
  grid-column: 2; grid-row: 1 / 3; align-self: stretch; position: relative;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  border-left: 2px dashed #D6DEE2;
  margin: -15px 0 0;
  padding: 15px 0 15px 20px;
}
.cdhc-bc__side::before,
.cdhc-bc__side::after {
  content: ""; position: absolute; left: -9px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; border: 1.5px solid #D6DEE2; z-index: 2;
}
.cdhc-bc__side::before { top: -8px; }
.cdhc-bc__side::after  { bottom: -8px; }
.cdhc-bc__code {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  border: 1.5px dashed #C9D4D9; background: #fff;
  border-radius: 10px; padding: 10px; text-align: center;
}
.cdhc-bc__code-k {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--bc-mut);
}
.cdhc-bc__code-v { display: block; font-size: 15px; font-weight: 800; letter-spacing: .05em; color: var(--bc-ink); }
/* V3: restul codurilor (după primul, care are copy) pe un rând secundar discret. */
.cdhc-bc__code-rest { margin: 4px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--bc-mut); overflow-wrap: break-word; }
.cdhc-bc__copy {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; border: 1px solid var(--bc-line); background: #fff;
  color: var(--bc-ink); font-size: 13px; font-weight: 700; border-radius: 8px;
  padding: 7px 12px; cursor: pointer; white-space: nowrap;
}
.cdhc-bc__copy:hover { border-color: #C9D4D9; background: var(--bc-soft); }
.cdhc-bc__copy-idle, .cdhc-bc__copy-ok { display: inline-flex; align-items: center; gap: 6px; }
.cdhc-bc__copy-ok { display: none; color: var(--bc-green); }
.cdhc-bc__copy.is-copied .cdhc-bc__copy-idle { display: none; }
.cdhc-bc__copy.is-copied .cdhc-bc__copy-ok   { display: inline-flex; }
.cdhc-bc__copy.is-copied { border-color: #ABEDC7; background: var(--bc-green-bg); }

.cdhc-bc__cta {
  display: flex; align-items: center; justify-content: center; min-height: 46px;
  background: var(--bc-o); color: #fff !important; font-size: 15px; font-weight: 800;
  border-radius: 10px; text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(243, 102, 32, .3);
  transition: background .15s ease;
}
.cdhc-bc__cta:hover { background: var(--bc-od); color: #fff; }
.cdhc-bc__legal { margin: 0; font-size: 11px; color: var(--bc-mut); text-align: center; }

/* ── Acordeon (details nativ) — trigger centrat pe toată lățimea ── */
.cdhc-bc__more { grid-column: 1 / -1; border-top: 1px solid var(--bc-line); margin: 0 -16px; }
.cdhc-bc__more summary {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  list-style: none; cursor: pointer;
  font-size: 14px; font-weight: 700; color: var(--bc-navy);
  padding: 9px 16px;
}
.cdhc-bc__more summary:hover { color: var(--bc-ink); }
.cdhc-bc__more summary::-webkit-details-marker { display: none; }
.cdhc-bc__more summary::marker { content: none; }
.cdhc-bc__chev { transition: transform .18s ease; }
.cdhc-bc__more[open] .cdhc-bc__chev { transform: rotate(180deg); }
.cdhc-bc__more-in { padding: 2px 16px 14px; display: flex; flex-direction: column; gap: 14px; }
.cdhc-bc__more-in .cdhc-bc__summary { min-height: 0; margin: 0; }
.cdhc-bc__more-in .cdhc-bc__facts { max-width: none; }

/* T&C complet — sub-acordeon în „Detalii bonus" (aceleași valori ca pe ND cards). */
.cdhc-bc__terms { border-top: 1px solid rgba(0, 0, 0, .08); padding-top: 6px; font-size: 11px; }
.cdhc-bc__terms summary {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  list-style: none; cursor: pointer;
  font-size: 12.5px; font-weight: 700; padding: 4px 0; opacity: .8;
}
.cdhc-bc__terms summary:hover { opacity: 1; }
.cdhc-bc__terms summary::-webkit-details-marker { display: none; }
.cdhc-bc__terms summary::marker { content: none; }
.cdhc-bc__terms > summary .cdhc-bc__chev { transition: transform .18s ease; }
.cdhc-bc__terms[open] > summary .cdhc-bc__chev { transform: rotate(180deg); }
.cdhc-bc__terms-in { padding: 6px 0 4px; font-size: 12px; line-height: 1.6; opacity: .85; text-align: left; }
.cdhc-bc__terms-in p { margin: 0 0 6px; }
.cdhc-bc__terms-in ul { list-style: disc; }
.cdhc-bc__terms-in ol { list-style: decimal; }
.cdhc-bc__terms-in ul, .cdhc-bc__terms-in ol { margin: 0 0 6px; padding-left: 22px; }
.cdhc-bc__terms-in li { margin: 0; padding: 0; display: list-item; text-align: left; font-size: 14px; }
.cdhc-bc__terms-in li::before { content: none; }
.cdhc-bc__terms-in li::marker { color: currentColor; }

.cdhc-bc__blk-t {
  margin: 0 0 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--bc-mut);
}
.cdhc-bc__dl { margin: 0; display: flex; flex-direction: column; }
.cdhc-bc__dl > div {
  display: flex; gap: 12px; font-size: 13.5px; line-height: 1.5;
  padding: 7px 0; border-bottom: 1px solid #EEF2F4;
}
.cdhc-bc__dl > div:last-child { border-bottom: none; }
.cdhc-bc__dl dt { flex: none; width: 148px; color: var(--bc-mut); font-weight: 500; }
.cdhc-bc__dl dd { margin: 0; color: var(--bc-ink); font-weight: 600; }
.cdhc-bc__foot { display: flex; justify-content: flex-end; align-items: center; }
.cdhc-bc__foot .cdhc-bc__legal { text-align: right; }

/* Acordeonul în 2 coloane doar când e loc. */
@container (min-width: 620px) {
  .cdhc-bc__more-in { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 36px; }
  .cdhc-bc__more-in .cdhc-bc__summary, .cdhc-bc__more-in .cdhc-bc__foot,
  .cdhc-bc__more-in .cdhc-bc__facts, .cdhc-bc__more-in .cdhc-bc__terms { grid-column: 1 / -1; }
}

/* ── Îngust (mobil / sidebar): o coloană — titlu, fapte 2×2, apoi CTA ── */
@container (max-width: 560px) {
  .cdhc-bc__card { grid-template-columns: 1fr; padding: 16px 16px 0; gap: 4px; }
  .cdhc-bc__main, .cdhc-bc__side, .cdhc-bc__band, .cdhc-bc__more { grid-column: 1; grid-row: auto; }
  .cdhc-bc__main { order: 1; padding-right: 0; }
  .cdhc-bc__band { order: 2; padding: 12px 0 14px; }
  .cdhc-bc__side { order: 3; margin: 0; padding: 0 0 14px; border-left: none; }
  .cdhc-bc__side::before, .cdhc-bc__side::after { display: none; }
  .cdhc-bc__side > .cdhc-bc__legal { display: none; }
  .cdhc-bc__more { order: 4; }
  /* Badge-urile rămân pe rândul 1 (dreapta) cât timp încap; fostul width:100%
     le arunca mereu pe rândul 2 pe mobil, chiar cu spațiu liber în dreapta. */
  .cdhc-bc__headline { font-size: 18px; }
  .cdhc-bc__cta { min-height: 48px; }
  .cdhc-bc__more { margin: 0 -16px; }
  .cdhc-bc__more-in { padding: 4px 16px 16px; }
  .cdhc-bc__dl > div { flex-direction: column; gap: 1px; }
  .cdhc-bc__dl dt { width: auto; }
}

/* ── Accesibilitate ── */
.cdhc-bc__more summary:focus-visible,
.cdhc-bc__copy:focus-visible,
.cdhc-bc__cta:focus-visible {
  outline: 2px solid #2F80ED; outline-offset: 2px; border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
  .cdhc-bc__chev, .cdhc-bc__cta { transition: none; }
}
