.toggle-button {
    display: inline-block;
    cursor: pointer;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    border: 1px solid;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    position: relative;
    text-align: left;
    overflow: hidden;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.toggle-button.deactivate {
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50);
    opacity: 0.5;
    cursor: default !important;
}

.toggle-button.deactivate label, .toggle-button.deactivate span {
    cursor: default !important;
}

.toggle-button > div {
    display: inline-block;
    width: 150px;
    position: absolute;
    top: 0;
}

.toggle-button > div.disabled {
    left: -50%;
}

.toggle-button input[type=checkbox] {
    display: none;
}

.toggle-button span, .toggle-button label {
    cursor: pointer;
    position: relative;
    float: left;
    display: inline-block;
}

.toggle-button label {
    background: #fefefe;
    margin-left: -4px;
    margin-right: -4px;
    border: 1px solid #E6E6E6;
    margin-top: -1px;
    z-index: 100;
    background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #fefefe), color-stop(100%, #e6e6e6));
    background-image: -webkit-linear-gradient(top, #fefefe, #e6e6e6);
    background-image: -moz-linear-gradient(top, #fefefe, #e6e6e6);
    background-image: -o-linear-gradient(top, #fefefe, #e6e6e6);
    background-image: linear-gradient(top, #fefefe, #e6e6e6);
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    border-radius: 4px;
}

.toggle-button span {
    color: #fefefe;
    text-align: center;
    font-weight: bold;
    z-index: 1;
}

.toggle-button span.labelLeft {
    -moz-border-radius-topleft: 4px;
    -webkit-border-top-left-radius: 4px;
    border-top-left-radius: 4px;
    -moz-border-radius-bottomleft: 4px;
    -webkit-border-bottom-left-radius: 4px;
    border-bottom-left-radius: 4px;
    padding-left: 3px;
}

.toggle-button span.labelRight {
    -moz-border-radius-bottomright: 4px;
    -webkit-border-bottom-right-radius: 4px;
    border-bottom-right-radius: 4px;
    -moz-border-radius-bottomright: 4px;
    -webkit-border-bottom-right-radius: 4px;
    border-bottom-right-radius: 4px;
    color: black;
    background-image: -webkit-gradient(linear, 50% 100%, 50% 0%, color-stop(0%, #fefefe), color-stop(100%, #e6e6e6));
    background-image: -webkit-linear-gradient(bottom, #fefefe, #e6e6e6);
    background-image: -moz-linear-gradient(bottom, #fefefe, #e6e6e6);
    background-image: -o-linear-gradient(bottom, #fefefe, #e6e6e6);
    background-image: linear-gradient(bottom, #fefefe, #e6e6e6);
    padding-right: 3px;
}

.toggle-button span.primary, .toggle-button span.labelLeft {
    color: #fefefe;
    background-color:#dd5c14;
    background-image:-moz-linear-gradient(top, #dd4814, #dd7a14);
    background-image:-ms-linear-gradient(top, #dd4814, #dd7a14);
    background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#dd4814), to(#dd7a14));
    background-image:-webkit-linear-gradient(top, #dd4814, #dd7a14);
    background-image:-o-linear-gradient(top, #dd4814, #dd7a14);
    background-image:linear-gradient(top, #dd4814, #dd7a14);
    background-repeat:repeat-x;
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dd4814', endColorstr='#dd7a14', GradientType=0);
	*background-color:#dd7a14;
    filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);
}

.toggle-button span.info {
    color: #fefefe;
    background-color:#99356b;
    background-image:-moz-linear-gradient(top, #b03d7b, #772953);
    background-image:-ms-linear-gradient(top, #b03d7b, #772953);
    background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#b03d7b), to(#772953));
    background-image:-webkit-linear-gradient(top, #b03d7b, #772953);
    background-image:-o-linear-gradient(top, #b03d7b, #772953);
    background-image:linear-gradient(top, #b03d7b, #772953);
    background-repeat:repeat-x;
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#b03d7b', endColorstr='#772953', GradientType=0);
    *background-color:#772953;
    filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);
}

.toggle-button span.success {
    color: #fefefe;
    background-color:#5bb75b;
    background-image:-moz-linear-gradient(top, #62c462, #51a351);
    background-image:-ms-linear-gradient(top, #62c462, #51a351);
    background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351));
    background-image:-webkit-linear-gradient(top, #62c462, #51a351);
    background-image:-o-linear-gradient(top, #62c462, #51a351);
    background-image:linear-gradient(top, #62c462, #51a351);
    background-repeat:repeat-x;
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#62c462', endColorstr='#51a351', GradientType=0);
    *background-color:#51a351;
    filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);	
}

.toggle-button span.warning {
    color: #fefefe;
    background-color:#e86537;
    background-image:-moz-linear-gradient(top, #ef784e, #dd4814);
    background-image:-ms-linear-gradient(top, #ef784e, #dd4814);
    background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#ef784e), to(#dd4814));
    background-image:-webkit-linear-gradient(top, #ef784e, #dd4814);
    background-image:-o-linear-gradient(top, #ef784e, #dd4814);
    background-image:linear-gradient(top, #ef784e, #dd4814);
    background-repeat:repeat-x;
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ef784e', endColorstr='#dd4814', GradientType=0);
    *background-color:#dd4814;
    filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);
}

.toggle-button span.danger {
    color: #fefefe;
    background-color:#da4f49;
    background-image:-moz-linear-gradient(top, #ee5f5b, #bd362f);
    background-image:-ms-linear-gradient(top, #ee5f5b, #bd362f);
    background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f));
    background-image:-webkit-linear-gradient(top, #ee5f5b, #bd362f);
    background-image:-o-linear-gradient(top, #ee5f5b, #bd362f);
    background-image:linear-gradient(top, #ee5f5b, #bd362f);
    background-repeat:repeat-x;
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#bd362f', GradientType=0);
    *background-color:#bd362f;
    filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)	
}