/* Subscription Active Badge with Tooltip */
.wcip-subscription-badge-container {
    position: relative;
    display: inline-block;
    margin: 0 10px;
}

.wcip-subscription-badge {
    background: #10b981;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    cursor: help;
    transition: all 0.2s ease;
}

.wcip-subscription-badge:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4);
}

.wcip-subscription-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    z-index: 1000;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wcip-subscription-tooltip.show {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.wcip-subscription-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #2d3748;
}

/* Animation for smooth appearance */
.wcip-subscription-badge-container:hover .wcip-subscription-tooltip {
    display: block;
    animation: tooltipFadeIn 0.2s ease forwards;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .wcip-subscription-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .wcip-subscription-tooltip {
        font-size: 11px;
        padding: 6px 10px;
    }
}
