/* دکمه تعویض زبان (سوییچ FA/EN) */

.switch {
  position: relative;
  display: inline-block;
  margin: 0 5px;
}

.switch > span {
  position: absolute;
  top: 10px;
  pointer-events: none;
  font-family: "Helvetica", Arial, sans-serif;
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  width: 50%;
  text-align: center;
}

input.check-toggle-round-flat:checked ~ .off {
  color: var(--btn1-bg, #ff6a1c);
}

input.check-toggle-round-flat:checked ~ .on {
  color: #fff;
}

.switch > span.on {
  left: 0;
  padding-left: 2px;
  color: var(--btn1-bg, #ff6a1c);
}

.switch > span.off {
  right: 0;
  padding-right: 4px;
  color: #fff;
}

.check-toggle {
  position: absolute;
  margin-left: -9999px;
  visibility: hidden;
}

.check-toggle + label {
  display: block;
  position: relative;
  cursor: pointer;
  outline: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* اندازه‌ی کوچیک‌تر تا توی navbar جا بشه (نسخه‌ی اصلی 97x35 بود) */
input.check-toggle-round-flat + label {
  padding: 2px;
  width: 70px;
  height: 26px;
  background-color: var(--btn1-bg, #ff6a1c);
  border-radius: 60px;
}

input.check-toggle-round-flat + label:before,
input.check-toggle-round-flat + label:after {
  display: block;
  position: absolute;
  content: "";
}

input.check-toggle-round-flat + label:before {
  top: 2px;
  left: 2px;
  bottom: 2px;
  right: 2px;
  background-color: var(--btn1-bg, #ff6a1c);
  border-radius: 60px;
}

input.check-toggle-round-flat + label:after {
  top: 3px;
  left: 3px;
  bottom: 3px;
  width: 34px;
  background-color: #fff;
  border-radius: 52px;
  transition: margin 0.2s;
}

input.check-toggle-round-flat:checked + label:after {
  margin-left: 32px;
}

@media (max-width: 1024px) {
  .switch {
    margin: 0 4px;
  }
}
