@import "../../../assets/scss/variables";



#floating-widgets-container{
  position: fixed;
  z-index: 99;
  top: 200px;
  @media (max-width: 1024px) {
    top: 380px;
  }
  @media (max-width: 1199px) {
    top: 240px;
  }
  @media (max-width: 1010px) {
    top: 220px;
  }
  @media (max-width: 425px) {
    top: 355px;
  }
  right: -350px;
  display: block;
}

.floating-widget {

  //max-width: 95vw;
  width: 410px;
  transition: 0.3s all;
  overflow: hidden;
  margin-bottom: 30px;
display: block;
  &--head {
    position: relative;
    cursor: pointer;
    height: 58px;
    background-color: $secondary-color;
    width: 100%;
    border-radius: 10px;
    display: flex;
    align-items: center;
    color: $white;
    padding: 0 19px;
    box-shadow: 0 3px 6px #00000029;
    transition: 0.3s all;
    z-index: 10;
    gap: 25px;

    img {
      width: 25px;
      height: 25px;
    }

    .close{
      margin-left: auto;
    }

    & * {
      font-size: 1.6rem;
      color: $white;

    }

    .urgent{
      top: 10px;
      left: 6px;
      position: absolute;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background-color: $success-color;
    }

  }

  &--body{
    height: 0;
    margin: 0 10px;
    padding: 0 30px;
    background-color: $app-background;
    border: 1px solid $gray-border;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
    transition: 0.3s all;
    opacity: 1;
    transform: translateY(-100%);
    position: relative;
    z-index: 1;
  }

  &.open {
   transform: translateX(-370px);
    max-width: 94vw;

    & .floating-widget--body {
      height: auto;
      opacity: 1;
      transform: translateY(0px);
    }
  }
}
