/*
Tooltips

Tooltips display extra information for the customer so they can better understand our product.

Markup:
<div role="tooltip" style="height:210px;width:100%;">
    <div id="tiptip_holder" style="max-width: 400px; display: block;" class="tip_right">
        <div id="tiptip_arrow" style="margin-left: -12px; margin-top: 20.5px;">
            <div id="tiptip_arrow_inner"></div>
        </div>
        <div id="tiptip_content">
            Choose this option when you want to reverse one or more charges without losing record of what was charged.
        </div>
    </div>
    <br/>
    <div id="tiptip_holder" style="max-width: 400px; margin-top:85px;display: block;" class="tip_right">
        <div id="tiptip_arrow" style="margin-left: -12px; margin-top: 38.5px;">
            <div id="tiptip_arrow_inner"></div>
        </div>
        <div id="tiptip_content">
            <div class="">
                <p style="margin:0;">The beginning balance is your bank statement's opening balance for your reconciliation period.</p>
                <p style="margin:0;">For more information, see the <a class="tooltip__link-text" rel="external" href="#" target="_blank">help topic on bank reconciliation</a>.</p>
            </div>
        </div>
    </div>
</div>

Name: tooltip

Styleguide 2.18
*/

//variables
@tooltip-content-color: @theme-grey9;
@tooltip-border-color: @theme-grey9;
@tooltip-text-color: @theme-grey6;
@tooltip-text-color-active: @theme-green4;
@tooltip-link-hover-color:#2A7AB0;

//tiptip cheerio!
.tooltip,
.html-tooltip,
.tooltip-more,
.tooltip-bottom {
    border-bottom: 1px dotted @tooltip-border-color;
    cursor: help;

    &:hover {
        // make sure we still see this cursor when looking at disabled links
        cursor: help;
        color: @tooltip-link-hover-color
    }
}

.tooltip--no-border {
    border-style: none;
}

.tooltip__svgicon--text-top {
    vertical-align: text-top;
}

.tooltip__svgicon--margin-left-5 {
    margin-left: 5px;
}

#tiptip_holder {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: @z-index-tiptip-holder;
}

#tiptip_holder.tip_top {
    padding-bottom: 5px;
}

#tiptip_holder.tip_bottom {
    padding-top: 5px;
}

#tiptip_holder.tip_right {
    padding-left: 5px;
}

#tiptip_holder.tip_left {
    padding-right: 5px;
}

#tiptip_content {
    color: #FFFFFF;
    line-height: 18px;
    padding: 12px;
    border: 1px solid @tooltip-border-color;
    background-color: rgba(79,79,82,0.97);
    -webkit-box-shadow: 0 6px 12px 2px rgba(0,0,0,0.15);
    -moz-box-shadow: 0 6px 12px 2px rgba(0,0,0,0.15);
    box-shadow: 0 6px 12px 2px rgba(0,0,0,0.15);
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;

    a,
    a:visited {
        color: rgba(115, 182, 128, 1);
        text-decoration: underline;
    }

    a:hover {
        color: rgba(115, 182, 128, 0.85);
        text-decoration: underline;
    }

    a:active,
    a:focus {
        color: @tooltip-text-color-active;
        text-decoration: underline;
    }
}

#tiptip_arrow, #tiptip_arrow_inner {
    position: absolute;
    border-color: transparent;
    border-style: solid;
    border-width: 6px;
    height: 0;
    width: 0;
}

#tiptip_holder.tip_top #tiptip_arrow {
    border-top-color: @tooltip-border-color;
}

#tiptip_holder.tip_bottom #tiptip_arrow {
    border-bottom-color: @tooltip-border-color;
}

#tiptip_holder.tip_right #tiptip_arrow {
    border-right-color: @tooltip-border-color;
}

#tiptip_holder.tip_left #tiptip_arrow {
    border-left-color: @tooltip-border-color;
}

#tiptip_holder.tip_top #tiptip_arrow_inner {
    margin-top: -7px;
    margin-left: -6px;
    border-top-color: @tooltip-border-color;
}

#tiptip_holder.tip_bottom #tiptip_arrow_inner {
    margin-top: -5px;
    margin-left: -6px;
    border-bottom-color: @tooltip-border-color;
}

#tiptip_holder.tip_right #tiptip_arrow_inner {
    margin-top: -6px;
    margin-left: -5px;
    border-right-color: @tooltip-border-color;
}

#tiptip_holder.tip_left #tiptip_arrow_inner {
    margin-top: -6px;
    margin-left: -7px;
    border-left-color: @tooltip-border-color;
}

/* Webkit Hacks  */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    #tiptip_content {
        padding: 12px;
        background-color: rgba(79,79,82,0.97);
    }

    #tiptip_holder.tip_bottom #tiptip_arrow_inner {
        border-bottom-color: @tooltip-border-color;
    }

    #tiptip_holder.tip_top #tiptip_arrow_inner {
        border-top-color: @tooltip-border-color;
    }
}
