/* Style 99 Tooltip Animations */
.ctc_s_99 {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.ctc_s_99 .ht-ctc-cta-hover {
    transition: all 0.3s ease-in-out;
    white-space: normal;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    position: relative;
    margin: 0 10px;
    max-width: 200px;
    word-wrap: break-word;
    word-break: break-word;
    text-align: center;
    line-height: 1.4;
}

.ctc_s_99 .ht-ctc-cta-hover.show-periodic {
    animation: tooltipPulse 0.5s ease-in-out;
}

.ctc_s_99 .ht-ctc-cta-hover.fade-in {
    animation: fadeInTooltip 0.3s ease-in-out;
}

.ctc_s_99 .ht-ctc-cta-hover.fade-out {
    animation: fadeOutTooltip 0.3s ease-in-out;
}

@keyframes tooltipPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInTooltip {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutTooltip {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* Position adjustments for different sides */
.ctc_s_99[style*="right"] .ht-ctc-cta-hover {
    order: 0;
    margin-right: 10px;
    margin-left: 0;
}

.ctc_s_99[style*="left"] .ht-ctc-cta-hover {
    order: 1;
    margin-left: 10px;
    margin-right: 0;
}

/* Override any conflicting margin styles */
.ctc_s_99 .ht-ctc-cta-hover {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ctc_s_99 .ht-ctc-cta-hover {
        font-size: 12px;
        padding: 6px 8px;
        margin: 0 5px;
        max-width: 150px;
        line-height: 1.3;
    }

    .ctc_s_99[style*="right"] .ht-ctc-cta-hover {
        margin-right: 5px;
        margin-left: 0;
    }

    .ctc_s_99[style*="left"] .ht-ctc-cta-hover {
        margin-left: 5px;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .ctc_s_99 .ht-ctc-cta-hover {
        max-width: 120px;
        font-size: 11px;
        padding: 4px 6px;
    }
}

@media (min-width: 1024px) {
    .ctc_s_99 .ht-ctc-cta-hover {
        max-width: 250px;
    }
}