.customer-service {
  position: fixed;
  right: 0;
  bottom: 53%;
  z-index: 9999;
}

.customer-service__card {
  width: 14.5rem;
  height: 10rem;
  position: absolute;
  right: 0;
  top: -2.5rem;
  background: url(../images/card_big.gif) no-repeat 100%/100%;
  transition: all .5s;
  -webkit-transition: all .5s;
  -moz-transition: all .5s;
  -ms-transition: all .5s;
  -o-transition: all .5s;
}

.customer-service__card .card-close {
  width: 0.875rem;
  height: 0.875rem;
  position: absolute;
  right: 0.5rem;
  top: 0.25rem;
  background: url(../images/icon_close.png) no-repeat 100%/100%;
}

.customer-service__card .card-button {
  width: 100%;
  display: flex;
  position: absolute;
  bottom: 1.65rem;
  justify-content: end;
}

.customer-service__card .card-button > div {
  width: 6.65rem;
  height: 2.95rem;
  position: relative;
}

.customer-service__card .card-button__voice {
  animation: jump1 2s infinite;
  animation-timing-function: ease-in-out;
  background: url(../images/button_voice.png) no-repeat 100%/100%;
  -webkit-animation: jump1 2s infinite;
}

.customer-service__card .card-button__video {
  animation: jump2 2s infinite;
  animation-timing-function: ease-in-out;
  background: url(../images/button_video.png) no-repeat 100%/100%;
  -webkit-animation: jump2 2s infinite;
}

@keyframes jump1 {
  0%, 50%, 100% {
    transform: scale(1);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
  }
  25% {
    transform: scale(1.05);
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -o-transform: scale(1.05);
  }
  35% {
    transform: scale(0.95);
    -webkit-transform: scale(0.95);
    -moz-transform: scale(0.95);
    -ms-transform: scale(0.95);
    -o-transform: scale(0.95);
  }
}

@keyframes jump2 {
  0%, 50%, 100% {
    transform: scale(1);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
  }
  75% {
    transform: scale(1.05);
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -o-transform: scale(1.05);
  }
  85% {
    transform: scale(0.95);
    -webkit-transform: scale(0.95);
    -moz-transform: scale(0.95);
    -ms-transform: scale(0.95);
    -o-transform: scale(0.95);
  }
}

.customer-service__card--hide {
  right: -999px;
  opacity: 0;
}

.customer-service__card--show {
  right: 0;
  opacity: 1;
}

.customer-service__card--single {
  background: url(../images/card_small.gif) no-repeat 100%/100%;
}

.customer-service__card--single .card-close {
  top: 2rem;
}

.customer-service__card--single .card-button {
  bottom: 1.25rem;
}

.customer-service__card--single .card-button > div {
  margin-right: 1rem;
}

.customer-service__float {
  width: 5.7rem;
  height: 5.7rem;
  position: absolute;
  top: 0;
  right: -580px;
  opacity: 0;
  background: url(../images/card_pic_bg.png) no-repeat 100%/100%;
  transition: all .3s;
  -webkit-transition: all .3s;
  -moz-transition: all .3s;
  -ms-transition: all .3s;
  -o-transition: all .3s;
}

.customer-service__float .float-click {
  width: 4.5rem;
  height: 3.75rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-42%, -50%);
  background-color: transparent;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  -webkit-transform: translate(-42%, -50%);
  -moz-transform: translate(-42%, -50%);
  -ms-transform: translate(-42%, -50%);
  -o-transform: translate(-42%, -50%);
}

.customer-service__float .float-click .float-girl {
  width: 2.375rem;
  height: 3.65rem;
  position: absolute;
  left: .6rem;
  top: -.2rem;
  background: url(../images/card_pic_girl.png) no-repeat 100%/100%;
  animation: girl 1s infinite;
  -webkit-animation: girl 1s infinite;
}

@keyframes girl {
  0%, 100% {
    transform: scale(0.9);
    -webkit-transform: scale(0.9);
    -moz-transform: scale(0.9);
    -ms-transform: scale(0.9);
    -o-transform: scale(0.9);
  }
  50% {
    transform: scale(0.95);
    -webkit-transform: scale(0.95);
    -moz-transform: scale(0.95);
    -ms-transform: scale(0.95);
    -o-transform: scale(0.95);
  }
  70% {
    transform: scale(0.95);
    -webkit-transform: scale(0.95);
    -moz-transform: scale(0.95);
    -ms-transform: scale(0.95);
    -o-transform: scale(0.95);
  }
}

.customer-service__float .float-close {
  width: 0.875rem;
  height: 0.875rem;
  position: absolute;
  top: 0.3rem;
  right: 0.7rem;
  background: url(../images/icon_close.png) no-repeat 100%/100%;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}

.customer-service__float--show {
  right: 0;
  opacity: 1;
}
