.social-proof-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: min(380px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 15px 42px 15px 15px;
  border: 1px solid rgba(244, 240, 232, .11);
  border-radius: 8px;
  background: rgba(14, 14, 13, .58);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .34);
  color: var(--ink, #f4f0e8);
  font-family: var(--font, var(--body, Inter, system-ui, sans-serif));
  opacity: 0;
  pointer-events: none;
  transform: translateZ(0);
  transition: opacity .4s ease;
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
}

.social-proof-widget.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.social-proof-widget__icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200, 16, 46, .28);
  border-radius: 50%;
  background: rgba(200, 16, 46, .055);
  color: #d51a37;
}

.social-proof-widget__icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-proof-widget__message {
  display: block;
  color: var(--ink, #f4f0e8);
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.social-proof-widget__message a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color .18s ease, text-decoration-color .18s ease;
}

.social-proof-widget__message a:hover,
.social-proof-widget__message a:focus-visible {
  color: var(--ink, #f4f0e8);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(244, 240, 232, .62);
  outline: none;
}

.social-proof-widget__subtitle {
  display: block;
  margin-top: 4px;
  color: rgba(201, 193, 183, .72);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.25;
}

.social-proof-widget__close {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 34px;
  height: 34px;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted, #8d867c);
  cursor: pointer;
  font: inherit;
  font-size: 1.12rem;
  line-height: 1;
  pointer-events: auto;
  touch-action: manipulation;
  transition: color .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.social-proof-widget__close:hover,
.social-proof-widget__close:focus-visible {
  color: var(--ink, #f4f0e8);
  background: transparent;
  outline: none;
}

.social-proof-widget__close:active {
  color: #fff;
}

@media (max-width: 760px) {
  .social-proof-widget {
    right: 14px;
    left: 14px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: auto;
  }

  body.has-mobile-buy .social-proof-widget,
  body:has(.mobile-buy) .social-proof-widget {
    bottom: calc(88px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-proof-widget {
    transition: none;
  }
}
