/* TAX SWITCH*/

.tax-switch-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.tax-switch--no-tax-text {
  font-size: 0.7rem;
  margin-top: 0;
  margin-bottom: 0.2em;
}

input[type=checkbox]#tax-switch {
  height: 0;
  width: 0;
  visibility: hidden;
}

.tax-switch-container .tax-switch-label {
  cursor: pointer;
  text-indent: -9999px;
  width: 50px;
  height: 25px;
  background: grey;
  display: block;
  border-radius: 100px;
  position: relative;
  margin-bottom: 0;
  margin-top: 0;
}

.tax-switch-label:after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 90px;
  transition: 0.3s;
}

input:checked#tax-switch + label.tax-switch-label {
  background: #bada55;
  background: var(--tertiary);
}

input:checked#tax-switch + label.tax-switch-label:after {
  left: calc(100% - 5px);
  transform: translateX(-100%);
}

label.tax-switch-label:active:after {
  width: 25px;
}

.tax-switch--private-text, .tax-switch--company-text {
  display: none;
}

@media screen and (min-width: 850px) {
  .tax-switch-text {
    font-size: 1rem;
  }
}
@media screen and (min-width: 1000px) {
  .tax-switch-container {
    flex-direction: row;
    margin-right: 1rem;
    align-items: center;
  }
  .tax-switch-container p {
      margin-top: 0;
    margin-bottom: 0;
  }
  .tax-switch--no-tax-text {
    display: none;
  }
  .tax-switch--private-text, .tax-switch--company-text {
    display: block;
  }
  .tax-switch--private-text {
    margin-right: 0.5rem;
  }
  .tax-switch--company-text {
    margin-left: 0.5rem;
  }
}