/* ========================================
   AI MARKETPLACE INTEGRATION STYLES
   Hide Designer Image Generator when coming from AI Marketplace Gallery
======================================== */

/* Hide Designer Image Generator when coming from AI Marketplace */
.hide-ai-generator #openai-image-generator {
    display: none !important;
}

/* Ensure the product details section remains visible and properly styled */
.hide-ai-generator .fpd-product-details-container {
    display: block !important;
    visibility: visible !important;
    /* Position at top level with FPD */
    order: -1;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Position product details at the same level as FPD */
.hide-ai-generator .woocommerce div.product .summary {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Move product details to top level */
.hide-ai-generator .summary .fpd-product-details-container {
    order: -10; /* Ensure it comes first */
    margin-bottom: 20px;
}

/* Adjust spacing when generator is hidden to maintain clean layout */
.hide-ai-generator .woocommerce-product-details__short-description {
    margin-bottom: 20px;
    order: 1;
}

.hide-ai-generator .single_add_to_cart_button {
    margin-top: 10px;
    order: 2;
}

/* Ensure FPD designer remains fully functional */
.hide-ai-generator .fpd-product-designer-wrapper {
    display: block !important;
    visibility: visible !important;
    order: 0; /* Position after product details but before other elements */
}

/* Remove any unwanted spacing */
.hide-ai-generator .woocommerce div.product .summary > * {
    margin-top: 0;
} 