.acm77-support-widget {
  --acm77-support-blue: #1389f4;
  --acm77-support-cyan: #25d6ff;
  --acm77-support-ink: #10243f;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  direction: ltr;
  font-family: inherit;
}

.acm77-support-widget__launcher {
  position: relative;
  display: grid;
  width: 68px;
  height: 68px;
  padding: 4px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, .96);
  border-radius: 50%;
  background: linear-gradient(145deg, #0b57c7, #19c9ff);
  box-shadow: 0 14px 34px rgba(4, 57, 125, .32), 0 0 0 1px rgba(27, 158, 255, .32);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.acm77-support-widget__launcher::before,
.acm77-support-widget__launcher::after {
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(29, 175, 255, .52);
  border-radius: inherit;
  content: "";
  pointer-events: none;
  animation: acm77-support-pulse 2.4s ease-out infinite;
}

.acm77-support-widget__launcher::after {
  animation-delay: 1.2s;
}

.acm77-support-widget__launcher:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 38px rgba(4, 57, 125, .4), 0 0 0 5px rgba(37, 214, 255, .12);
}

.acm77-support-widget__launcher:focus-visible,
.acm77-support-widget__close:focus-visible,
.acm77-support-widget__link:focus-visible {
  outline: 3px solid rgba(37, 214, 255, .65);
  outline-offset: 3px;
}

.acm77-support-widget__avatar {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  background: #071832;
}

.acm77-support-widget__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.acm77-support-widget__badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #21dc8e;
  box-shadow: 0 0 0 3px rgba(33, 220, 142, .18);
  animation: acm77-support-badge 1.8s ease-in-out infinite;
}

.acm77-support-widget__panel {
  position: absolute;
  right: 0;
  bottom: 84px;
  width: min(330px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(34, 153, 247, .2);
  border-radius: 22px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 20px 54px rgba(13, 47, 93, .26);
  color: var(--acm77-support-ink);
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: bottom right;
  transition: opacity .18s ease, transform .18s ease;
}

.acm77-support-widget__panel[hidden] {
  display: block;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(.96);
}

.acm77-support-widget__head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 15px 13px;
  background: linear-gradient(135deg, #0756c9, #18bff4);
  color: #fff;
}

.acm77-support-widget__head .acm77-support-widget__avatar {
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  border: 2px solid rgba(255, 255, 255, .86);
}

.acm77-support-widget__identity {
  min-width: 0;
  flex: 1;
}

.acm77-support-widget__identity strong,
.acm77-support-widget__identity small {
  display: block;
}

.acm77-support-widget__identity strong {
  font-size: 1rem;
  line-height: 1.2;
}

.acm77-support-widget__identity small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .82);
  font-size: .78rem;
}

.acm77-support-widget__close {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.acm77-support-widget__close:hover {
  background: rgba(255, 255, 255, .26);
}

.acm77-support-widget__body {
  padding: 16px;
}

.acm77-support-widget__body p {
  margin: 0 0 13px;
  color: #4e6078;
  font-size: .9rem;
  line-height: 1.5;
}

.acm77-support-widget__link {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 9px;
  border-radius: 12px;
  background: #f0f7ff;
  color: #0d67c9;
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}

.acm77-support-widget__link:hover {
  background: #dff0ff;
  transform: translateY(-1px);
}

.acm77-support-widget__link--primary {
  background: linear-gradient(135deg, #0d72dc, #16bce9);
  color: #fff;
}

.acm77-support-widget__link--primary:hover {
  background: linear-gradient(135deg, #075fc3, #0da9d4);
}

@keyframes acm77-support-pulse {
  0% { opacity: .75; transform: scale(.9); }
  70%, 100% { opacity: 0; transform: scale(1.32); }
}

@keyframes acm77-support-badge {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.22); opacity: .72; }
}

@media (max-width: 740px) {
  .acm77-support-widget {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .acm77-support-widget__launcher {
    width: 60px;
    height: 60px;
  }

  .acm77-support-widget__panel {
    right: -2px;
    bottom: 74px;
    width: min(320px, calc(100vw - 28px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .acm77-support-widget__launcher::before,
  .acm77-support-widget__launcher::after,
  .acm77-support-widget__badge {
    animation: none;
  }

  .acm77-support-widget__launcher,
  .acm77-support-widget__link,
  .acm77-support-widget__panel {
    transition: none;
  }
}

@media print {
  .acm77-support-widget {
    display: none !important;
  }
}
