.optiscroll {
    position: relative;
    overflow: auto
}

.optiscroll.is-enabled {
    overflow: hidden
}

.optiscroll-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: scroll;
    -webkit-overflow-scrolling: touch
}

.optiscroll-v, .optiscroll-h {
    position: absolute;
    visibility: hidden;
    z-index: 2;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

.optiscroll-v {
    right: 0
}

.optiscroll-h {
    bottom: 0
}

.optiscroll.has-vtrack > .optiscroll-v, .optiscroll.has-htrack > .optiscroll-h {
    visibility: visible
}

.optiscroll-vtrack, .optiscroll-htrack {
    display: block;
    position: absolute;
    opacity: 1;
    -webkit-transform: translate(0%, 0%);
    -ms-transform: translate(0%, 0%);
    transform: translate(0%, 0%);
    transition: height 0.2s ease 0s, width 0.2s ease 0s, opacity 0.2s ease 0s;
    box-sizing: border-box
}

.optiscroll-v {
    top: 4px;
    bottom: 4px;
    width: 0
}

.optiscroll-h {
    left: 4px;
    right: 4px;
    height: 0
}

.optiscroll.has-vtrack.has-htrack > .optiscroll-v {
    bottom: 8px
}

.optiscroll.has-vtrack.has-htrack > .optiscroll-h {
    right: 8px
}

.optiscroll-vtrack, .optiscroll-htrack {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    box-shadow: 0 0 1px #FFF;
    opacity: 0
}

.optiscroll-vtrack {
    width: 3px;
    right: 4px
}

.optiscroll-htrack {
    height: 3px;
    bottom: 4px
}

.optiscroll:hover > .optiscroll-v .optiscroll-vtrack, .optiscroll:hover > .optiscroll-h .optiscroll-htrack {
    opacity: 1
}
