.bdgmbtb-badge {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--bdgmbtb-offset, 16px));
  z-index: 9992;
  max-width: calc(100vw - 24px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
  font-family: inherit;
  pointer-events: none;
}

.bdgmbtb-badge[data-bdgmbtb-ready="1"] {
  opacity: 1;
  transform: translateY(0);
}

.bdgmbtb-badge--right { right: 12px; }
.bdgmbtb-badge--left { left: 12px; }
.bdgmbtb-badge--hidden { display: none !important; }

.bdgmbtb-badge__shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  pointer-events: auto;
}

.bdgmbtb-badge__link,
.bdgmbtb-badge__content {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 56px;
  min-width: 126px;
  max-width: min(148px, calc(100vw - 24px));
  padding: 9px 12px 8px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255,255,255,.98);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
  color: var(--bdgmbtb-text, #111827);
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bdgmbtb-badge__link:hover,
.bdgmbtb-badge__link:focus {
  color: var(--bdgmbtb-text, #111827);
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .10);
  outline: none;
}

.bdgmbtb-badge__rows {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

.bdgmbtb-badge__row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.bdgmbtb-badge__row--top {
  gap: 6px;
}

.bdgmbtb-badge__row--bottom {
  gap: 5px;
}

.bdgmbtb-badge__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.bdgmbtb-badge__logo img {
  display: block;
  width: 16px;
  height: 16px;
}

.bdgmbtb-badge__stars {
  position: relative;
  display: inline-block;
  line-height: 1;
  font-size: 13px;
  letter-spacing: 1px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.bdgmbtb-badge__stars-track { color: #d7dce3; }

.bdgmbtb-badge__stars-fill {
  position: absolute;
  inset: 0 auto auto 0;
  overflow: hidden;
  color: #f59e0b;
}

.bdgmbtb-badge__score {
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  color: #111827;
}

.bdgmbtb-badge__separator {
  font-size: 10px;
  line-height: 1;
  color: rgba(15, 23, 42, .3);
  transform: translateY(1px);
}

.bdgmbtb-badge__reviews {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: rgba(17, 24, 39, .82);
}

.bdgmbtb-badge__close {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 2;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 12px rgba(15, 23, 42, .08);
  color: rgba(15, 23, 42, .42);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.96);
  transition: opacity .18s ease, transform .18s ease, color .18s ease;
}

.bdgmbtb-badge__shell:hover .bdgmbtb-badge__close,
.bdgmbtb-badge__shell:focus-within .bdgmbtb-badge__close {
  opacity: .88;
  transform: scale(1);
}

.bdgmbtb-badge__close:hover,
.bdgmbtb-badge__close:focus {
  color: #0f172a;
  opacity: 1;
  transform: scale(1.04);
  outline: none;
}

@media (max-width: 767px) {
  .bdgmbtb-badge {
    bottom: calc(env(safe-area-inset-bottom, 0px) + var(--bdgmbtb-offset, 16px));
    max-width: calc(100vw - 16px);
  }

  .bdgmbtb-badge--right { right: 8px; }
  .bdgmbtb-badge--left { left: 8px; }

  .bdgmbtb-badge__link,
  .bdgmbtb-badge__content {
    min-height: 54px;
    min-width: 120px;
    max-width: min(140px, calc(100vw - 16px));
    padding: 8px 11px 7px;
    gap: 5px;
    border-radius: 15px;
  }

  .bdgmbtb-badge__rows { gap: 4px; }
  .bdgmbtb-badge__row--top { gap: 5px; }
  .bdgmbtb-badge__row--bottom { gap: 4px; }
  .bdgmbtb-badge__stars { font-size: 12px; letter-spacing: .95px; }
  .bdgmbtb-badge__score { font-size: 19px; }
  .bdgmbtb-badge__reviews { font-size: 11px; }
  .bdgmbtb-badge__close { opacity: .68; }
  .bdgmbtb-badge--hide-mobile { display: none !important; }
}
