/* Price-hiding fallback for templates/builders that bypass Woo filters. */
.woocommerce .product-price,
.woocommerce .product-subtotal,
.woocommerce .product-total,
.woocommerce .cart-subtotal,
.woocommerce .order-total,
.woocommerce .tax-total,
.woocommerce .fee,
.woocommerce .discount,
.woocommerce .woocommerce-mini-cart__total,
.woocommerce .woocommerce-mini-cart-item .amount,
.woocommerce .woocommerce-cart-form .product-price,
.woocommerce .woocommerce-cart-form .product-subtotal,
.woocommerce .shop_table .product-total,
.woocommerce table.shop_table tfoot tr.cart-subtotal,
.woocommerce table.shop_table tfoot tr.order-total,
.woocommerce table.shop_table tfoot tr.tax-total,
.woocommerce table.shop_table tfoot tr.fee,
.woocommerce table.shop_table tfoot tr.discount {
    display: none !important;
}

/* Hide subtotal/total rows and labels in cart/checkout review tables. */
.woocommerce .cart_totals table tr.cart-subtotal,
.woocommerce .cart_totals table tr.order-total,
.woocommerce .woocommerce-checkout-review-order-table tr.cart-subtotal,
.woocommerce .woocommerce-checkout-review-order-table tr.order-total,
.woocommerce .woocommerce-checkout-review-order-table th.product-total,
.woocommerce .woocommerce-checkout-review-order-table td.product-total,
.woocommerce .woocommerce-checkout-review-order-table tfoot tr:not(.shipping):not(.woocommerce-shipping-totals) {
    display: none !important;
}

/* Elementor mini cart popup: remove subtotal block/labels entirely. */
.elementor-menu-cart__subtotal,
.elementor-menu-cart__footer .elementor-menu-cart__subtotal,
.elementor-menu-cart__subtotal * {
    display: none !important;
}

/*
 * Checkout: shipping methods exist only in #order_review (no duplicate block).
 * Visually hide the native radio list; tabs control selection.
 */
#order_review .woocommerce-shipping-totals.shipping > th {
    display: none;
}

#order_review .woocommerce-shipping-totals.shipping > td {
    display: block;
    width: 100%;
    text-align: inherit;
}

#order_review .woocommerce-shipping-totals ul.woocommerce-shipping-methods {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/*
 * Logged-in checkout: one visible address column (shipping only).
 * Billing stays in DOM (hidden) so order still gets dealer billing + Hashavshevet data.
 */
body.w2h-switchstores-checkout-logged-in.woocommerce-checkout form.checkout #customer_details.col2-set {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25em;
}

body.w2h-switchstores-checkout-logged-in.woocommerce-checkout form.checkout #customer_details .col-1 {
    display: none !important;
}

body.w2h-switchstores-checkout-logged-in.woocommerce-checkout form.checkout #customer_details .col-2 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    order: 1;
}

body.w2h-switchstores-checkout-logged-in.woocommerce-checkout .woocommerce-billing-fields > h3,
body.w2h-switchstores-checkout-logged-in.woocommerce-checkout .woocommerce-billing-fields__title {
    display: none !important;
}

body.w2h-switchstores-checkout-logged-in.woocommerce-checkout #ship-to-different-address {
    display: none !important;
}

body.w2h-switchstores-checkout-logged-in.woocommerce-checkout .woocommerce-shipping-fields .shipping_address {
    padding-top: 0;
}

body.w2h-switchstores-checkout-logged-in.woocommerce-checkout .woocommerce-additional-fields {
    margin-top: 1.25em;
}

/* Guest checkout: keep two columns usable */
body.woocommerce-checkout:not(.logged-in) #customer_details.col2-set {
    display: flex;
    flex-direction: column;
    gap: 1.25em;
}

body.woocommerce-checkout:not(.logged-in) #customer_details .col-1,
body.woocommerce-checkout:not(.logged-in) #customer_details .col-2 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

/* Checkout delivery tabs: clear active state (red) vs inactive (neutral). */
body.woocommerce-checkout .w2h-delivery-tabs .w2h-delivery-tab {
    background-color: #e8e8ec !important;
    color: #1a1a1a !important;
    border: 1px solid #c5c5cd !important;
    box-shadow: none !important;
    font-weight: 500;
}

body.woocommerce-checkout .w2h-delivery-tabs .w2h-delivery-tab:hover {
    background-color: #dcdce2 !important;
    border-color: #b0b0ba !important;
}

body.woocommerce-checkout .w2h-delivery-tabs .w2h-delivery-tab.w2h-delivery-tab--active {
    background-color: #c62828 !important;
    color: #fff !important;
    border-color: #8e0000 !important;
    font-weight: 600;
}

body.woocommerce-checkout .w2h-delivery-tabs .w2h-delivery-tab.w2h-delivery-tab--active:hover {
    background-color: #b71c1c !important;
    border-color: #7a0000 !important;
    color: #fff !important;
}

body.woocommerce-checkout .w2h-delivery-tabs .w2h-delivery-tab:focus-visible {
    outline: 2px solid #1565c0;
    outline-offset: 2px;
}

