div#pc_ranges_table table.table tbody tr td {
    text-align: center !important;
}

div#pc_ranges_table table.table thead tr th {
    text-align: center !important;
}

span.pc-from-torange {
    display: inline;
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: bold;
    line-height: 1;
    color: #5f4e4e;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
}

table#pc_product_type_table tbody tr td {
    border: none;
}

input.pc_calculator_item_input,
select.pc_calculator_item_input {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 12px !important;
    padding: 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    text-align: left !important;
}

/* Ensure quantity and add to cart button are side-by-side */
.pc_add_to_cart_form {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 20px !important;
}

.pc_add_to_cart_form .quantity {
    display: inline-block !important;
    margin: 0 !important;
    float: none !important;
}

.pc_add_to_cart_form .quantity input.qty {
    width: 60px !important;
    height: 42px !important;
    padding: 0 5px !important;
    text-align: center !important;
    border: 1px solid #ccc !important;
    background-color: #fff !important;
    border-radius: 4px !important;
    margin: 0 !important;
    line-height: 42px !important;
}

.pc_add_to_cart_form .single_add_to_cart_button {
    height: 42px !important;
    padding: 0 25px !important;
    margin: 0 !important;
    border-radius: 4px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 42px !important;
    text-transform: none !important;
}

/* Remove bootstrap container padding/margin conflicts if found inside themes */
.bootstrap-iso.container,
.bootstrap-iso .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}


td.price_calculation,
td.price_calculation input {
    text-align: center;
}

table#variable_product_table tbody tr td {
    width: 50%;
    border: none;
}

#RangeError {

    border: 1px solid red;
    padding: 10px;
    background-color: red;
    border: 1;
    color: white;
    border-radius: 4px;
}

.minus {
    width: 15% !important;
}

.plus {
    width: 15% !important;

}

.incremental_length {
    width: 100% !important;
}

.min_max_error_message {
    color: red;
    display: none;
}

.min_max_error_message_length {
    display: none;
    color: red;
}

.min_max_error_message_width {
    display: none;
    color: red;
}

.min_max_error_message_height {
    display: none;
    color: red;
}

.price_fractional_div {
    display: flex;
}

/* block ckeckout validation message */

/* ================================================================
   Custom Option Out-of-Stock Error Message (Blocks & Classic Checkout)
   ================================================================ */

.pc-custom-stock-error {
    display: block;
    width: 100%;
    margin: 16px 0 8px;
    padding: 14px 18px;
    background: #faf0f0;
    border-left: 4px solid #d63638;
    border-radius: 6px;
    color: #5e1f1f;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    text-align: left;
    box-shadow: 0 2px 6px rgba(214, 54, 56, 0.08);
    animation: pcStockErrorFadeIn 0.4s ease-out;
}

.pc-custom-stock-error strong {
    color: #b32d2e;
    font-weight: 600;
}

/* Optional icon (using dashicons – already loaded on checkout) */
.pc-custom-stock-error::before {
    content: "\f534";
    font-family: dashicons;
    margin-right: 10px;
    vertical-align: middle;
    font-size: 20px;
    line-height: 1;
    color: #d63638;
}

/* Dark mode support (if your site ever uses it) */
@media (prefers-color-scheme: dark) {
    .pc-custom-stock-error {
        background: #3b1e1e;
        color: #f5c6c6;
        border-left-color: #e24040;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .pc-custom-stock-error strong {
        color: #ff6b6b;
    }

    .pc-custom-stock-error::before {
        color: #ff6b6b;
    }
}

/* Fade-in animation */
@keyframes pcStockErrorFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}