.ibutton-container {
    position: relative ;
    height: 20px;
    cursor: pointer;
    /* set max width to that of sprite */
    max-width: 400px;
    /* prevent text selection */
    -khtml-user-select: none;
    -o-user-select: none;
    -moz-user-select: none;
    -moz-user-focus: ignore; 
    -moz-user-input: disabled;
    /* set default width based on ON/OFF labels */
    width: 89px;
    /*float:left;*/
    text-align: left;
}

.centered .ibutton-container{
    margin: 0 auto;
}
.ibutton-item{
    top: 7px;
    display:block;
    position: absolute;
}
input[data-isIButton="true"] {
    position: absolute;
    top: 5px;
    left: 30px;
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
    opacity: 0; 

    /* allow checking of input if visible */
    -moz-user-input: enabled  !important;
}

.ibutton-handle {
    display: block;
    height: 20px;
    cursor: inherit;
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    background: transparent url(/img/ibutton/ibutton-slider-default.png) no-repeat scroll 0 -40px;
    z-index: 3;
    padding-left: 3px;
    /* set default width based on ON/OFF labels */
    width: auto;
}

.ibutton-handle-right {
    height: 100%;
    width: 100%;
    padding-right: 3px;
    background: transparent url(/img/ibutton/ibutton-slider-default.png) no-repeat scroll 100% -40px;
    z-index: 3; 
}

.ibutton-handle-middle {
    height: 100%;
    width: 100%;
    background: transparent url(/img/ibutton/ibutton-slider-default.png) no-repeat scroll 50% -40px;
    z-index: 3; 
}

div.ibutton-label-on, 
div.ibutton-label-off {
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    
    white-space: nowrap;
    font-size: 14px;
    line-height: 10px;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    height: 20px;
    position: absolute;
    width: auto;
    top: 0;
    overflow: hidden; 
    background: transparent url(/img/ibutton/ibutton-slider-default.png) no-repeat scroll 0 0;
}

div.ibutton-label-on {
    padding-left: 5px;
    position: absolute;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    left: 0;
    z-index: 1; 
}

div.ibutton-label-on span {
}

div.ibutton-label-off {
    padding-right: 1px;
    position: absolute;
    color: #eee;
    background-position: 100% 0;
    text-shadow: 0 -1px 1px rgb(153, 153, 153);
    text-align: right;
    right: 0;
    /* the off label needs to near the left edge (ideally just 5px away) 
     * it just needs to be close enough that it won't show under the handle if dragged to the left  
     */
    /*width: 95%;*/
}

div.ibutton-label-off span { 
}

/* create an outline when button gets focus via keyboard */
.ibutton-label-on label,
.ibutton-label-off label{
    cursor: inherit;
    padding: 1px 3px;
    /*font-size: 1em !important;*/
}

.ibutton-focus label {
    /* we must use border, since outline doesn't work in IE */
    border: 1px dotted #666 !important;
    padding: 0 2px;
}

.ibutton-focus div.ibutton-label-on span label {
    /* use white for more contrast */
    border-color: #fff !important;
}

/* add padding to right/left so that text gets clipped before absolute edge */
.ibutton-padding-left, .ibutton-padding-right {
    position: absolute; 
    top: 4px;
    z-index: 2; 
    background: transparent ; /*url(/img/ibutton/ibutton-slider-default.png) no-repeat scroll 0 -4px*/
    width: 3px;
    height: 20px;
}

.ibutton-padding-left {
    left: 0; 
}

.ibutton-padding-right {
    right: 0; 
    background-position: 100% -4px;
}

/* change the styles of the handle when being dragged */
.ibutton-active-handle .ibutton-handle {
    background-position: 0 -80px;
}

.ibutton-active-handle .ibutton-handle-right {
    background-position: 100% -80px;
}

.ibutton-active-handle .ibutton-handle-middle {
    background-position: 50% -80px;
}

/* styles to use when the button is disabled */
.ibutton-disabled {
    cursor: not-allowed !important; /* cursor options: default or not-allowed */
}

.ibutton-disabled .ibutton-handle {
    background-position: 0 -60px;
}

.ibutton-disabled .ibutton-handle-right {
    background-position: 100% -60px;
}

.ibutton-disabled .ibutton-handle-middle {
    background-position: 50% -60px;
}

.ibutton-disabled div.ibutton-label-on {
    background-position: 0 -20px;
}

.ibutton-disabled div.ibutton-label-off {
    background-position: 100% -20px;
}

.ibutton-disabled .ibutton-padding-left {
    background-position: 0 -20px;
}

.ibutton-disabled .ibutton-padding-right {
    background-position: 100% -20px;
}

.ibutton-disabled div.ibutton-label-on {
    color: #fff;
}

.ibutton-disabled div.ibutton-label-off {
    color: #cbcbcb;
}
.control-group .ibutton-container label{
}
.ie-lte9 .control-group .ibutton-container label {
}
