.el-switch {
    --el-switch-on-color: var(--el-color-primary);
    --el-switch-off-color: var(--el-border-color);
    align-items: center;
    display: inline-flex;
    font-size: 14px;
    height: 32px;
    line-height: 20px;
    position: relative;
    vertical-align: middle
}

.el-switch.is-disabled .el-switch__core,
.el-switch.is-disabled .el-switch__label {
    cursor: not-allowed
}

.el-switch__label {
    color: var(--el-text-color-primary);
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    height: 20px;
    transition: var(--el-transition-duration-fast);
    vertical-align: middle
}

.el-switch__label.is-active {
    color: var(--el-color-primary)
}

.el-switch__label--left {
    margin-right: 10px
}

.el-switch__label--right {
    margin-left: 10px
}

.el-switch__label * {
    display: inline-block;
    font-size: 14px;
    line-height: 1
}

.el-switch__label .el-icon {
    height: inherit
}

.el-switch__label .el-icon svg {
    vertical-align: middle
}

.el-switch__input {
    height: 0;
    margin: 0;
    opacity: 0;
    position: absolute;
    width: 0
}

.el-switch__input:focus-visible~.el-switch__core {
    outline: 2px solid var(--el-switch-on-color);
    outline-offset: 1px
}

.el-switch__core {
    align-items: center;
    background: var(--el-switch-off-color);
    border: 1px solid var(--el-switch-border-color, var(--el-switch-off-color));
    border-radius: 10px;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    height: 20px;
    min-width: 40px;
    outline: none;
    position: relative;
    transition: border-color var(--el-transition-duration), background-color var(--el-transition-duration)
}

.el-switch__core .el-switch__inner {
    align-items: center;
    display: flex;
    height: 16px;
    justify-content: center;
    overflow: hidden;
    padding: 0 4px 0 18px;
    transition: all var(--el-transition-duration);
    width: 100%
}

.el-switch__core .el-switch__inner .is-icon,
.el-switch__core .el-switch__inner .is-text {
    color: var(--el-color-white);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-user-select: none;
    user-select: none;
    white-space: nowrap
}

.el-switch__core .el-switch__action {
    align-items: center;
    background-color: var(--el-color-white);
    border-radius: var(--el-border-radius-circle);
    color: var(--el-switch-off-color);
    display: flex;
    height: 16px;
    justify-content: center;
    left: 1px;
    position: absolute;
    transition: all var(--el-transition-duration);
    width: 16px
}

.el-switch.is-checked .el-switch__core {
    background-color: var(--el-switch-on-color);
    border-color: var(--el-switch-border-color, var(--el-switch-on-color))
}

.el-switch.is-checked .el-switch__core .el-switch__action {
    color: var(--el-switch-on-color);
    left: calc(100% - 17px)
}

.el-switch.is-checked .el-switch__core .el-switch__inner {
    padding: 0 18px 0 4px
}

.el-switch.is-disabled {
    opacity: .6
}

.el-switch--wide .el-switch__label.el-switch__label--left span {
    left: 10px
}

.el-switch--wide .el-switch__label.el-switch__label--right span {
    right: 10px
}

.el-switch .label-fade-enter-from,
.el-switch .label-fade-leave-active {
    opacity: 0
}

.el-switch--large {
    font-size: 14px;
    height: 40px;
    line-height: 24px
}

.el-switch--large .el-switch__label {
    font-size: 14px;
    height: 24px
}

.el-switch--large .el-switch__label * {
    font-size: 14px
}

.el-switch--large .el-switch__core {
    border-radius: 12px;
    height: 24px;
    min-width: 50px
}

.el-switch--large .el-switch__core .el-switch__inner {
    height: 20px;
    padding: 0 6px 0 22px
}

.el-switch--large .el-switch__core .el-switch__action {
    height: 20px;
    width: 20px
}

.el-switch--large.is-checked .el-switch__core .el-switch__action {
    left: calc(100% - 21px)
}

.el-switch--large.is-checked .el-switch__core .el-switch__inner {
    padding: 0 22px 0 6px
}

.el-switch--small {
    font-size: 12px;
    height: 24px;
    line-height: 16px
}

.el-switch--small .el-switch__label {
    font-size: 12px;
    height: 16px
}

.el-switch--small .el-switch__label * {
    font-size: 12px
}

.el-switch--small .el-switch__core {
    border-radius: 8px;
    height: 16px;
    min-width: 30px
}

.el-switch--small .el-switch__core .el-switch__inner {
    height: 12px;
    padding: 0 2px 0 14px
}

.el-switch--small .el-switch__core .el-switch__action {
    height: 12px;
    width: 12px
}

.el-switch--small.is-checked .el-switch__core .el-switch__action {
    left: calc(100% - 13px)
}

.el-switch--small.is-checked .el-switch__core .el-switch__inner {
    padding: 0 14px 0 2px
}