/* Custom Tippy.js theme - Simple grey rectangle */
.tippy-box[data-theme~='csgm-grey'] {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    max-width: 250px;
    text-align: center;
}

/* Remove the arrow completely */
.tippy-box[data-theme~='csgm-grey'] .tippy-arrow {
    display: none;
}

/* Custom animation - subtle scale with smooth easing */
.tippy-box[data-theme~='csgm-grey'] {
    transform-origin: center bottom;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation states */
.tippy-box[data-theme~='csgm-grey'][data-state='hidden'] {
    opacity: 0;
    transform: scale(0.85);
}

.tippy-box[data-theme~='csgm-grey'][data-state='visible'] {
    opacity: 1;
    transform: scale(1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tippy-box[data-theme~='csgm-grey'] {
        font-size: 12px;
        padding: 6px 10px;
        max-width: 200px;
    }
}

/* Optional: Different color themes for different sections */
.tippy-box[data-theme~='csgm-blue'] {
    background-color: #698EE9;
    color: white;
    border: 1px solid #5a7bc7;
}

.tippy-box[data-theme~='csgm-blue'] .tippy-arrow {
    display: none;
}

.tippy-box[data-theme~='csgm-green'] {
    background-color: #2B7401;
    color: white;
    border: 1px solid #1d5001;
}

.tippy-box[data-theme~='csgm-green'] .tippy-arrow {
    display: none;
}