/*!
 * hcg-tooltip v1.0.0
 * Default styles for the Facebook-style tooltip library.
 * Edit freely or override these rules from your own stylesheet.
 * @see https://www.html-code-generator.com/javascript/tooltip-library
 * @license MIT
 */

.hcg-tooltip {
    --hcg-tooltip-bg: #000;
    --hcg-tooltip-color: #fff;
    --hcg-tooltip-opacity: 0.8;
    --hcg-tooltip-radius: 3px;
    --hcg-tooltip-font-size: 10px;
    --hcg-tooltip-max-width: 200px;
    --hcg-tooltip-z: 100000;
    --hcg-tooltip-arrow-size: 5px;

    position: absolute;
    padding: var(--hcg-tooltip-arrow-size);
    z-index: var(--hcg-tooltip-z);
    font-size: var(--hcg-tooltip-font-size);
    pointer-events: none;
    opacity: 0;
    transition: opacity 150ms ease;
}

.hcg-tooltip--visible {
    opacity: var(--hcg-tooltip-opacity);
}

@media (prefers-reduced-motion: reduce) {
    .hcg-tooltip {
        transition: none;
    }
}

.hcg-tooltip-body {
    background-color: var(--hcg-tooltip-bg);
    color: var(--hcg-tooltip-color);
    max-width: var(--hcg-tooltip-max-width);
    padding: 5px 8px 4px;
    text-align: center;
    border-radius: var(--hcg-tooltip-radius);
    line-height: 1.4;
    word-wrap: break-word;
}

.hcg-tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
    line-height: 0;
    border: var(--hcg-tooltip-arrow-size) dashed var(--hcg-tooltip-bg);
}

.hcg-tooltip-arrow-n { border-bottom-color: var(--hcg-tooltip-bg); }
.hcg-tooltip-arrow-s { border-top-color: var(--hcg-tooltip-bg); }
.hcg-tooltip-arrow-e { border-left-color: var(--hcg-tooltip-bg); }
.hcg-tooltip-arrow-w { border-right-color: var(--hcg-tooltip-bg); }

.hcg-tooltip--n .hcg-tooltip-arrow {
    top: 0;
    left: 50%;
    margin-left: calc(var(--hcg-tooltip-arrow-size) * -1);
    border-bottom-style: solid;
    border-top: none;
    border-left-color: transparent;
    border-right-color: transparent;
}

.hcg-tooltip--nw .hcg-tooltip-arrow {
    top: 0;
    left: 10px;
    border-bottom-style: solid;
    border-top: none;
    border-left-color: transparent;
    border-right-color: transparent;
}

.hcg-tooltip--ne .hcg-tooltip-arrow {
    top: 0;
    right: 10px;
    border-bottom-style: solid;
    border-top: none;
    border-left-color: transparent;
    border-right-color: transparent;
}

.hcg-tooltip--s .hcg-tooltip-arrow {
    bottom: 0;
    left: 50%;
    margin-left: calc(var(--hcg-tooltip-arrow-size) * -1);
    border-top-style: solid;
    border-bottom: none;
    border-left-color: transparent;
    border-right-color: transparent;
}

.hcg-tooltip--sw .hcg-tooltip-arrow {
    bottom: 0;
    left: 10px;
    border-top-style: solid;
    border-bottom: none;
    border-left-color: transparent;
    border-right-color: transparent;
}

.hcg-tooltip--se .hcg-tooltip-arrow {
    bottom: 0;
    right: 10px;
    border-top-style: solid;
    border-bottom: none;
    border-left-color: transparent;
    border-right-color: transparent;
}

.hcg-tooltip--e .hcg-tooltip-arrow {
    right: 0;
    top: 50%;
    margin-top: calc(var(--hcg-tooltip-arrow-size) * -1);
    border-left-style: solid;
    border-right: none;
    border-top-color: transparent;
    border-bottom-color: transparent;
}

.hcg-tooltip--w .hcg-tooltip-arrow {
    left: 0;
    top: 50%;
    margin-top: calc(var(--hcg-tooltip-arrow-size) * -1);
    border-right-style: solid;
    border-left: none;
    border-top-color: transparent;
    border-bottom-color: transparent;
}
