/**
 * WC Product Uploader - Tabs Styles
 */

.wcpu-wcdp-tabs-container {
    margin: 1.5em 0 0.8em;
    clear: both;
    width: 100% !important;
}

.wcpu-wcdp-tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 -1px 0;
    border-bottom: 1px solid #d3ced2;
    width: 100%;
}

.wcpu-wcdp-tab-nav-item {
    margin: 0 5px 0 0;
    padding: 0;
    list-style: none; /* Ensure no bullets */
    flex: 1; /* Make tabs equal width */
}

.wcpu-wcdp-tab-nav-item a {
    display: block;
    padding: 10px 15px;
    text-decoration: none !important; /* Force no underline */
    background-color: #f8f8f8;
    color: #515151;
    border: 1px solid #d3ced2;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wcpu-wcdp-tab-nav-item:hover a {
    background-color: #f0f0f0;
}

.wcpu-wcdp-tab-nav-item.active a {
    background-color: #fff;
    color: #333;
    position: relative;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
}

.wcpu-wcdp-tab-content {
    border: 1px solid #d3ced2;
    border-top: none;
    padding: 15px;
    background: #fff;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

.wcpu-wcdp-tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.wcpu-wcdp-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.wcpu-wcdp-tab-pane h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

/* Button styling in tabs */
.wcpu-wcdp-tab-pane .wcdp-designer-button,
.wcpu-wcdp-tab-pane .button {
    display: inline-block;
    margin-top: 10px;
}

/* Keep the add to cart button visible since we're only tabbing the actions */
form.cart .single_add_to_cart_button {
    clear: both;
    margin-top: 15px;
}

/* Position the tabs properly within the product form */
.wcpu-wcdp-tabs-container {
    position: relative;
    clear: both;
    margin-top: 1.5em;
}

/* Ensure personalize button is visible */
.wcdp-designer-button {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.quantity.buttons_added {
    display: none !important;
}

/* Quantity styles are now handled by hooks and a separate CSS file */

/* Responsive styles */
@media (max-width: 768px) {
    .wcpu-wcdp-tabs-nav {
        flex-direction: column;
        border-bottom: none;
    }
    
    .wcpu-wcdp-tab-nav-item {
        margin: 0 0 5px 0;
    }
    
    .wcpu-wcdp-tab-nav-item a {
        border-radius: 5px;
        border: 1px solid #d3ced2;
    }
    
    .wcpu-wcdp-tab-nav-item.active a {
        border-bottom: 1px solid #d3ced2;
        margin-bottom: 0;
    }
    
    .wcpu-wcdp-tab-content {
        border: 1px solid #d3ced2;
    }
}
