﻿#appendSmartAll {
  width: 40px;
  height: 40px;
  background-image: url('/contactcenter/mid-esrv-cti/images/alpha@1x_desktop(56x56).png');
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  bottom: 0;
  margin-top: 12px;
  margin-bottom: 12px;
  right: 12px;
  z-index: 1010;
}

@media (min-width: 600px) {
  #appendSmartAll {
    right: 16px;
    margin-top: 16px;
    margin-bottom: 16px;
  }
}

@media (min-width: 992px) {
  #appendSmartAll {
    width: auto;
    height: auto;
    background-image: none;
    top: auto;
    right: auto;
    position: relative;
    margin-top: auto;
    margin-bottom: auto;
    z-index: 3000;
  }

  .smart_all {
    position: fixed;
    z-index: 3500;
    right: 15px;
    bottom: 22px;
    transition: bottom 0.2s ease-in-out;
  }

  .has-cookie.has-totop .smart_all {
    bottom: 151px;
  }

  .has-cookie .smart_all {
    bottom: 91px;
  }

  .has-totop .smart_all {
    bottom: 91px;
  }
}

.index_bg {
  background-position: top;
  width: 100%;
  height: 1080px;
  background-repeat: no-repeat;
}

.smart_up {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  margin-left: 42px;
  cursor: pointer;
  display: none;
}

@media (min-width: 992px) {
  .smart_alpha {
    width: 70px;
    height: 70px;
    cursor: pointer;
    background-image: url('/contactcenter/mid-esrv-cti/images/alpha@4x_desktop(224x224).png');
    background-size: 70px;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 5;
    margin: 0;
    user-select: none;
    transition: 0.2s;
  }
}

.smart_alpha.end {
  background-image: url('/contactcenter/mid-esrv-cti/images/alpha@4x_desktop(224x224).png');
  background-position: center;
  background-size: 70px;
}

.smart_alpha.shut {
  background-image: url(../img/smart_alpha03@2x.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50px;
}

.smart_say {
  display: none;
}

@media (min-width: 992px) {
  .smart_say {
    display: block;
  }

  .smart_say .say {
    color: #3a3a3a;
    right: 20px;
    background-color: #fff;
    border-radius: 40px;
    padding: 8px 16px;
    position: relative;
    box-shadow: 0 8px 20px 0 #a7a7a7;
    font-size: 14px;
    line-height: 1.4;
    max-width: 260px;
    min-height: 56px;
    margin-bottom: 20px;
  }

  .smart_say .say::after {
    content: "";
    position: absolute;
    bottom: -12px;
    right: 15px;
    width: 24px;
    height: 18px;
    background: url(../img/alpha_index.png)
      no-repeat;
    z-index: 2;
  }

  .smart_say p {
    margin: 0;
  }
}

.smart_box {
  margin: 16px 10px 6px 10px;
  border-radius: 10px;
  box-shadow: 0 8px 20px 0 #a7a7a7;
  overflow: hidden;
  height: 600px;
  z-index: 3;
  transition: 0.2s;
  transform: translate(40%, 57%) scale(0);
  display: none;
}

.smart_box iframe {
  width: 450px;
  height: 600px;
}

.smart_icon {
  display: flex;
  justify-content: flex-end;
}

@media (-webkit-min-device-pixel-ratio: 2) and (min-width: 768px) {
  .smart_alpha {
    background-image: url('/contactcenter/mid-esrv-cti/images/alpha@4x_desktop(224x224).png');
    background-repeat: no-repeat;
    user-select: none;
  }

  .smart_alpha,
  .smart_alpha.end {
    background-position: center;
  }

  .smart_alpha.end {
    background-image: url('/contactcenter/mid-esrv-cti/images/alpha@4x_desktop(224x224).png');
  }

  .smart_alpha.shut {
    background-image: url('/contactcenter/mid-esrv-cti/images/alpha@4x_desktop(224x224).png');
    background-repeat: no-repeat;
  }
}

@media (-webkit-min-device-pixel-ratio: 2) and (min-width: 768px),
  (min-resolution: 2dppx) and (min-width: 768px) {
  .smart_alpha {
    background-image: url('/contactcenter/mid-esrv-cti/images/alpha@1x_desktop(56x56).png');
    background-repeat: no-repeat;
    user-select: none;
  }

  .smart_alpha.end {
    background-image: url('/contactcenter/mid-esrv-cti/images/alpha@1x_desktop(56x56).png');
  }

  .smart_alpha.shut {
    background-image: url(../img/smart_alpha03.png);
    background-repeat: no-repeat;
  }
}

@media (max-width: 992px), (max-height: 769px) {
  .c-smart,
  .c-smart.on {
    display: none;
  }

  .c-smart-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    z-index: 2040;
    display: none;
    bottom: 0;
  }

  .smart_circCont {
    z-index: 12000;
    right: 0;
    top: 0;
    width: 100%;
    height: 50px;
  }

  .smart_circCont,
  .smart_circle {
    display: inline-block;
    position: absolute;
  }

  .smart_circle {
    width: 40px;
    height: 40px;
    background: url(../img/smart_alpha03.png);
    background-size: 40px;
    border: none;
    cursor: pointer;
    top: 5px;
    right: 10px;
  }

  .c-smart {
    display: none;
  }

  @-webkit-keyframes box_lightbox {
    0% {
      transform: translateY(85%);
    }

    to {
      transform: translateY(0);
    }
  }

  @keyframes box_lightbox {
    0% {
      transform: translateY(85%);
    }

    to {
      transform: translateY(0);
    }
  }

  .c-smart.on {
    display: block;
    position: fixed;
    z-index: 2050;
    bottom: 0;
    width: 100%;
    margin: 0;
    left: 0;
    height: 100%;
    padding-top: 50px;
    transform: translateY(0);
    -webkit-animation-name: box_lightbox;
    animation-name: box_lightbox;
    -webkit-animation-duration: 0.5s;
    animation-duration: 0.5s;
    box-sizing: border-box;
  }
}
