/* Info Link and Tooltip Styles */
.info-link {
    display: inline-block;
    margin-top: 4px;
    color: #2e64bf !important;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: color .15s ease;
}

.info-link:hover {
    color: #1e4a8f !important;
    text-decoration: underline;
}

.info-link:visited {
    color: #2e64bf !important;
}

.info-tooltip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.info-tooltip-overlay.show {
    display: block;
    opacity: 1;
}

.info-tooltip-container {
    position: fixed;
    z-index: 99999;
    transform: translateX(-50%);
    animation: slideUpFade 0.3s ease forwards;
}

.info-tooltip {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    max-width: 450px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-height: 70vh;
    overflow-y: auto;
    white-space: normal;
    word-wrap: break-word;
}

.info-tooltip::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.info-tooltip .close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    z-index: 1;
}

.info-tooltip .close-btn:hover {
    background: #e0e0e0;
}

.info-tooltip .title {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin: 0 0 12px 0;
    padding-right: 30px;
}

.info-tooltip .content {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .info-tooltip {
        max-width: 85vw;
        padding: 16px;
    }

    .info-tooltip .title {
        font-size: 13px;
    }

    .info-tooltip .content {
        font-size: 12px;
    }
}
