
/* Tooltip container inside RTE */
ins .tooltip {
    position: relative;
    display: inline-block;
}

/* Inside RTE: Hide citation text */
ins .tooltip .tooltip-citation {
    display: none;
}

/* On article page: Hide citation icon and hover text */
.tooltip .tooltip-icon, .tooltip .tooltip-hover-text {
    display: none;
}

.tooltip .tooltip-citation {
    cursor: pointer;
    text-decoration: none;
    position: relative;
    top: -0.5em;
    font-size: 80%;
}

ins .tooltip .tooltip-icon, ins .tooltip .tooltip-icon-invalid {
    border-radius: 50%;
    background-color: #222f3e;
    color: #d4dee7;
    width: 16px;
    height: 16px;
    display: block;
    text-align: center;
    font-weight: bold;
    margin-left: -5px;
}

ins .tooltip .tooltip-icon-invalid {
    background-color: #f44336;
    color: white;
}



ins .tooltip .tooltip-icon span, ins .tooltip .tooltip-icon-invalid span {
    vertical-align: sub;
    font-size: 1.2rem;
}

/* Tooltip hover text */
ins .tooltip .tooltip-hover-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    max-height: 220px;
    background-color: #222f3e;
    color: #d4dee7;
    padding: 10px;
    border-radius: 6px;
    z-index: 1;
}

/* Show the tooltip hover text when you mouse over the tooltip container */
ins .tooltip:hover .tooltip-hover-text {
    display: initial;
    pointer-events: none;
}