/**
 * CSS for the frontend variable product calculator.
 */

/* Hide ONLY the WooCommerce variations table, not the entire form */
/* The Celejor calculator is inside .variations_form, so we can't hide the whole form */
.variations_form table.variations,
.variations_form .single_variation_wrap,
.variations_form .woocommerce-variation-add-to-cart {
    display: none !important;
}

.celejor-calculator-wrapper {
    margin-bottom: 2em;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 5px;
    background: #f9f9f9;
    width: 100%;
}

.celejor-price-display-wrapper {
    margin-bottom: 20px;
    text-align: center;
}

.celejor-price-display-wrapper label {
    font-size: 1.2em;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #333;
}

/* Variable Calculator Refinements */
/* Base price styling (applies to initial ₹0.00 and any price without del/ins) */
#celejor_price_display {
    font-size: 28px !important;
    color: #b35b4a !important;
    font-weight: 700 !important;
}

#celejor_price_display .amount,
#celejor_price_display bdi {
    font-size: 28px !important;
    color: #b35b4a !important;
    font-weight: 700 !important;
}

#celejor_price_display ins,
#celejor_price_display ins .amount,
#celejor_price_display ins bdi {
    font-size: 28px !important;
    color: #b35b4a !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

#celejor_price_display del,
#celejor_price_display del .amount,
#celejor_price_display del bdi {
    font-size: 24px !important;
    color: #999 !important;
    font-weight: 700 !important;
    text-decoration: line-through !important;
}

/* Hide redundant Price labels from other plugins in the calculator area */
.celejor-price-display-wrapper label,
.celejor-price-display-wrapper .wcpa_price_label {
    display: none !important;
}

#celejor_price_breakdown {
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
    min-height: 1.2em;
}

/* Hide You Save completely */
.savings-display,
#celejor_savings_display {
    display: none !important;
}

#celejor_price_display del {
    margin-right: 10px !important;
}

#celejor_price_display ins {
    text-decoration: none !important;
}

.celejor-options-table {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.celejor-options-table .option-row {
    display: flex;
    flex-direction: column;
}

.celejor-options-table label {
    font-weight: bold;
    margin-bottom: 5px;
}

.celejor-options-table select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

.celejor-options-table textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    max-width: 100%;
}

.celejor-options-table .option-row-full {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
}

.celejor-options-table label .optional {
    font-weight: normal;
    font-size: 0.9em;
    color: #777;
}

/* Responsive layout for wider screens */
@media (min-width: 768px) {
    .celejor-options-table {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Shape Restriction Warning */
.celejor-warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    margin-bottom: 20px;
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 4px;
    grid-column: 1 / -1;
    /* Full width in grid */
}

/* Disabled Shape Option */
.disabled-shape {
    color: #999 !important;
    background-color: #f5f5f5 !important;
}