.bety-widget {
  position: fixed;
  right: var(--bety-right-desktop, 260px);
  bottom: var(--bety-bottom, 24px);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: inherit;
}

.bety-bubble {
  position: relative;
  width: min(290px, calc(100vw - 40px));
  padding: 14px 16px 13px;
  border-radius: 16px;
  background: var(--bety-bg, #fff);
  color: var(--bety-text, #101828);
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(16, 24, 40, .18);
  border: 1px solid rgba(16, 24, 40, .08);
  opacity: 0;
  transform: translateY(8px) scale(.98);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.bety-widget.is-visible .bety-bubble {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.bety-bubble::after {
  content: "";
  position: absolute;
  right: 30px;
  bottom: -10px;
  width: 20px;
  height: 20px;
  background: var(--bety-bg, #fff);
  border-right: 1px solid rgba(16, 24, 40, .08);
  border-bottom: 1px solid rgba(16, 24, 40, .08);
  transform: rotate(45deg);
}

.bety-bubble-line,
.bety-bubble strong,
.bety-cta {
  display: block;
}

.bety-bubble-line {
  font-size: 14px;
  line-height: 1.3;
}

.bety-bubble strong {
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
}

.bety-cta {
  margin-top: 8px;
  color: var(--bety-brand, #FF6800);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
}

.bety-avatar-button {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: visible;
  text-decoration: none;
  background: #fff;
  border: 4px solid #fff;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .24);
  transition: transform .2s ease, box-shadow .2s ease;
}

.bety-avatar-button:hover,
.bety-avatar-button:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 34px rgba(16, 24, 40, .28);
}

.bety-avatar-img,
.bety-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.bety-avatar-img {
  display: block;
  object-fit: cover;
}

.bety-avatar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--bety-brand, #FF6800), #ff9a45);
  color: white;
  position: relative;
  font-weight: 900;
}

.bety-letter {
  font-size: 32px;
  line-height: 1;
}

.bety-headset {
  position: absolute;
  font-size: 56px;
  line-height: 1;
  opacity: .22;
  transform: rotate(18deg);
}

.bety-status-dot {
  position: absolute;
  right: 2px;
  bottom: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #22c55e;
  border: 3px solid #fff;
  box-sizing: content-box;
}

@media (max-width: 767px) {
  .bety-widget {
    right: max(var(--bety-right-mobile, 14px), env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .bety-avatar-button {
    width: 66px;
    height: 66px;
  }

  .bety-bubble {
    width: min(270px, calc(100vw - 28px));
  }

  .bety-hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .bety-hide-desktop {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bety-bubble,
  .bety-avatar-button {
    transition: none;
  }
}
