.monster-wa-widget {
  position: fixed;
  right: 20px;
  bottom: 96px;
  z-index: 997;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: "Saira SemiCondensed-Regular", Arial, sans-serif;
}

.monster-wa-widget__menu {
  display: grid;
  gap: 8px;
  width: min(280px, calc(100vw - 40px));
  padding: 12px;
  border: 1px solid rgba(37, 211, 102, 0.38);
  border-radius: 16px;
  background: #101312;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.monster-wa-widget--open .monster-wa-widget__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.monster-wa-widget__title {
  margin: 0 2px 2px;
  color: #f4f7f5;
  font: 700 16px/1.25 "Saira SemiCondensed-Bold", Arial, sans-serif;
}

.monster-wa-widget__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #303632;
  border-radius: 10px;
  color: #f4f7f5;
  background: #1a1f1c;
  font: 600 15px/1.25 "Saira SemiCondensed-Regular", Arial, sans-serif;
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.monster-wa-widget__action::after {
  content: "›";
  color: #25d366;
  font-size: 24px;
  line-height: 1;
}

.monster-wa-widget__action:hover,
.monster-wa-widget__action:focus-visible {
  border-color: #25d366;
  background: #202a24;
  transform: translateX(-2px);
  outline: none;
}

.monster-wa-widget__launcher {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 1px solid #138d43;
  border-radius: 50%;
  color: #fff;
  background: #25d366;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34), inset 0 0 0 2px rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

.monster-wa-widget__launcher:hover,
.monster-wa-widget__launcher:focus-visible {
  filter: brightness(1.06);
  transform: translateY(-2px) scale(1.04);
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.monster-wa-widget__launcher svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

body:has(.monster-tda-chatting.monster-tda-fullscreen) .monster-wa-widget {
  display: none;
}

@media (max-width: 520px) {
  .monster-wa-widget {
    right: 16px;
    bottom: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .monster-wa-widget *,
  .monster-wa-widget *::after {
    transition: none !important;
  }
}
