.pg-radio-switch {
  border: none;
  margin: 0 0 24px;
  padding: 0;
  white-space: nowrap;
}

.pg-radio-switch__inner {
  display: inline-block !important;
  position: relative !important;
}

.pg-radio-switch__inner > input {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  height: 100%;
  opacity: 0.00001;
  position: absolute;
  top: 0;
  margin: 0;
  z-index: 3;
  cursor: pointer;
}

.pg-radio-switch__inner > input.pg-metric-unit-radio {
  position: absolute;
  left: 0;
  width: 60px;
}

.pg-radio-switch__inner.pg-fr-unit-toggle > input.pg-metric-unit-radio {
  width: 66px;
}

.pg-radio-switch__inner > input.pg-imperial-unit-radio {
  position: absolute;
  left: 88px;
  width: 75px;
  padding: 0;
}

.pg-radio-switch__inner.pg-fr-unit-toggle > input.pg-imperial-unit-radio {
  left: 119px;
  width: 68px;
}

.pg-radio-switch__inner > label {
  font-family: "Roboto", sans-serif;
  color: #333;
  font-size: 16px;
  cursor: pointer;
  font-weight: 300;
  letter-spacing: 0.5px;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.pg-radio-switch__inner > label.pg-metric-unit-label {
  position: relative !important;
  padding: 0 45px 0 0;
  z-index: 2;
}

.pg-radio-switch__inner.pg-fr-unit-toggle > label.pg-metric-unit-label {
  padding: 0 47px 0 0;
}

.pg-radio-switch__inner > label.pg-metric-unit-label::before {
  width: 16px;
  height: 16px;
  background-color: #fff;
  border-radius: 50%;
  z-index: 2;
  position: absolute;
  top: 4px;
  -webkit-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

input.pg-metric-unit-radio:checked + label::before {
  left: 58px;
}

.pg-radio-switch__inner.pg-fr-unit-toggle input.pg-metric-unit-radio:checked + label::before {
  left: 78px;
}

input.pg-metric-unit-radio:not(:checked) + label.pg-metric-unit-label::before {
  left: 73px;
}

.pg-radio-switch__inner.pg-fr-unit-toggle input.pg-metric-unit-radio:not(:checked) + label.pg-metric-unit-label::before {
  left: 93px;
}

.pg-radio-switch__inner > label.pg-metric-unit-label::after {
  position: static;
  display: inline-block;
  width: 36px;
  height: 20px;
  margin: 2px 0 0 0;
  border-radius: 20px;
  border: 1px solid transparent;
  background-color: #0467c6;
  position: absolute;
  top: 0;
  bottom: auto;
  left: 56px;
  cursor: pointer;
  transform: scale(1);
  z-index: 0;
}

.pg-radio-switch__inner.pg-fr-unit-toggle > label.pg-metric-unit-label::after {
  left: 76px;
}

.pg-radio-switch__inner > label.pg-imperial-unit-label {
  padding: 0px 0 0 45px;
  position: absolute;
  left: 56px;
  z-index: 1;
}

.pg-radio-switch__inner.pg-fr-unit-toggle > label.pg-imperial-unit-label {
  left: 76px;
}

input.pg-imperial-unit-radio:checked + label.pg-imperial-unit-label {
  z-index: 1;
}

input.pg-imperial-unit-radio:not(:checked) + label.pg-imperial-unit-label {
  z-index: 2;
}

.pg-imperial-unit-label::before,
.pg-imperial-unit-label::after {
  display: none !important;
}

.pg-radio-switch:focus-within label.pg-metric-unit-label:after {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0467c6 !important;
}

.pg-radio-switch.focus-within label.pg-metric-unit-label:after {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0467c6 !important;
}

@media only screen and (max-width: 64em) {
  .pg-radio-switch {
    margin: 24px 0 0 0;
  }
}