/* Date */
.bbf-date .bbf-date {
  width: 4em
}

.bbf-date .bbf-month {
  width: 9em;
}

.bbf-date .bbf-year {
  width: 5em;
}

/* DateTime */
.bbf-datetime select {
  width: 4em;
}

/* List */
.bbf-list .bbf-add {
  margin-top: -10px
}

.bbf-list li {
  margin-bottom: 5px
}

.bbf-list .bbf-del {
  margin-left: 4px
}

/* List.Modal */
.bbf-list-modal {
  cursor: pointer;
  border: 1px solid #ccc;
  width: 208px;
  border-radius: 3px;
  padding: 4px;
  color: #555;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  width: inherit;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  top: 2px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

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

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

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

input:checked + .slider:before {
  -webkit-transform: translateX(16px);
  -ms-transform: translateX(16px);
  transform: translateX(16px);
}

input:checked + .inside-text-switch.slider:before {
  transform: translateX(65px);
  width: 24px;
  height: 25px;
  left: 0;
}

.inside-text-switch.slider:before {
  width: 24px;
  height: 25px;
}

.inside-text-switch.switch {
    position: relative;
    display: inline-block;
    width: 90px;
    height: 28px;
}

.checkbox-value-yes {
  font-size: 0.8rem;
  color: white;
  position: absolute;
  margin: 4px 0 0 15px;
}

.checkbox-value-no {
  font-size: 0.8rem;
  position: absolute;
  margin: 4px 0 0 30px;
}


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

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

.redirect-new-page {
  background: url("../../img/userstore-icons/redirect.png");
  min-width: 32px;
  max-width: 32px;
  object-fit: contain;
  min-height: 32px;
  max-height: 32px;
}

.rangeSlidecontainer {
  width: 100%;
}

.rangeSlider, .isValidSlider {
  -webkit-appearance: none;
  width: 100%;
  height: 1rem;
  border-radius: 8px;
  background: #d3d3d3;
  outline: none;
  opacity: 1;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

.isValidSlider {
  background: #FF0000;
}

.isValidSlider::-webkit-slider-thumb,
.rangeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #1F6CAE;
  cursor: pointer;
}

.isValidSlider::-moz-range-thumb,
.rangeSlider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #04AA6D;
  cursor: pointer;
}
.newToggle-switch {
  position: relative;
  display: inline-block;
  width: 120px;
  height: 36px;
}

.newToggle-switch input {
  display: none;
}

.newSlider {
  position: absolute;
  cursor: pointer;
  width: 116px;
  top: 0;
  bottom: 0;
  background-color: #ccc;
  transition: background-color 0.4s;
  border-radius: 50px;
}

.newSlider:before {
  position: absolute;
  content: "";
  height: 36px;
  width: 36px;
  left: 0;
  bottom: 0;
  background-color: white;
  transition: transform 0.4s;
  border-radius: 50%;
  box-shadow: 0px 0px 4px 0px #0000004D;
}

input:checked + .newSlider {
  background: #1F6CAE;
}

input:checked + .newSlider:before {
  transform: translateX(80px);
  box-shadow: 0px 0px 4px 0px #0000004D;
}

.newToggle-text {
  position: absolute;
  transform: translateX(-50%);
  width: 56px;
  height: 14px;
  top: 7px;
  font-family: Lato;
  font-size: 16px;
  font-weight: 500;
  line-height: 19.2px;
  text-align: left;
}

.disabledText {
  color: #474747;
  left: 60%;
}

.enabledText {
  color: #FFFFFF;
  right: 14%;
}

.isValidCustomErrorClass {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("../../img/flash/inputErrorIcon.svg");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
