/* tooltip */
.on-focus{
    position: relative;
}

.tool-tip{
    width: 80px;
    height: 22px;
    margin-left: -43px;
    top: auto;
    bottom: 114%;
    left: 50%;
    color: #fff;
    background-color: #EFE9D8;
    text-shadow: none;
    font-size: .8em;
    visibility: hidden;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -o-border-radius: 2px;
    border-radius: 2px;
    text-align: center;
    opacity: 0;
    z-index: 999;
    padding: 3px 3px;
    position: absolute;
    cursor: default;
    -webkit-transition: all 240ms ease-in-out;
    -moz-transition: all 240ms ease-in-out;
    -ms-transition: all 240ms ease-in-out;
    -o-transition: all 240ms ease-in-out;
    transition: all 240ms ease-in-out;
}

.tool-tip:after{
    position: absolute;
    bottom: -12px;
    left: 50%;
    margin-left: -7px;
    content: ' ';
    height: 0px;
    width: 0px;
    border: 6px solid transparent;
    border-top-color: #EFE9D8;
}

/* tool tip position bottom */

.tool-tip.bottom{
    top: 115%;
    bottom: auto;
    left: 1%;
    margin-bottom: auto;
    border: 1px solid #e11c1b;
    color: #e11c1b;
    font-weight: 600;
}

.tool-tip.bottom:after{
    position: absolute;
    top: -12px;
    left: 35%;
    margin-left: 0;
    content: ' ';
    height: 0px;
    width: 0px;
    border: 6px solid transparent;
    border-top-color: transparent;
    border-bottom-color: #EFE9D8;
}


/* on hover of element containing tooltip default*/

*:not(.on-focus):hover > .tool-tip,
.on-focus .limit-error + .tool-tip, .on-focus .qty-error + .tool-tip, .on-focus .gw_line_error + .tool-tip{
    visibility: visible;
    opacity: 1;
    -webkit-transition: all 240ms ease-in-out;
    -moz-transition: all 240ms ease-in-out;
    -ms-transition: all 240ms ease-in-out;
    -o-transition: all 240ms ease-in-out;
    transition: all 240ms ease-in-out;
}


/* tool tip slide out */
*:not(.on-focus) > .tool-tip.slideIn,
.on-focus > .tool-tip{
    display: block;
}

.on-focus > .tool-tip.slideIn{
    z-index: -1;
}

.on-focus >.limit-error + .tool-tip.slideIn,.on-focus .qty-error + .tool-tip.slideIn, .on-focus .gw_line_error + .tool-tip.slideIn{
    z-index: 1;
}

/* bottom slideIn */

*:not(.on-focus) > .tool-tip.slideIn.bottom,
.on-focus > .tool-tip.slideIn.bottom{
    top: 50%;
}

.on-focus > .gw_line_error + .tool-tip.slideIn.bottom{
    left:20%;
}

.on-focus > .qty-error + .tool-tip.slideIn.bottom,
.on-focus > .gw_line_error + .tool-tip.slideIn.bottom{
    width:200px;
    height:20px;
}

*:not(.on-focus):hover > .tool-tip.slideIn.bottom,
.on-focus > .limit-error + .tool-tip.slideIn.bottom, .on-focus > .qty-error + .tool-tip.slideIn.bottom, .on-focus > .gw_line_error + .tool-tip.slideIn.bottom{
    top: 115%;
}

.on-focus > .limit-error + .tool-tip.slideIn.bottom,
.on-focus > .qty-error + .tool-tip.slideIn.bottom,
.on-focus > .gw_line_error + .tool-tip.slideIn.bottom{
    top: 100%;
}