.ba-slider {
  position: relative;
  /* overflow: hidden; */
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

.ba-slider img {
  width: auto;
  height: 100%;
  display:block;
  max-width:none;
  border-radius: 14px;
}

.ba-slider .text-top {
  position: absolute;
  top:0;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  font-family: 'Raleway-SemiBold';
  font-weight: 600;
  font-size: 13px;
  line-height: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #222C49;
  padding: 10px 24px;
  background: #f4f4f4;
  border-radius: 0px 0px 5px 5px;
}

.ba-slider .resize {
  position: absolute;
  top:0;
  left: 0;
  height: 100%;
  width: 70%;
  overflow: hidden;
  display: flex;
  align-items: center;
  z-index: 2;
}

.ba-slider .resize__img-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  height: 100%;
}

.ba-slider .resize img{
  margin: 0 11px;
}

.ba-slider .handle{
  position:absolute;
  left:70%;
  top:0;
  bottom:0;
  width:8px;
  margin-left:-2px;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.07);
  border-radius: 6px;
  cursor:ew-resize;
  z-index: 3;
}
.ba-slider .handle:after{
  position:absolute;
  top:50%;
  width:36px;
  height:36px;
  margin:-16px 0 0 -16px;
  content:'';
  background-color: #222C49;
  background-image: url('../img/befor-after-arrow.svg');
  background-size: 16px 7px;
  background-position: center;
  background-repeat: no-repeat;
  border-radius:50%;
  transition:all .3s ease;
}

.ba-slider .handle::before{
  position:absolute;
  top:50%;
  width: 54px;
  height: 54px;
  margin: -25px 0 0 -25px;
  content:'';
  border-radius:50%;
  transition:all .3s ease;
  border: 10px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.07);
}


.ba-slider .handle.cursor div::before{
  content: url('../img/offer/logo-design/icon-cursor.svg');
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.ba-slider .handle.anim:after,
.ba-slider .handle.anim::before{
  animation-name: scale;
  animation-duration: 2s;
  animation-timing-function: ease-in-out;
}

@keyframes scale {
  0%   {transform: scale(1.0);}
  25%  {transform: scale(1.2);}
  50%  {transform: scale(1.0);}
  75%  {transform: scale(1.2);}
  100% {transform: scale(1.0);}
}