/* ========= MOSTBET SLOT CARDS (preview + table) ========= */

:root{
  --mb-primary: var(--e-global-color-primary, #ffb000);
  --mb-text: var(--e-global-color-text, #ffffff);
}

/* card wrapper */
.mb-slotcard{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  margin: 18px 0;
}

/* header */
.mb-slotcard__head{
  padding: 14px 16px;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.mb-slotcard__title{
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  color: var(--mb-text);
}
.mb-slotcard__title span{ color: var(--mb-primary); }

/* HERO (preview block ABOVE table) */
.mb-slothero{
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,0));
}

.mb-slothero__img{
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  display:block;
}

/* meta pills (right side) */
.mb-slothero__meta{
  display: grid;
  gap: 10px;
  align-content: start;
}

.mb-slotpill{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.mb-slotpill b{
  color: rgba(255,255,255,.78);
  font-weight: 600;
}

/* table */
.mb-slottable{
  width: 100%;
  border-collapse: collapse;
}

.mb-slottable th,
.mb-slottable td{
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  vertical-align: top;
}

.mb-slottable th{
  width: 34%;
  text-align: left;
  font-weight: 600;
  color: rgba(255,255,255,.86);
}

.mb-slottable td{
  color: rgba(255,255,255,.92);
}

.mb-slottable tr:nth-child(odd) td,
.mb-slottable tr:nth-child(odd) th{
  background: rgba(255,255,255,.02);
}

/* chips */
.mb-chip{
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  margin: 2px 6px 2px 0;
  white-space: nowrap;
}

/* small note under card */
.mb-slotcard__note{
  margin: 0;
  padding: 12px 16px 14px;
  font-size: 13px;
  color: rgba(255,255,255,.72);
}

/* responsive */
@media (max-width: 860px){
  .mb-slothero{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){
  .mb-slottable, .mb-slottable tbody, .mb-slottable tr, .mb-slottable th, .mb-slottable td{
    display: block;
    width: 100%;
  }
  .mb-slottable tr{
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .mb-slottable th{
    padding-bottom: 4px;
    background: transparent !important;
    opacity: .9;
  }
  .mb-slottable td{
    padding-top: 0;
    border-bottom: none;
  }
}

/* ===== FIXES: image rounding + value color + vertical align ===== */

/* 1) Картинка: сильнее скругление + гарантированная обрезка */
.mb-slothero > div:first-child{
  border-radius: 18px;          /* можно 16-22 */
  overflow: hidden;
}
.mb-slothero__img{
  border-radius: 18px;          /* на всякий случай */
  display: block;
}

/* 2) Плашки: выравнивание по вертикали и нормальный line-height */
.mb-slotpill{
  align-items: center;          /* вертикальный центр */
  min-height: 52px;             /* чтобы все плашки были одинаковые */
}

/* 3) Лейблы и значения: лейбл чуть приглушён, значение белое */
.mb-slotpill b{
  color: rgba(255,255,255,.82);
  line-height: 1.2;
}
.mb-slotpill span{
  color: #ffffff;               /* значения белым */
  line-height: 1.2;
  font-weight: 600;
  opacity: 1 !important;        /* если где-то унаследовалась прозрачность */
}

/* если вдруг значения “серые” из-за фильтра/прозрачности у родителя */
.mb-slothero__meta{
  opacity: 1;
  filter: none;
}

/* FIX: guarantee rounded corners for the preview image */
.mb-slothero > div:first-child{
  border-radius: 18px !important;
  overflow: hidden !important;
}

.mb-slothero__img{
  border-radius: 18px !important;
  overflow: hidden;
  display: block;
}

/* если Elementor/тема добавляют img { border-radius:0 } или фильтры */
.mb-slothero img{
  border-radius: 18px !important;
}


/* TOC: не показывать список при загрузке */
.elementor-widget-table-of-contents .elementor-toc__body{
  display:none;
}

/* Показать список только когда виджет раскрыт (когда Elementor добавляет класс) */
.elementor-widget-table-of-contents.elementor-toc--collapsed .elementor-toc__body{
  display:none;
}
.elementor-widget-table-of-contents:not(.elementor-toc--collapsed) .elementor-toc__body{
  display:block;
}
