﻿.th-highlight {
    position: fixed;
    inset: 0;
    z-index: 100000;
    pointer-events: none;
    animation: thHighlightIn 180ms ease;
}

.th-highlight-shade {
    position: absolute;
    background: rgba(0, 0, 0, 0.60);
    pointer-events: auto;
}

.th-highlight-border {
    position: absolute;
    box-sizing: border-box;
    border: 2px solid #fff;
    pointer-events: none;
}

.th-highlight-tooltip {
    position: absolute;
    box-sizing: border-box;
    width: max-content;
    max-width: min(340px, calc(100% - 24px));
    max-height: calc(100% - 24px);
    overflow: auto;
    padding: 15px 20px;
    background: #fff;
    color: #333;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.20);
    pointer-events: auto;
}

.th-highlight.is-closing {
    opacity: 0;
    transition: opacity 150ms ease;
}

    .th-highlight.is-closing * {
        pointer-events: none;
    }

@keyframes thHighlightIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .th-highlight {
        animation: none;
    }

        .th-highlight.is-closing {
            transition: none;
        }
}
