/* Reusable Tooltip Component - Single Mobile-Optimized Design */

.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip-trigger {
    cursor: help;
    border-bottom: 1px dotted #999;
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-bottom: 2px;
}

.tooltip-content {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    padding: 12px 14px;
    background-color: #363636;
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 6px;
    white-space: normal;
    max-width: 280px;
    min-width: 200px;
    text-align: left;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Arrow pointing up to the middle of the trigger */
.tooltip-content::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 20px;
    border: 6px solid transparent;
    border-bottom-color: #363636;
}

/* Show tooltip on hover (desktop) */
.tooltip-wrapper:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
}

/* Show tooltip when active class is added (mobile tap) */
.tooltip-wrapper.active .tooltip-content {
    opacity: 1;
    visibility: visible;
}
