.toggle{min-width:50px;min-height:21px;width:50px;height:21px;background-color:#a9a9a9;border-radius:25px;position:relative;cursor:pointer;transition:background-color .3s}.toggle.toggled{background-color:#8000ff}.toggle-switch{width:15px;height:15px;background-color:#fff;border-radius:50%;position:absolute;top:3px;left:4px;transition:left .3s}.toggle.toggled .toggle-switch{left:30px}.toggle.disabled{opacity:.5;cursor:not-allowed}