.v-social_widget {
  position: fixed;
  bottom: 35px;
  right: 50px;
  z-index: 100;
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  font-family: 'Arial', sans-serif;
}

.v-widget-message {
  position: absolute;
  top: 0;
  right: 100%;
  width: max-content;
  max-width: 200px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 5px;
  box-shadow: 0 0 15px -5px rgba(0, 0, 0, .5);

  font-size: 14px;
  color: #424242;
  animation: slide .5s linear 2s backwards;
  cursor: pointer;
}

.v-widget-name {
  margin-top: 5px;
  font-size: 12px;
  color: #aeaeae;
}

.widget__button {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background-color: #49306B;
  background-position: center;
  background-size: 65%;
  background-repeat: no-repeat;
  background-image: url('./icons/chat.svg');
  position: relative;
  z-index: 50;
  transition: all .2s;
  cursor: pointer;
}

.v-social_widget.open .widget__button {
  transition: all .2s;
  background-image:url('./icons/close.svg');
  background-size: 60%;
}

.widget__button:focus,
.widget__button:active {
  outline:none;
}

/* button animation */
.widget__button::before {
  content:'';
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 1;

  box-shadow: 0 0 0 rgba(73,48,107, 0.6);
  animation: pulse 2s infinite;
}

.v-social_widget.open .widget__button::before {
  transform: scale(0);
  opacity: 0;
}

.v-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}
.v-nav__list--item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  
  display: flex;
  justify-content: center;
  align-items: center;
  font: 'Arial', sans-serif;
  opacity: 0;
  transition: all .3s;
  cursor: pointer;
}
.v-nav__list--item .item__icon {
  --params: 40px;
  display: block;
  width: var(--params);
  height: var(--params);
  border-radius: 50%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

/* icons */
.v-nav__list--item.item__vk .item__icon {
  background-image: url('./icons/vk.svg');
}
.v-nav__list--item.item__tlgrm .item__icon {
  background-image: url('./icons/tlgrm.svg');
}
.v-nav__list--item.item__wa .item__icon {
  background-image: url('./icons/wa.svg');
}
.v-nav__list--item.item__vb .item__icon {
  background-image: url('./icons/vb.svg');
}
.v-nav__list--item.item__inst .item__icon {
  background-image: url('./icons/inst.svg');
}
.v-nav__list--item.item__ok .item__icon {
  background-image: url('./icons/ok.svg');
}
.v-nav__list--item.item__fb .item__icon {
  background-image: url('./icons/fb.svg');
}
.v-nav__list--item.item__tw .item__icon {
  background-image: url('./icons/tw.svg');
}

/* open */
.v-social_widget.open .v-nav__list--item {
  opacity: 1;
}
.v-social_widget.open .v-nav__list--item[class*="item__"] {
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
  animation-duration: .25s;
}
.v-social_widget.open .v-nav__list--item.item__1 {
  animation-name: item1;
  animation-delay: 0;
  z-index: 10;
}
.v-social_widget.open .v-nav__list--item.item__2 {
  animation-name: item2;
  animation-delay: 0.1s;
  z-index: 9;
}
.v-social_widget.open .v-nav__list--item.item__3 {
  animation-name: item3;
  animation-delay: 0.2s;
  z-index: 8;
}
.v-social_widget.open .v-nav__list--item.item__4 {
  animation-name: item4;
  animation-delay: 0.3s;
  z-index: 7;
}
.v-social_widget.open .v-nav__list--item.item__5 {
  animation-name: item5;
  animation-delay: .4s;
  z-index: 6;
}
.v-social_widget.open .v-nav__list--item.item__6 {
  animation-name: item6;
  animation-delay: .5s;
  z-index: 5;
}
.v-social_widget.open .v-nav__list--item.item__7 {
  animation-name: item7;
  animation-delay: .6s;
  z-index: 4;
}
.v-social_widget.open .v-nav__list--item.item__8 {
  animation-name: item8;
  animation-delay: .7s;
  z-index: 3;
}

.hide {
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes pulse {
  0% {
     box-shadow: 0 0 0 0 rgba(73,48,107, 0.6);
   }
   70% {
       box-shadow: 0 0 0 30px rgba(73,48,107, 0);
   }
   100% {
       box-shadow: 0 0 0 0 rgba(73,48,107, 0);
   }
}

@keyframes slide {
  from {
    opacity: 0;
    transform: translateX(100%) scale(0);
  }
  to {
    opacity: 1;
    transform: translateX(0%) scale(1);
    z-index: 60;
  }
}


@keyframes item1 {
  from {
    transform: translate(-50%,-50%);
  } to {
    transform: translate(-50%, -200%);
  }
}
@keyframes item2 {
  from {
    transform: translate(-50%,-50%);
  } to {
    transform: translate(-50%, -320%);
  }
}
@keyframes item3 {
  from {
    transform: translate(-50%,-50%);
  } to {
    transform: translate(-50%, -440%);
  }
}
@keyframes item4 {
  from {
    transform: translate(-50%,-50%);
  } to {
    transform: translate(-50%, -560%);
  }
}
@keyframes item5 {
  from {
    transform: translate(-50%,-50%);
  } to {
    transform: translate(-50%, -680%);
  }
}
@keyframes item6 {
  from {
    transform: translate(-50%,-50%);
  } to {
    transform: translate(-50%, -800%);
  }
}
@keyframes item7 {
  from {
    transform: translate(-50%,-50%);
  } to {
    transform: translate(-50%, -920%);
  }
}
@keyframes item8 {
  from {
    transform: translate(-50%,-50%);
  } to {
    transform: translate(-50%, -1040%);
  }
}

@media (max-width: 768px) {
  .v-social_widget {
    bottom: 10px;
    right: 20px;
  }
}
