/* ================================================
   Hover Tooltip — Frontend Styles
   Anosmedia.com
================================================ */

/* Trigger element */
.ht-tooltip {
    border-bottom: 1px dashed currentColor;
    cursor: help;
    position: relative;
    display: inline;
}

/* Images with tooltip */
img.ht-tooltip {
    border-bottom: none;
    outline: 2px dashed rgba(0, 0, 0, 0.3);
    outline-offset: 2px;
}

/* Tooltip box */
.ht-tooltip-box {
    position: absolute;
    z-index: 9999;
    padding: 7px 12px;
    line-height: 1.5;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    word-wrap: break-word;
    white-space: normal;

    /* defaults – overridden by inline style from PHP */
    background: #333;
    color: #fff;
    font-size: 13px;
    border-radius: 4px;
    max-width: 240px;
}

.ht-tooltip-box.ht-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Arrow */
.ht-tooltip-box::after {
    content: '';
    position: absolute;
    left: 14px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

.ht-tooltip-box.ht-pos-bottom::after {
    top: -6px;
    border-bottom: 6px solid var(--ht-bg, #333);
}

.ht-tooltip-box.ht-pos-top::after {
    bottom: -6px;
    border-top: 6px solid var(--ht-bg, #333);
}

/* Editor highlight */
.editor-rich-text span[data-tooltip],
.block-editor-rich-text__editable span[data-tooltip] {
    border-bottom: 2px dotted #0073aa;
    cursor: help;
}
