label.switch {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border: 1px solid #A2A2A2;
}

.slider .slide {
  height: 24px;
  width: 24px;
  background-color: #A2A2A2;
  color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
  font-weight: 600;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: 0.8rem;
}

.slider .slide svg{
  height: 1rem;
}

input:checked+.slider {
  background-color: #A2A2A2;
}

input:checked+.slider .slide {
  background-color: white;
  color: #A2A2A2;
}

input:focus+.slider {
  box-shadow: 0 0 1px #A2A2A2;
}

input:checked+.slider .slide {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(19px);
}
input+.slider .slide .check-off{
  display:block;
  fill:white;
}

input+.slider .slide .check-on{
  display:none;
}
input:checked+.slider .slide .check-off{
  display:none;
}

input:checked+.slider .slide .check-on{
  display:block;
}

input:checked+#essential .slide {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(19px);
}

#essential {
  opacity: 0.5;
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

@media(max-width: 400px) {
  .cookie-wrapper .switch {
    width: 40px;
    height: 21px;
  }
  .cookie-wrapper .switch .slide{
      height: 19px;
       width: 19px;
   }
   
   .cookie-wrapper .switch .slide svg{
      height: 0.9rem;
   }
   .slider.round {
     border-radius: 35px;
   }
}
