/* Pill in the top-right corner on desktop, centred at the top on mobile.
   `top` is set from JS to sit just below the site's fixed header; 90px is the fallback. */
.signup-toast {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 380px;
  padding: 10px 28px 10px 10px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.35;
  color: #555;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

.signup-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.signup-toast:hover,
.signup-toast:focus {
  color: #333;
  text-decoration: none;
}

.signup-toast__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f0f0f5;
}

.signup-toast__icon svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 600px) {
  .signup-toast {
    top: 80px;
    right: auto;
    left: 50%;
    max-width: calc(100% - 24px);
    width: max-content;
    padding: 7px 20px 7px 7px;
    gap: 11px;
    font-size: 14px;
    transform: translate(-50%, -12px);
  }

  .signup-toast.is-visible {
    transform: translate(-50%, 0);
  }

  .signup-toast__icon {
    width: 38px;
    height: 38px;
  }

  .signup-toast__icon svg {
    width: 21px;
    height: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signup-toast,
  .signup-toast.is-visible {
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  }
}
