﻿.float-button {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 999;
}
.float-button-vw {
  left: 80px;
}
.float-button-nissan {
  bottom: 80px;
}
.float-button a {
  color: #ffffff;
  text-decoration: none;
}
.float-button a:hover {
  color: #eaeaea;
  text-decoration: none;
}
.float-button__wrapper {
  padding: 32px;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
}

.float-button-bg {
  height: 96px;
  width: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  color: white;
  -webkit-box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.75);
  box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.75);

  -webkit-transition: -webkit-transform 0.5s;
  transition: transform 0.5s;
}

.float-button-bg:hover {
  transform: scale(1.1);
}

.float-button-bg-nissan {
  background-color: #c30930;
}

.float-button-bg-vw {
  background-color: #3498db;
}

.float-button__close {
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 10px;
  height: 14px;
  width: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  margin-left: -5px;
  box-sizing: border-box;
}

.float-button__close:active .float-button {
  display: none;
}

.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes tada {
  0% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }

  10%,
  20% {
    -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
    transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
  }

  30%,
  50%,
  70%,
  90% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
  }

  40%,
  60%,
  80% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
  }

  100% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

@keyframes tada {
  0% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }

  10%,
  20% {
    -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
    transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
  }

  30%,
  50%,
  70%,
  90% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
  }

  40%,
  60%,
  80% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
  }

  100% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

.tada {
  -webkit-animation-name: tada;
  animation-name: tada;
}

.float-button__close img {
  max-width: none !important;
}

/* кнопочка Задать вопрос через WhatsApp - моб. верия */
@media screen and (max-width: 1024px) {
  .float-button-vw {
    left: 0px;
  }
  .float-button-bg {
    width: 80px;
    height: 80px;
  }
  .float-button-bg img {
    max-width: none !important;
    width: 55px;
    height: 55px;
  }
}
