/*
 * Lišta se souhlasem.
 *
 * Fotka vystupuje nad horní hranu lišty: lišta je position: fixed (což z ní dělá
 * vztažný rámec pro absolutně pozicovaný obrázek) a má overflow: visible, aby ji
 * neořízla; obrázek je posunutý nad hranu o polovinu své výšky a obsah má nahoře
 * odsazení, aby pod ním zbylo prázdné místo.
 *
 * Barvy a tlačítka jsou opsané ze šablony, ne vymyšlené: zelená #2f7955 z color.css,
 * nadpisy #141417, běžný text #7a7b80, Montserrat, rádius 5 px jako .theme-btn.
 *
 * Předpona cb- je schválně — šablona má vlastní utility (p_relative, d_block, fs_15)
 * a Bootstrap k tomu.
 */

.cb-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  width: calc(100% - 40px);
  max-width: 460px;
  padding: 0;
  overflow: visible;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  line-height: 26px;
  color: #7a7b80;
}

.cb-badge {
  position: absolute;
  top: -55px;
  left: 28px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 5px solid #ffffff;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

/* Na nízkém okně by rozbalené kategorie vyrostly až do hlavičky. Roluje obsah, ne lišta —
   ta musí zůstat overflow: visible, jinak by si uřízla fotku. */
.cb-body {
  padding: 70px 24px 24px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.cb-heading {
  margin: 0 0 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  color: #141417;
}

.cb-text {
  margin: 0 0 18px;
}

.cb-text a {
  color: #2f7955;
  text-decoration: underline;
}

.cb-text a:hover {
  color: #141417;
}

.cb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cb-btn {
  flex: 1 1 auto;
  display: inline-block;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* Přijmout a odmítnout musí vypadat stejně — jinak je odmítnutí schované za nábytkem. */
.cb-btn--primary {
  background: #2f7955;
  color: #ffffff;
  border: 1px solid #2f7955;
}

.cb-btn--primary:hover {
  background: #ffffff;
  color: #2f7955;
}

.cb-btn--plain {
  flex: 0 0 auto;
  padding: 12px 8px;
  background: transparent;
  border: 1px solid transparent;
  color: #7a7b80;
  text-decoration: underline;
}

.cb-btn--plain:hover {
  color: #141417;
}

.cb-options {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e5e5e5;
}

.cb-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  line-height: 22px;
  cursor: pointer;
}

.cb-option--locked {
  cursor: default;
  opacity: 0.75;
}

.cb-option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #2f7955;
}

.cb-option strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #141417;
}

.cb-option span {
  font-size: 14px;
}

.cb-options .cb-btn {
  flex: 0 0 auto;
  margin-top: 4px;
}

@media (max-width: 575px) {
  .cb-banner {
    left: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
  }

  .cb-badge {
    width: 84px;
    height: 84px;
    top: -42px;
    left: 20px;
  }

  .cb-body {
    padding: 54px 18px 18px;
  }

  .cb-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cb-btn {
    width: 100%;
  }
}
