/**
 * Force 2-column layout for options on product page
 * This overrides any conflicting styles
 */

/* Reset container to simple block layout - PRODUCT PAGE SPECIFIC */
body.single-product .wcc-options-prices,
body.single-product .wcc-price-calculator .wcc-options-prices,
body.single-product form.cart .wcc-options-prices,
body.single-product .wcc-price-breakdown .wcc-options-prices {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important; /* Remove whitespace between inline-block elements */
    line-height: 0 !important;
    text-align: left !important;
    
    /* Disable any flex or grid */
    flex-direction: initial !important;
    flex-wrap: initial !important;
    grid-template-columns: initial !important;
}

/* Force items to be inline-block with exact width - ULTRA SPECIFIC */
body.single-product .wcc-options-prices .wcc-option-price-item,
body.single-product .wcc-price-calculator .wcc-option-price-item,
body.single-product form.cart .wcc-option-price-item,
body.single-product .wcc-price-breakdown .wcc-option-price-item {
    display: inline-block !important;
    width: 48% !important;
    max-width: 48% !important;
    min-width: 48% !important;
    margin: 0 1% 10px 0 !important;
    padding: 10px 8px !important;
    background: #f8f8f8 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    text-align: center !important;
    vertical-align: top !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
    line-height: normal !important;
    position: relative !important;
    
    /* Disable table-cell display */
    float: none !important;
    flex: none !important;
}

/* Every second item has no right margin */
body.single-product .wcc-option-price-item:nth-child(even) {
    margin-right: 0 !important;
}

/* Also handle when title is present */
body.single-product .wcc-options-list-title + .wcc-option-price-item:nth-child(even) {
    margin-right: 0 !important;
}

body.single-product .wcc-options-list-title + .wcc-option-price-item:nth-child(odd) {
    margin-right: 1% !important;
}

/* Ensure title takes full width */
body.single-product .wcc-options-list-title {
    display: block !important;
    width: 100% !important;
    margin: 0 0 10px 0 !important;
    font-size: 16px !important;
    line-height: normal !important;
    clear: both !important;
}

/* Fix for images inside items */
body.single-product .wcc-selected-option-image {
    width: 40px !important;
    height: 40px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    margin: 0 auto 6px auto !important;
    display: block !important;
}

/* Fix for text inside items */
body.single-product .wcc-option-price-label {
    display: block !important;
    font-size: 11px !important;
    color: #666 !important;
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
}

body.single-product .wcc-option-price-value {
    display: block !important;
    font-size: 12px !important;
    color: var(--wcc-price-text-color, #d4a574) !important;
    line-height: 1.2 !important;
}

/* Force remove button to be properly positioned */
body.single-product .wcc-option-remove {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 20px !important;
    font-size: 14px !important;
    text-align: center !important;
    background: var(--wcc-remove-button-color, #ff0000) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Mobile responsive - keep 2 columns even on small screens */
@media (max-width: 480px) {
    body.single-product .wcc-option-price-item {
        width: 48% !important;
        padding: 8px 4px !important;
    }
    
    body.single-product .wcc-selected-option-image {
        width: 30px !important;
        height: 30px !important;
    }
    
    body.single-product .wcc-option-price-label {
        font-size: 10px !important;
    }
    
    body.single-product .wcc-option-price-value {
        font-size: 11px !important;
    }
}

/* Clear any floats after the container */
body.single-product .wcc-options-prices::after {
    content: "";
    display: table;
    clear: both;
}

/* NUCLEAR OPTION - Override any inline styles that set width to 100% */
body.single-product .wcc-option-price-item[style*="width: 100%"],
body.single-product .wcc-option-price-item[style*="width:100%"] {
    width: 48% !important;
}