/* =============================================
   Bottom Panel — общие стили для всех плашек
   (apps, bonus, bookmaker)
   ============================================= */

.bottom_panel {
  position: fixed;
  left: 12px;
  bottom: 12px;
  right: 12px;
  display: none;
  grid-template-columns: 45px 1fr 158px;
  align-items: center;
  grid-gap: 8px;
  height: 70px;
  padding: 0 12px;
  border: 1px solid var(--bottom_panel_border);
  color: var(--bottom_panel_text);
  background-color: var(--bottom_panel_bg);
  border-radius: var(--theme-rounded-images);
  z-index: 10;
  transition: 0.5s;
}

/* — иконка (apps, bonus) */
.bottom_panel .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: var(--theme-rounded-images);
  border: 1px solid var(--theme-color-accent);
}
.bottom_panel .icon svg {
  color: var(--theme-color-accent);
}

/* — текстовый контент (apps, bonus) */
.bottom_panel .content {
  max-height: 60px;
  overflow: hidden;
}
.bottom_panel .title {
  font-size: 10px;
  font-weight: 400;
}
.bottom_panel .description {
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
}

/* — кнопка (apps, bonus) */
.bottom_panel button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: auto;
}
.bottom_panel button:after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}
.bottom_panel button > span {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: normal;
  font-size: 12px;
  font-weight: 700;
}
.bottom_panel button > span > span:nth-child(1) {
  font-size: 10px;
  font-weight: 400;
}

/* — показ по скроллу на мобильных (apps, bonus) */
@media (max-width: 991px) {
  .bottom_panel {
    display: grid;
    transform: translateY(100px);
  }
  .bottom_panel.show {
    transform: translateY(0px);
  }
}

/* =============================================
   Плашка «Букмекер» — desktop
   Горизонтальный бар внизу экрана:
   [trophy] [logo] [name+stars] [bonus+desc] [button] [×]
   ============================================= */

.bottom_panel.bookmaker {
  display: flex;
  align-items: center;
  gap: 16px;
  height: auto;
  min-height: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0;
  border: none;
  border-top: 2px solid
    var(--theme-buttons-accent-bg, var(--bottom_panel_border));
  background-color: var(--theme-footer-bg, var(--bottom_panel_bg));
  color: var(--theme-footer-text-color, var(--bottom_panel_text));
  z-index: 999;
  transform: translateY(calc(100% + 14px));
}


.bottom_panel.bookmaker.show {
  transform: none !important;
  z-index: 999;
}


/* container внутри bookmaker — grid-раскладка */
.bottom_panel.bookmaker > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  flex: 1;
  position: relative;
}

.bottom_panel.bookmaker .panel_bk_content {
  display: flex;
  align-items: center;
  gap: 16px;
}
/* — лого БК */
.bottom_panel.bookmaker .panel_bk_logo {
  width: 192px;
  height: 110px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.bottom_panel.bookmaker .panel_bk_logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* — имя + рейтинг */
.bottom_panel.bookmaker .panel_bk_info {
  min-width: 0;
}
.bottom_panel.bookmaker .panel_bk_name {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.bottom_panel.bookmaker .panel_bk_rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  margin-top: 2px;
}
.bottom_panel.bookmaker .panel_bk_rating svg,
.bottom_panel.bookmaker .panel_bk_rating img {
  width: 14px;
  height: 14px;
}
.bottom_panel.bookmaker .panel_bk_rating span {
  opacity: 0.7;
}

/* — бонус */
.bottom_panel.bookmaker .panel_bk_bonus {
  text-align: center;
  min-width: 0;
}
.bottom_panel.bookmaker .panel_bk_bonus_value {
  font-size: 18px;
  font-weight: 700;
}
.bottom_panel.bookmaker .panel_bk_bonus_desc {
  font-size: 12px;
  opacity: 0.7;
}

/* — кнопка */
.bottom_panel.bookmaker .btn {
  white-space: nowrap;
  min-width: auto;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 60px;
}

/* — крестик закрытия */
.bottom_panel.bookmaker .panel_bk_close {
  position: absolute;
  top: 0%;
  right: 32px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: var(--theme-buttons-accent-bg, #555);
  border-radius: 50%;
}
.bottom_panel.bookmaker .panel_bk_close:after {
  display: none;
}
.bottom_panel.bookmaker .panel_bk_close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* =============================================
   Плашка «Букмекер» — mobile (<= 991px)
   Карточка-попап по центру:
   [×] [trophy] [logo+name+stars] [bonus] [button]
   ============================================= */

@media (max-width: 991px) {
  .bottom_panel.bookmaker .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .bottom_panel.bookmaker .panel_bk_logo {
    width: 80px;
    height: 65px;
  }

  .bottom_panel.bookmaker .panel_bk_info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .bottom_panel.bookmaker .panel_bk_name {
    font-size: 18px;
  }

  .bottom_panel.bookmaker .panel_bk_bonus_value {
    font-size: 16px;
    color: var(--theme-buttons-accent-bg, var(--theme-color-accent));
  }

  .bottom_panel.bookmaker .panel_bk_bonus_desc {
    font-size: 13px;
  }

  .bottom_panel.bookmaker .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
  }

  .bottom_panel.bookmaker .panel_bk_close {
    position: absolute;
    transform: translateY(-50%);
    top: 0px;
    right: 15px;
    width: 28px;
    height: 28px;
    background: var(--theme-buttons-accent-bg, #555);
  }
}
