/* Стили для триггера подсказки */
.tooltip-trigger {
    display: inline-block;
    cursor: pointer;
    font-weight: bold;
    margin: 0 2px;
    transition: all 0.3s ease;
    border-radius: 3px;
    padding: 1px 4px;
    text-decoration: none !important;
    border: none !important;
    background: none !important;
    position: relative;
}

/* Убираем ВСЕ подчеркивания */
.tooltip-trigger:hover {
    text-decoration: none !important;
    border-bottom: none !important;
}

.tooltip-trigger:focus {
    outline: none !important;
    text-decoration: none !important;
}

/* Специфичные стили для удаления подчеркивания в WordPress */
a .tooltip-trigger,
.tooltip-trigger a {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Собственный hover эффект */
.tooltip-trigger:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Оверлей и модальное окно */
.tooltip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.tooltip-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    max-width: 90%;
    width: 500px;
    opacity: 0;
    animation: modalAppear 0.3s ease 0.1s forwards;
}

.tooltip-content {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin: 0;
    padding-right: 40px; /* Место для крестика */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tooltip-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 10000;
}

.tooltip-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Анимации */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes modalAppear {
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .tooltip-modal {
        width: 95%;
        padding: 25px 20px 20px 20px;
        margin: 20px;
    }
    
    .tooltip-content {
        font-size: 14px;
        padding-right: 35px; /* Уменьшаем отступ для мобильных */
        line-height: 1.4;
    }
    
    .tooltip-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .tooltip-modal {
        padding: 20px 15px 15px 15px;
    }
    
    .tooltip-content {
        font-size: 14px;
        padding-right: 30px;
    }
    
    .tooltip-close {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}