/* טולטיפ גלובלי — מחליף את טולטיפ ה-title המובנה של הדפדפן (איטי, נפתח מתחת לסמן
   וממוקם בצורה בלתי-מורגשת) בבועה קטנה שנפתחת מהר, מעל האלמנט, וממורכזת עליו. */

.hpg-global-tooltip {
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    max-width: 240px;
    background: #1f2937;
    color: #fff;
    font-family: 'Rubik', 'Segoe UI', Tahoma, sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.1s ease, transform 0.1s ease;
    direction: rtl;
    white-space: normal;
}

.hpg-global-tooltip.hpg-tip-multiline {
    border-radius: 12px;
    text-align: start;
    white-space: pre-line;
}

.hpg-global-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hpg-global-tooltip::after {
    content: '';
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    border: 5px solid transparent;
}

.hpg-global-tooltip[data-hpg-tip-pos="above"]::after {
    top: 100%;
    border-top-color: #1f2937;
}

.hpg-global-tooltip[data-hpg-tip-pos="below"]::after {
    bottom: 100%;
    border-bottom-color: #1f2937;
}
