.fcf-box {
    display: flex;
    flex-direction: column;
    /* gap: 20px; REMOVED so Elementor sliders have full control */
    width: 100%;
}

.fcf-title {
    margin: 0; /* Prevents your active WordPress theme from adding hidden margins */
}

.fcf-chart {
    margin: 0 auto;
    position: relative;
}

.fcf-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Legend Tabs */
.fcf-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
    box-sizing: border-box;
    /* Padding, Width, and Border Radius are now strictly controlled via Elementor */
}

/* Subtle hover effect */
.fcf-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* Active click shrink */
.fcf-item:active {
    transform: scale(0.95);
}

/* Contained Pulse Shrink Animation */
@keyframes fcf-pulse-shrink {
    0% { 
        transform: scale(1); 
        box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.08), 0 0 0 0 rgba(0, 0, 0, 0.05); 
    }
    50% { 
        transform: scale(0.97); 
        box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.08), 0 0 0 6px rgba(0, 0, 0, 0); 
    }
    100% { 
        transform: scale(1); 
        box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.08), 0 0 0 0 rgba(0, 0, 0, 0); 
    }
}

/* Active Highlight & Pulse Shrink */
.fcf-item.active {
    background-color: #ffffff;
    z-index: 2;
    animation: fcf-pulse-shrink 2s infinite ease-in-out; 
}

.fcf-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Pop the dot when active */
.fcf-item.active .dot {
    transform: scale(1.3);
}

.fcf-value {
    font-weight: bold;
}