@media only screen and (min-width: 651px) {
  a.c-call-button {
    position: fixed;
    bottom: 60px;
    right: 6px;
    width: 50px;
    height: 50px;
    z-index: 1000;
    padding: 12px 12px;
    background: #5D3C94;
    border-radius: 50%;
    font-size: 0px;
    opacity: 0.7;
  }
  a.c-call-button:hover {
    text-align: center;
    font-size: 20px;
    color: #fff;
    width: 180px;
    height: 80px;
    padding-top: 8px;
    border-radius: 30px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    transition: 0.3s;
    opacity: 1;
    -webkit-animation: none;
    -ms-animation: none;
    animation: none;
  }
  a.c-call-button-anime {
    color: #fff;
    -webkit-animation: wiggle 4s 2s infinite;
    -ms-animation: wiggle 4s 2s infinite;
    animation: wiggle 4s 2s infinite;
  }
  @-webkit-keyframes wiggle {
    5% {
      transform: scale(1);
    }
    10% {
      transform: scale(0.9);
    }
    15% {
      transform: scale(1.15);
      bottom: 80px;
      opacity: 1;
    }
    20% {
      transform: scale(1.15) rotate(-10deg);
      bottom: 80px;
      opacity: 1;
    }
    25% {
      transform: scale(1.15) rotate(10deg);
      bottom: 80px;
      opacity: 1;
    }
    30% {
      transform: scale(1.15) rotate(-5deg);
      bottom: 80px;
      opacity: 1;
    }
    35% {
      transform: scale(1.15) rotate(3deg);
      bottom: 80px;
    }
    40% {
      transform: scale(1.15) rotate(0);
      bottom: 80px;
      opacity: 1;
    }
    50% {
      transform: scale(1);
      bottom: 60px;
    }
  }
  @-ms-keyframes wiggle {
    5% {
      transform: scale(1);
    }
    10% {
      transform: scale(0.9);
    }
    15% {
      transform: scale(1.15);
      bottom: 80px;
      opacity: 1;
    }
    20% {
      transform: scale(1.15) rotate(-10deg);
      bottom: 80px;
      opacity: 1;
    }
    25% {
      transform: scale(1.15) rotate(10deg);
      bottom: 80px;
      opacity: 1;
    }
    30% {
      transform: scale(1.15) rotate(-5deg);
      bottom: 80px;
      opacity: 1;
    }
    35% {
      transform: scale(1.15) rotate(3deg);
      bottom: 80px;
    }
    40% {
      transform: scale(1.15) rotate(0);
      bottom: 80px;
      opacity: 1;
    }
    50% {
      transform: scale(1);
      bottom: 60px;
    }
  }

  div.popup-all {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
  }
  div.popup-block {
    display: block;
    position: fixed;
    background-color: #fff;
    border-radius: 10px;
    width: 600px;
    height: 190px;
    top: 40%;
    left: 50%;
    margin-left: -300px;
    margin-top: -75px;
    border: 2px solid #5D3C94;
    z-index: 9000;
  }
  .popup-close {
    position: absolute;
    top: 5px;
    right: 10px;
    color: #5D3C94;
    font-size: 15px;
    cursor: pointer;
  }
  .popup-close:hover {
    color: #f00;
  }
  .popup-button {
    position: absolute !important;
    bottom: 24px;
    right: 235px;
    width: 130px;
    height: 40px;
    background-color: #5D3C94 !important;
    color: #fff !important;
    font: inherit;
  }
  .popup-message {
    color: #5D3C94;
    padding-top: 25px;
    text-align: center;
    font-size: 15px;
    line-height: 1.8;
  }
}

@media only screen and (max-width: 650px) {
  a.c-call-button {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    text-align: center;
    padding: 5px 0px;
    background: #5D3C94;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
  }
  div.popup-all {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
  }
  div.popup-block {
    display: block;
    position: fixed;
    background-color: #fff;
    border-radius: 10px;
    width: 300px;
    height: 190px;
    top: 40%;
    left: 50%;
    margin-left: -150px;
    margin-top: -75px;
    border: 2px solid #5D3C94;
    z-index: 9000;
  }
  .popup-close {
    position: absolute;
    top: 5px;
    right: 10px;
    color: #5D3C94;
    font-size: 15px;
    cursor: pointer;
  }
  .popup-close:hover {
    color: #f00;
  }
  .popup-button {
    position: absolute !important;
    bottom: 24px;
    right: 85px;
    width: 130px;
    height: 40px;
    background-color: #5D3C94 !important;
    color: #fff !important;
    font: inherit;
  }
  .popup-message {
    color: #5D3C94;
    padding-top: 25px;
    text-align: center;
    font-size: 15px;
    line-height: 1.8;
    width: 280px;
    margin: auto;
  }
}
