/* ===== WF PRODUCT BUNDEL - COMPLETE CSS WITH HIGH SPECIFICITY ===== */

/* Force our styling with high specificity to override theme/builder CSS */
.bundel-product-selector.bundel-product-selector {
    background: #f8f9fa !important;
    color: #495057 !important;
    padding: 20px !important;
    margin: 20px 0 !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

/* Shortcode versie styling */
.bundel-product-selector.shortcode-version.bundel-product-selector.shortcode-version {
    margin: 30px 0 !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
    border: 2px solid #e9ecef !important;
}

.bundel-product-selector h3.bundel-product-selector h3,
.bundel-product-selector h3 {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    color: #495057 !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    text-align: center !important;
    background: transparent !important;
}

.bundel-product-selector p.bundel-product-selector p,
.bundel-product-selector p {
    color: #6c757d !important;
    margin-bottom: 25px !important;
    text-align: center !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    background: transparent !important;
}

.bundel-choice.bundel-choice {
    margin-bottom: 35px !important;
    background: white !important;
    color: #495057 !important;
    padding: 20px !important;
    border-radius: 8px !important;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
}

.bundel-choice h4.bundel-choice h4,
.bundel-choice h4 {
    color: #343a40 !important;
    margin: 0 0 15px 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #e9ecef !important;
    background: transparent !important;
}

.bundel-choice h5.bundel-choice h5,
.bundel-choice h5 {
    color: #495057 !important;
    margin: 15px 0 8px 0 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    background: transparent !important;
}

.bundel-choice select.bundel-choice select,
.bundel-choice select {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid #ced4da !important;
    border-radius: 6px !important;
    margin-bottom: 15px !important;
    font-size: 16px !important;
    background: white !important;
    color: #495057 !important;
    transition: all 0.3s ease !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 12px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px !important;
    padding-right: 48px !important;
}

.bundel-choice select:focus.bundel-choice select:focus,
.bundel-choice select:focus {
    border-color: #007cba !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1) !important;
}

.bundel-choice select:disabled.bundel-choice select:disabled,
.bundel-choice select:disabled {
    background-color: #f8f9fa !important;
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    color: #6c757d !important;
}

.bundel-size-container.bundel-size-container {
    margin-top: 20px !important;
    padding: 20px !important;
    background: #f8f9fa !important;
    color: #495057 !important;
    border: 1px solid #e9ecef !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}

.bundel-size-select.bundel-size-select {
    margin-bottom: 0 !important;
}

.product-preview.product-preview {
    display: none;
    background: white !important;
    color: #495057 !important;
    padding: 20px !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 8px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    margin-top: 20px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

.product-preview.show.product-preview.show {
    display: block !important;
    animation: fadeInUp 0.3s ease !important;
}

.product-preview img.product-preview img,
.product-preview img {
    max-width: 150px !important;
    max-height: 150px !important;
    margin-bottom: 15px !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s ease !important;
}

.product-preview img:hover.product-preview img:hover,
.product-preview img:hover {
    transform: scale(1.05) !important;
}

.product-preview h5.product-preview h5,
.product-preview h5 {
    margin: 0 0 8px 0 !important;
    color: #495057 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    background: transparent !important;
}

.product-preview p.product-preview p,
.product-preview p {
    margin: 0 !important;
    color: #6c757d !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    background: #e8f5e8 !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    display: inline-block !important;
}

.bundel-total.bundel-total {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    color: #4e8a6d !important;
    padding: 25px !important;
    border: 3px solid #4e8a6d !important;
    border-radius: 12px !important;
    text-align: center !important;
    margin: 30px 0 !important;
    box-shadow: 0 4px 16px rgba(78, 138, 109, 0.15) !important;
}

.bundel-total strong.bundel-total strong,
.bundel-total strong {
    font-size: 24px !important;
    color: #4e8a6d !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
    background: transparent !important;
}

.bundel-button-container.bundel-button-container {
    margin-top: 25px !important;
    text-align: center !important;
    background: transparent !important;
}

.add-bundel-to-cart.add-bundel-to-cart {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    color: white !important;
    padding: 15px 30px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transition: all 0.3s ease !important;
    min-width: 250px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.add-bundel-to-cart:enabled.add-bundel-to-cart:enabled {
    background: linear-gradient(135deg, #4e8a6d 0%, #3d6b52 100%) !important;
    cursor: pointer !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.add-bundel-to-cart:enabled:hover.add-bundel-to-cart:enabled:hover {
    background: linear-gradient(135deg, #3d6b52 0%, #2d5239 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(78, 138, 109, 0.25) !important;
}

.add-bundel-to-cart:enabled:active.add-bundel-to-cart:enabled:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(78, 138, 109, 0.3) !important;
}

.add-bundel-to-cart:disabled.add-bundel-to-cart:disabled {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transform: none !important;
}

/* Loading state for size selects */
.bundel-size-select option[value=""]:first-child {
    font-style: italic !important;
    color: #6c757d !important;
}

/* Stock indicators */
.bundel-size-select option:disabled {
    color: #dc3545 !important;
    font-style: italic !important;
    background-color: #f8f9fa !important;
}

/* Success state */
.add-bundel-to-cart.success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
    cursor: default !important;
}

/* Loading state */
.add-bundel-to-cart.loading {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    cursor: wait !important;
}

/* ===== BREAKDANCE SAFE CART HIDING STYLES ===== */

/* CRITICAL: NEVER HIDE IN ANY EDITOR CONTEXT */
body.breakdance-editor .cart,
body.breakdance-editor .single_add_to_cart_button,
body.breakdance-editor form.cart,
body.breakdance-editor .variations_form,
body.breakdance-editor .woocommerce-variation-add-to-cart,
body.breakdance-editor .quantity,
body.breakdance-editor .variations,
body.breakdance-editor .woocommerce-variation,
body.breakdance-editor .single_variation_wrap,
body.bde-editor .cart,
body.bde-editor .single_add_to_cart_button,
body.bde-editor form.cart,
body.bde-editor .variations_form,
body.bde-editor .woocommerce-variation-add-to-cart,
body.bde-editor .quantity,
body.bde-editor .variations,
body.bde-editor .woocommerce-variation,
body.bde-editor .single_variation_wrap,
.breakdance-editor .cart,
.breakdance-editor .single_add_to_cart_button,
.breakdance-editor form.cart,
.breakdance-editor .variations_form,
.breakdance-editor .woocommerce-variation-add-to-cart,
.breakdance-editor .quantity,
.breakdance-editor .variations,
.breakdance-editor .woocommerce-variation,
.breakdance-editor .single_variation_wrap,
.bde-editor .cart,
.bde-editor .single_add_to_cart_button,
.bde-editor form.cart,
.bde-editor .variations_form,
.bde-editor .woocommerce-variation-add-to-cart,
.bde-editor .quantity,
.bde-editor .variations,
.bde-editor .woocommerce-variation,
.bde-editor .single_variation_wrap {
    display: block !important;
    opacity: 0.7 !important;
    border: 2px dashed #007cba !important;
    position: relative !important;
    background: rgba(0, 124, 186, 0.05) !important;
}

/* Editor indicator overlay */
.breakdance-editor .cart::before,
.bde-editor .cart::before,
.breakdance-editor form.cart::before,
.bde-editor form.cart::before {
    content: "WooCommerce Cart (Verborgen op frontend voor bundel producten)" !important;
    position: absolute !important;
    top: -25px !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(0, 124, 186, 0.9) !important;
    color: white !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    border-radius: 4px 4px 0 0 !important;
    z-index: 1000 !important;
    font-family: Arial, sans-serif !important;
    font-weight: 500 !important;
    text-align: center !important;
}

/* ONLY HIDE FOR BUNDEL PRODUCTS ON FRONTEND (NOT IN EDITORS) */
body.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .single-product .cart,
body.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .single-product .single_add_to_cart_button,
body.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .single-product form.cart,
body.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .single-product .variations_form,
body.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .single-product .woocommerce-variation-add-to-cart,
body.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .single-product .quantity,
body.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .single-product .variations,
body.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .single-product .woocommerce-variation,
body.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .single-product .single_variation_wrap {
    display: none !important;
}

/* Alternative more specific targeting for stubborn themes */
.wf-bundel-hide-cart:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .cart,
.wf-bundel-hide-cart:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .single_add_to_cart_button,
.wf-bundel-hide-cart:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) form.cart,
.wf-bundel-hide-cart:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .variations_form,
.wf-bundel-hide-cart:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .woocommerce-variation-add-to-cart,
.wf-bundel-hide-cart:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .quantity,
.wf-bundel-hide-cart:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .variations,
.wf-bundel-hide-cart:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .woocommerce-variation,
.wf-bundel-hide-cart:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .single_variation_wrap {
    display: none !important;
}

/* Even more specific targeting for very stubborn themes */
.single-product.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .product .cart,
.single-product.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .product .single_add_to_cart_button,
.single-product.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .product form.cart,
.single-product.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .product .variations_form,
.single-product.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .product .woocommerce-variation-add-to-cart,
.single-product.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .product .quantity,
.single-product.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .product .variations,
.single-product.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .product .woocommerce-variation,
.single-product.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .product .single_variation_wrap {
    display: none !important;
}

/* Bundel selector placeholder styling for editor */
.bundel-product-selector-placeholder.bundel-product-selector-placeholder {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    border-radius: 8px !important;
    margin: 25px 0 !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border: 2px dashed #007cba !important;
    padding: 30px 20px !important;
    text-align: center !important;
    color: #007cba !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 16px rgba(0, 124, 186, 0.1) !important;
    transition: all 0.3s ease !important;
}

.bundel-product-selector-placeholder:hover.bundel-product-selector-placeholder:hover {
    border-color: #005a87 !important;
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.15) !important;
}

.bundel-product-selector-placeholder strong.bundel-product-selector-placeholder strong {
    font-size: 18px !important;
    display: block !important;
    margin-bottom: 8px !important;
    color: #005a87 !important;
    background: transparent !important;
}

.bundel-product-selector-placeholder small.bundel-product-selector-placeholder small {
    color: #6c757d !important;
    font-size: 14px !important;
    background: transparent !important;
}

/* Debug info styling */
.bundel-product-selector-placeholder details,
div[style*="debug"] details {
    margin-top: 15px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
    padding: 10px !important;
}

.bundel-product-selector-placeholder summary,
div[style*="debug"] summary {
    cursor: pointer !important;
    font-weight: 600 !important;
    padding: 5px !important;
    background: rgba(0, 124, 186, 0.1) !important;
    margin: -10px -10px 10px -10px !important;
    border-radius: 4px 4px 0 0 !important;
}

.bundel-product-selector-placeholder pre,
div[style*="debug"] pre {
    font-size: 10px !important;
    line-height: 1.4 !important;
    margin: 10px 0 !important;
    overflow: auto !important;
    max-height: 200px !important;
    background: #f8f9fa !important;
    padding: 10px !important;
    border-radius: 4px !important;
    border: 1px solid #e9ecef !important;
    font-family: 'Courier New', Courier, monospace !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Loading animation for selects */
.bundel-size-select option[value=""]:first-child:only-child {
    animation: pulse 1.5s ease-in-out infinite !important;
}

/* Responsive styling */
@media (max-width: 768px) {
    .bundel-product-selector.bundel-product-selector {
        padding: 15px !important;
        margin: 15px 0 !important;
    }
    
    .bundel-product-selector h3.bundel-product-selector h3,
    .bundel-product-selector h3 {
        font-size: 20px !important;
        margin-bottom: 12px !important;
    }
    
    .bundel-product-selector p.bundel-product-selector p,
    .bundel-product-selector p {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }
    
    .bundel-choice.bundel-choice {
        padding: 15px !important;
        margin-bottom: 25px !important;
    }
    
    .bundel-choice h4.bundel-choice h4,
    .bundel-choice h4 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    
    .bundel-choice h5.bundel-choice h5,
    .bundel-choice h5 {
        font-size: 14px !important;
        margin: 12px 0 6px 0 !important;
    }
    
    .bundel-choice select.bundel-choice select,
    .bundel-choice select {
        padding: 10px 12px !important;
        font-size: 14px !important;
        padding-right: 40px !important;
    }
    
    .bundel-size-container.bundel-size-container {
        padding: 15px !important;
        margin-top: 15px !important;
    }
    
    .product-preview.product-preview {
        padding: 15px !important;
        margin-top: 15px !important;
    }
    
    .product-preview img.product-preview img,
    .product-preview img {
        max-width: 120px !important;
        max-height: 120px !important;
        margin-bottom: 12px !important;
    }
    
    .product-preview h5.product-preview h5,
    .product-preview h5 {
        font-size: 16px !important;
        margin-bottom: 6px !important;
    }
    
    .product-preview p.product-preview p,
    .product-preview p {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
    
    .bundel-total.bundel-total {
        padding: 20px !important;
        margin: 25px 0 !important;
    }
    
    .bundel-total strong.bundel-total strong,
    .bundel-total strong {
        font-size: 20px !important;
    }
    
    .add-bundel-to-cart.add-bundel-to-cart {
        padding: 12px 24px !important;
        font-size: 16px !important;
        min-width: 200px !important;
    }
    
    .bundel-product-selector-placeholder.bundel-product-selector-placeholder {
        padding: 20px 15px !important;
        margin: 20px 0 !important;
    }
}

@media (max-width: 480px) {
    .bundel-product-selector.bundel-product-selector {
        padding: 12px !important;
        margin: 12px 0 !important;
        border-radius: 6px !important;
    }
    
    .bundel-choice.bundel-choice {
        padding: 12px !important;
        margin-bottom: 20px !important;
    }
    
    .bundel-choice select.bundel-choice select,
    .bundel-choice select {
        padding: 8px 10px !important;
        font-size: 14px !important;
        padding-right: 36px !important;
    }
    
    .bundel-size-container.bundel-size-container {
        padding: 12px !important;
    }
    
    .product-preview.product-preview {
        padding: 12px !important;
    }
    
    .product-preview img.product-preview img,
    .product-preview img {
        max-width: 100px !important;
        max-height: 100px !important;
    }
    
    .bundel-total.bundel-total {
        padding: 15px !important;
    }
    
    .bundel-total strong.bundel-total strong,
    .bundel-total strong {
        font-size: 18px !important;
    }
    
    .add-bundel-to-cart.add-bundel-to-cart {
        padding: 10px 20px !important;
        font-size: 14px !important;
        min-width: 180px !important;
    }
}

/* Fix for some themes that have very specific WooCommerce styling */
body:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active).bundel-product .woocommerce div.product form.cart,
body:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active).bundel-product .woocommerce div.product div.summary form.cart,
body:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active).bundel-product .woocommerce #content div.product form.cart,
body:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active).bundel-product .woocommerce-page div.product form.cart,
body:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active).bundel-product .woocommerce-page #content div.product form.cart,
body:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active).bundel-product .woocommerce-page div.product div.summary form.cart {
    display: none !important;
}

/* Ensure bundel selector is always visible */
.bundel-product-selector.bundel-product-selector {
    position: relative !important;
    z-index: 10 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* WordPress admin bar compatibility */
body.admin-bar .bundel-product-selector.bundel-product-selector {
    margin-top: 20px !important;
}

/* Theme compatibility: Override common theme cart styles for bundel products */
body:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active).bundel-product .product-actions,
body:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active).bundel-product .product-add-to-cart,
body:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active).bundel-product .entry-summary form.cart,
body:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active).bundel-product .summary form.cart,
body:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active).bundel-product .product-summary form.cart,
body:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active).bundel-product .wc-block-components-product-add-to-cart-button,
body:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active).bundel-product .wp-block-woocommerce-single-product .wc-block-add-to-cart-form {
    display: none !important;
}

/* Print styles */
@media print {
    .bundel-product-selector.bundel-product-selector {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }
    
    .add-bundel-to-cart.add-bundel-to-cart {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bundel-product-selector.bundel-product-selector {
        border-width: 3px !important;
        border-color: #000 !important;
    }
    
    .bundel-choice select.bundel-choice select,
    .bundel-choice select {
        border-width: 2px !important;
        border-color: #000 !important;
    }
    
    .add-bundel-to-cart:enabled.add-bundel-to-cart:enabled {
        background: #000 !important;
        color: #fff !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .bundel-product-selector *,
    .bundel-product-selector *::before,
    .bundel-product-selector *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
}/* ===== WF PRODUCT BUNDEL - COMPLETE CSS ===== */

/* Bundel Product Selector Styles */
.bundel-product-selector {
    background: #f8f9fa;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Shortcode versie styling */
.bundel-product-selector.shortcode-version {
    margin: 30px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 2px solid #e9ecef;
}

.bundel-product-selector h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #495057;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.bundel-product-selector p {
    color: #6c757d;
    margin-bottom: 25px;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
}

.bundel-choice {
    margin-bottom: 35px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.bundel-choice h4 {
    color: #343a40;
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.bundel-choice h5 {
    color: #495057;
    margin: 15px 0 8px 0;
    font-size: 16px;
    font-weight: 500;
}

.bundel-choice select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ced4da;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 48px;
}

.bundel-choice select:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.bundel-choice select:disabled {
    background-color: #f8f9fa;
    opacity: 0.7;
    cursor: not-allowed;
    color: #6c757d;
}

.bundel-size-container {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.bundel-size-select {
    margin-bottom: 0 !important;
}

.product-preview {
    display: none;
    background: white;
    padding: 20px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-preview.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.product-preview img {
    max-width: 150px;
    max-height: 150px;
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-preview img:hover {
    transform: scale(1.05);
}

.product-preview h5 {
    margin: 0 0 8px 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.product-preview p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    background: #e8f5e8;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

.bundel-total {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 25px;
    border: 3px solid #4e8a6d;
    border-radius: 12px;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 4px 16px rgba(78, 138, 109, 0.15);
}

.bundel-total strong {
    font-size: 24px;
    color: #4e8a6d;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.bundel-button-container {
    margin-top: 25px;
    text-align: center;
}

.add-bundel-to-cart {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: not-allowed;
    opacity: 0.6;
    transition: all 0.3s ease;
    min-width: 250px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-bundel-to-cart:enabled {
    background: linear-gradient(135deg, #4e8a6d 0%, #3d6b52 100%);
    cursor: pointer;
    opacity: 1;
    transform: translateY(0);
}

.add-bundel-to-cart:enabled:hover {
    background: linear-gradient(135deg, #3d6b52 0%, #2d5239 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(78, 138, 109, 0.25);
}

.add-bundel-to-cart:enabled:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(78, 138, 109, 0.3);
}

.add-bundel-to-cart:disabled {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

/* Loading state for size selects */
.bundel-size-select option[value=""]:first-child {
    font-style: italic;
    color: #6c757d;
}

/* Stock indicators */
.bundel-size-select option:disabled {
    color: #dc3545;
    font-style: italic;
    background-color: #f8f9fa;
}

/* Success state */
.add-bundel-to-cart.success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
    cursor: default;
}

/* Loading state */
.add-bundel-to-cart.loading {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    cursor: wait;
}

/* ===== BREAKDANCE SAFE CART HIDING STYLES ===== */

/* CRITICAL: NEVER HIDE IN ANY EDITOR CONTEXT */
body.breakdance-editor .cart,
body.breakdance-editor .single_add_to_cart_button,
body.breakdance-editor form.cart,
body.breakdance-editor .variations_form,
body.breakdance-editor .woocommerce-variation-add-to-cart,
body.breakdance-editor .quantity,
body.breakdance-editor .variations,
body.breakdance-editor .woocommerce-variation,
body.breakdance-editor .single_variation_wrap,
body.bde-editor .cart,
body.bde-editor .single_add_to_cart_button,
body.bde-editor form.cart,
body.bde-editor .variations_form,
body.bde-editor .woocommerce-variation-add-to-cart,
body.bde-editor .quantity,
body.bde-editor .variations,
body.bde-editor .woocommerce-variation,
body.bde-editor .single_variation_wrap,
.breakdance-editor .cart,
.breakdance-editor .single_add_to_cart_button,
.breakdance-editor form.cart,
.breakdance-editor .variations_form,
.breakdance-editor .woocommerce-variation-add-to-cart,
.breakdance-editor .quantity,
.breakdance-editor .variations,
.breakdance-editor .woocommerce-variation,
.breakdance-editor .single_variation_wrap,
.bde-editor .cart,
.bde-editor .single_add_to_cart_button,
.bde-editor form.cart,
.bde-editor .variations_form,
.bde-editor .woocommerce-variation-add-to-cart,
.bde-editor .quantity,
.bde-editor .variations,
.bde-editor .woocommerce-variation,
.bde-editor .single_variation_wrap {
    display: block !important;
    opacity: 0.7 !important;
    border: 2px dashed #007cba !important;
    position: relative !important;
    background: rgba(0, 124, 186, 0.05) !important;
}

/* Editor indicator overlay */
.breakdance-editor .cart::before,
.bde-editor .cart::before,
.breakdance-editor form.cart::before,
.bde-editor form.cart::before {
    content: "WooCommerce Cart (Verborgen op frontend voor bundel producten)";
    position: absolute;
    top: -25px;
    left: 0;
    right: 0;
    background: rgba(0, 124, 186, 0.9);
    color: white;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px 4px 0 0;
    z-index: 1000;
    font-family: Arial, sans-serif;
    font-weight: 500;
    text-align: center;
}

/* ONLY HIDE FOR BUNDEL PRODUCTS ON FRONTEND (NOT IN EDITORS) */
body.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .single-product .cart,
body.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .single-product .single_add_to_cart_button,
body.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .single-product form.cart,
body.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .single-product .variations_form,
body.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .single-product .woocommerce-variation-add-to-cart,
body.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .single-product .quantity,
body.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .single-product .variations,
body.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .single-product .woocommerce-variation,
body.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .single-product .single_variation_wrap {
    display: none !important;
}

/* Alternative more specific targeting for stubborn themes */
.wf-bundel-hide-cart:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .cart,
.wf-bundel-hide-cart:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .single_add_to_cart_button,
.wf-bundel-hide-cart:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) form.cart,
.wf-bundel-hide-cart:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .variations_form,
.wf-bundel-hide-cart:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .woocommerce-variation-add-to-cart,
.wf-bundel-hide-cart:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .quantity,
.wf-bundel-hide-cart:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .variations,
.wf-bundel-hide-cart:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .woocommerce-variation,
.wf-bundel-hide-cart:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .single_variation_wrap {
    display: none !important;
}

/* Even more specific targeting for very stubborn themes */
.single-product.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .product .cart,
.single-product.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .product .single_add_to_cart_button,
.single-product.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .product form.cart,
.single-product.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .product .variations_form,
.single-product.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .product .woocommerce-variation-add-to-cart,
.single-product.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .product .quantity,
.single-product.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .product .variations,
.single-product.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .product .woocommerce-variation,
.single-product.bundel-product:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active) .product .single_variation_wrap {
    display: none !important;
}

/* Bundel selector placeholder styling for editor */
.bundel-product-selector-placeholder {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    border-radius: 8px;
    margin: 25px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px dashed #007cba;
    padding: 30px 20px;
    text-align: center;
    color: #007cba;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 124, 186, 0.1);
    transition: all 0.3s ease;
}

.bundel-product-selector-placeholder:hover {
    border-color: #005a87;
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.15);
}

.bundel-product-selector-placeholder strong {
    font-size: 18px;
    display: block;
    margin-bottom: 8px;
    color: #005a87;
}

.bundel-product-selector-placeholder small {
    color: #6c757d;
    font-size: 14px;
}

/* Debug info styling */
.bundel-product-selector-placeholder details,
div[style*="debug"] details {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
}

.bundel-product-selector-placeholder summary,
div[style*="debug"] summary {
    cursor: pointer;
    font-weight: 600;
    padding: 5px;
    background: rgba(0, 124, 186, 0.1);
    margin: -10px -10px 10px -10px;
    border-radius: 4px 4px 0 0;
}

.bundel-product-selector-placeholder pre,
div[style*="debug"] pre {
    font-size: 10px;
    line-height: 1.4;
    margin: 10px 0;
    overflow: auto;
    max-height: 200px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    font-family: 'Courier New', Courier, monospace;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Loading animation for selects */
.bundel-size-select option[value=""]:first-child:only-child {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Responsive styling */
@media (max-width: 768px) {
    .bundel-product-selector {
        padding: 15px;
        margin: 15px 0;
    }
    
    .bundel-product-selector h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .bundel-product-selector p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .bundel-choice {
        padding: 15px;
        margin-bottom: 25px;
    }
    
    .bundel-choice h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .bundel-choice h5 {
        font-size: 14px;
        margin: 12px 0 6px 0;
    }
    
    .bundel-choice select {
        padding: 10px 12px;
        font-size: 14px;
        padding-right: 40px;
    }
    
    .bundel-size-container {
        padding: 15px;
        margin-top: 15px;
    }
    
    .product-preview {
        padding: 15px;
        margin-top: 15px;
    }
    
    .product-preview img {
        max-width: 120px;
        max-height: 120px;
        margin-bottom: 12px;
    }
    
    .product-preview h5 {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .product-preview p {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .bundel-total {
        padding: 20px;
        margin: 25px 0;
    }
    
    .bundel-total strong {
        font-size: 20px;
    }
    
    .add-bundel-to-cart {
        padding: 12px 24px;
        font-size: 16px;
        min-width: 200px;
    }
    
    .bundel-product-selector-placeholder {
        padding: 20px 15px;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .bundel-product-selector {
        padding: 12px;
        margin: 12px 0;
        border-radius: 6px;
    }
    
    .bundel-choice {
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .bundel-choice select {
        padding: 8px 10px;
        font-size: 14px;
        padding-right: 36px;
    }
    
    .bundel-size-container {
        padding: 12px;
    }
    
    .product-preview {
        padding: 12px;
    }
    
    .product-preview img {
        max-width: 100px;
        max-height: 100px;
    }
    
    .bundel-total {
        padding: 15px;
    }
    
    .bundel-total strong {
        font-size: 18px;
    }
    
    .add-bundel-to-cart {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 180px;
    }
}

/* Fix for some themes that have very specific WooCommerce styling */
body:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active).bundel-product .woocommerce div.product form.cart,
body:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active).bundel-product .woocommerce div.product div.summary form.cart,
body:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active).bundel-product .woocommerce #content div.product form.cart,
body:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active).bundel-product .woocommerce-page div.product form.cart,
body:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active).bundel-product .woocommerce-page #content div.product form.cart,
body:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active).bundel-product .woocommerce-page div.product div.summary form.cart {
    display: none !important;
}

/* Ensure bundel selector is always visible */
.bundel-product-selector {
    position: relative !important;
    z-index: 10 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* WordPress admin bar compatibility */
body.admin-bar .bundel-product-selector {
    margin-top: 20px;
}

/* Theme compatibility: Override common theme cart styles for bundel products */
body:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active).bundel-product .product-actions,
body:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active).bundel-product .product-add-to-cart,
body:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active).bundel-product .entry-summary form.cart,
body:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active).bundel-product .summary form.cart,
body:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active).bundel-product .product-summary form.cart,
body:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active).bundel-product .wc-block-components-product-add-to-cart-button,
body:not(.breakdance-editor):not(.bde-editor):not(.elementor-editor-active).bundel-product .wp-block-woocommerce-single-product .wc-block-add-to-cart-form {
    display: none !important;
}

/* Print styles */
@media print {
    .bundel-product-selector {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .add-bundel-to-cart {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bundel-product-selector {
        border-width: 3px;
        border-color: #000;
    }
    
    .bundel-choice select {
        border-width: 2px;
        border-color: #000;
    }
    
    .add-bundel-to-cart:enabled {
        background: #000;
        color: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .bundel-product-selector *,
    .bundel-product-selector *::before,
    .bundel-product-selector *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
}

/* Dark mode support - DISABLED */
/* 
@media (prefers-color-scheme: dark) {
    .bundel-product-selector {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .bundel-choice {
        background: #1a202c;
        border-color: #4a5568;
    }
    
    .bundel-choice h3,
    .bundel-choice h4,
    .bundel-choice h5 {
        color: #e2e8f0;
    }
    
    .bundel-choice select {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .bundel-size-container {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .product-preview {
        background: #1a202c;
        border-color: #4a5568;
    }
}
*/

/* Force light theme always */
.bundel-product-selector.bundel-product-selector {
    background: #f8f9fa !important;
    color: #495057 !important;
}

.bundel-choice.bundel-choice {
    background: white !important;
    color: #495057 !important;
}

.bundel-choice select.bundel-choice select,
.bundel-choice select {
    background: white !important;
    color: #495057 !important;
}

/* FORCE hide cart sidebar altijd */
body .widget_shopping_cart,
body .woocommerce-mini-cart,
body [class*="cart-sidebar"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}