@keyframes appearFromOpacity {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.desktop {
  width: 100%;
  max-width: 350px;
  position: fixed;
  bottom: 0;
  right: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: appearFromOpacity 0.5s ease-in-out;
  z-index: 999;

  @media (max-width: 768px) {
    display: none;
  }

  button {
    width: 100%;
    border-radius: 35px 35px 0 0;
    justify-content: space-between !important;
    max-width: 350px !important;
    border: 1px solid var(--white-gradient);

    &:hover {
      transform: scale(1);
    }

    .messageBox {
      display: flex;
      align-items: flex-start;
      justify-content: center;
      flex-direction: column;
      position: relative;

      .notification {
        position: absolute;
        top: -2rem;
        padding: 0.1rem 0.35rem;
        border-radius: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        background: var(--red-secondary);
        border: 1px solid var(--red-tertiary);
        transition: all 0.2s ease-in-out;
        animation: appearFromOpacity 0.5s ease-in-out;
        filter: grayscale(0.2);
      }

      .span {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.5rem;

        span {
          font-size: 0.7rem;
          font-weight: 300;
          line-height: 0.9rem;
        }
      }

      p {
        font-weight: 500;
        font-size: 1rem;
        line-height: 1rem;
        letter-spacing: -0.5px;
      }
    }
  }
}

.mobile {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  max-width: 350px;
  align-items: center;
  justify-content: center;
  animation: appearFromOpacity 0.5s ease-in-out;
  z-index: 999;

  @media (min-width: 769px) {
    display: none;
  }

  button {
    border-radius: 50%;
    width: 4rem;
    height: 4rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--white-gradient);

    &:hover {
      transform: scale(1);
    }

    .notification {
      position: absolute;
      top: -0.8rem;
      padding: 0 0.35rem;
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.8rem;
      background: var(--red-secondary);
      border: 1px solid var(--red-tertiary);
      transition: all 0.2s ease-in-out;
      animation: appearFromOpacity 0.5s ease-in-out;
      filter: grayscale(0.2);
    }

    .messageBox {
      display: flex;
      align-items: flex-start;
      justify-content: center;
      flex-direction: column;

      .span {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.5rem;

        span {
          font-size: 0.7rem;
          font-weight: 300;
          line-height: 0.9rem;
        }
      }

      p {
        font-weight: 500;
        font-size: 1rem;
        line-height: 1rem;
        letter-spacing: -0.5px;
      }
    }
  }
}
