/* Global toast styles (theme) */
#stellar-toast.stellar-toast {
  position: fixed;
  left: 50%;
  bottom: 50px;
  transform: translateX(-50%) translateY(16px);
  background: #00b9f2; /* success default */
  color: #fff;
  border: 1px solid #00b9f2;
  border-radius: 34px;
  padding: 24px 56px 24px 24px;
  font-size: 24px;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transition: 0.5s;
  z-index: 12000;
  max-width: 90vw;
  text-align: center;
  @media (max-width: 1024px) {
    padding: 12px 44px 12px 16px;
    font-size: 13px;
    border-radius: 8px;
    width: 100%;

    .stellar-toast__close {
      top: 4px;
      right: 10px;
      width: 28px;
      height: 28px;
      font-size: 18px;
    }
  }

  .stellar-toast__cta {
    font-size: 24px;
    color: #fff;
    transition: 0.3s;
    &:hover {
      color: #005a87;
    }
  }
}

#stellar-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Variants */
#stellar-toast.is-success {
  background: #7fad16;
  border-color: #7fad16;
}

#stellar-toast.is-error {
  background: #e53935;
  border-color: #e53935;
}

#stellar-toast .stellar-toast__message {
  display: block;
  text-align: inherit;
  word-break: break-word;
}

#stellar-toast .stellar-toast__close {
  position: absolute;
  top: 8px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#stellar-toast .stellar-toast__close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}
