/**
 * Blog Over Customizer Tabs Control Styles
 */

/* Target the LI wrapper generated by Kirki/WP */
li.customize-control.customize-control-blog-over-tabs {
    margin: 0 !important;
    padding: 0 !important;
}

.blog-over-tabs-wrapper {
    margin: -15px -12px 15px -12px; /* Pulls to very top and sides, leaves space below */
    background: #fff;
    display: flex;
    border-bottom: 2px solid #e5e5e5;
}

.blog-over-tabs-controls {
    display: flex;
    width: 100%;
}

.blog-over-tab-btn {
    cursor: pointer;
    height: 50px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center;
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    border-bottom: 3px solid #fff !important;
    background: #fff !important;
    color: #555d66 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.blog-over-tab-btn:hover {
    color: #2271b1 !important;
}

.blog-over-tab-btn.active {
    color: #2271b1 !important;
    border-bottom-color: #2271b1 !important;
}

/* 
 * Visibility Logic
 * We use !important to override Kirki's active_callback inline styles,
 * ensuring controls stay hidden if they belong to the inactive tab.
 */

/* When GENERAL tab is active, hide DESIGN controls */
.blog-over-section-tab-general .customize-control.blog-over-tab-design {
    display: none !important;
}

/* When DESIGN tab is active, hide GENERAL controls (anything that is not design, all, or the tab control itself) */
.blog-over-section-tab-design .customize-control:not(.blog-over-tab-design):not(.blog-over-tab-all):not(.customize-control-blog-over-tabs) {
    display: none !important;
}
