/* Scoped repairs for the existing staging storefront. */
body.bdp-professional .wd-shop-tools { flex-wrap: wrap; flex: 1 0 100%; }
body.bdp-professional .wd-shop-tools .woof_autohide_wrapper {
    order: 20; flex: 0 0 100%; width: 100%; min-width: 0;
}
body.bdp-professional .woof_show_auto_form,
body.bdp-professional .woof_hide_auto_form {
    display: inline-flex; align-items: center; justify-content: center;
    width: auto; min-height: 44px; padding: 10px 16px;
    background-image: none !important; border: 1px solid #dedede;
    border-radius: 8px; font-weight: 700;
}
body.bdp-professional .woof_auto_show {
    position: static !important; width: 100% !important; max-width: 100%;
    clear: both; z-index: auto;
}
body.bdp-professional .woof_auto_show_indent { width: 100%; padding: 0; }
body.bdp-professional .woof_auto_show .woof {
    width: 100%; margin: 12px 0 20px; padding: 20px;
    background: #fff; border: 1px solid #e3e3e3; border-radius: 10px;
}
body.bdp-professional .woof_redraw_zone {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
body.bdp-professional .woof_auto_show .woof_container {
    width: 100% !important; min-width: 0; margin: 0; padding: 0;
}
body.bdp-professional .woof_edit_view { display: none !important; }
body.bdp-professional .woof_auto_show input[type="search"],
body.bdp-professional .woof_auto_show input[type="text"] { max-width: 100%; }
body.bdp-professional .woof_auto_show .woof_submit_search_form_container {
    display: flex; gap: 12px; margin-top: 16px;
}
.bdsc-catalog-guest .woof_price_filter,
.bdsc-catalog-guest .wd-product .quantity { display: none !important; }
body.bdp-professional .wd-content-layout:not(:has(aside, .sidebar-container)) .wd-show-sidebar-btn {
    display: none !important;
}

body.woocommerce-checkout #shipping_method li {
    margin: 10px 0; padding: 13px 14px; border: 1px solid #d8d8d8;
    border-radius: 9px; background: #fff; text-align: left;
}
body.woocommerce-checkout #shipping_method li:has(input:checked) {
    border-color: #9b7500; background: #fff9e6;
}
body.woocommerce-checkout #shipping_method input { accent-color: #9b7500; }
body.woocommerce-checkout #shipping_method label {
    display: inline; font-weight: 700; cursor: pointer; color: #171717;
}
.bdsc-account-note, .bdsc-order-note {
    padding: 14px 16px; background: #f7f7f7; border-radius: 8px; line-height: 1.6;
}
.bdsc-fulfilment-heading th { padding-top: 20px; text-align: left; }
body.woocommerce-checkout .payment_box p { color: #333; line-height: 1.65; }
body.woocommerce-checkout .woocommerce-billing-fields .description {
    display: block; margin-top: 5px; font-size: 13px; line-height: 1.5;
}
@media (max-width: 640px) {
    body.bdp-professional .wd-shop-tools .woocommerce-ordering {
        flex: 0 0 100%; width: 100%; height: 44px; min-height: 44px;
    }
    body.bdp-professional .woocommerce-ordering.wd-ordering-mb-icon select {
        position: static !important; width: 100% !important;
        min-width: 0 !important; max-width: none !important;
        padding: 0 32px 0 12px !important;
    }
    body.bdp-professional .woocommerce-ordering.wd-ordering-mb-icon::before,
    body.bdp-professional .woocommerce-ordering.wd-ordering-mb-icon::after { display: none; }
    body.bdp-professional .woof_redraw_zone { grid-template-columns: minmax(0, 1fr); }
    body.bdp-professional .woof_auto_show .woof { padding: 16px; }
    body.woocommerce-checkout #shipping_method li { padding: 12px; }
}
