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

.custom-lang-switch > span {
    position: absolute;
    top: 5px;
    pointer-events: none;
    width: 50%;
    text-align: center;
}

input.custom-check-toggle-round-flat:checked ~ .custom-lang-off {
    color: #f36f25;
}

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

.custom-lang-switch > span.custom-lang-on {
    left: 0;
    padding-left: 2px;
    color: #f36f25;
}

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

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

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

input.custom-check-toggle-round-flat + label {
    padding: 2px;
    width: 97px;
    height: 35px;
    background-color: #253b80;
    border-radius: 60px;
}

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

input.custom-check-toggle-round-flat + label:before {
    top: 2px;
    left: 2px;
    bottom: 2px;
    right: 2px;
    background-color: #253b80;
    border-radius: 60px;
}

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

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