/* WP BB Home & Garden v4.0.20 — final shipping + bilingual navigation repair. */

/* -------------------------------------------------------------------------
 * CART / CHECKOUT SHIPPING
 * Keep real table semantics. The custom cart-shipping.php already renders
 * one <td colspan="2">; converting tfoot/rows/cells to block/grid makes the
 * browser size that colspan like only the first table column. Restore table
 * display so the shipping cell genuinely spans Product/Value columns.
 * ---------------------------------------------------------------------- */
html body.woocommerce-cart .llg-cart-summary-card table.shop_table{
  display:table!important;
  width:100%!important;
  max-width:none!important;
  table-layout:auto!important;
}
html body.woocommerce-cart .llg-cart-summary-card table.shop_table>tbody{
  display:table-row-group!important;
  width:auto!important;
}
html body.woocommerce-cart .llg-cart-summary-card table.shop_table>tbody>tr,
html body.woocommerce-cart .llg-cart-summary-card table.shop_table>tbody>tr.woocommerce-shipping-totals.shipping,
html body.woocommerce-cart .llg-cart-summary-card table.shop_table>tbody>tr.wpbbshop-shipping-full-row{
  display:table-row!important;
  width:auto!important;
  max-width:none!important;
}
html body.woocommerce-cart .llg-cart-summary-card table.shop_table>tbody>tr>th,
html body.woocommerce-cart .llg-cart-summary-card table.shop_table>tbody>tr>td,
html body.woocommerce-cart .llg-cart-summary-card tr.wpbbshop-shipping-full-row>td{
  display:table-cell!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
html body.woocommerce-cart .llg-cart-summary-card tr.wpbbshop-shipping-full-row>td[colspan="2"]{
  width:auto!important;
  text-align:left!important;
  padding-left:0!important;
  padding-right:0!important;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table{
  display:table!important;
  width:100%!important;
  max-width:none!important;
  table-layout:auto!important;
}
html body.woocommerce-checkout .woocommerce-checkout-review-order-table>tfoot{
  display:table-footer-group!important;
  width:auto!important;
  max-width:none!important;
}
html body.woocommerce-checkout .woocommerce-checkout-review-order-table>tfoot>tr,
html body.woocommerce-checkout .woocommerce-checkout-review-order-table>tfoot>tr.woocommerce-shipping-totals.shipping,
html body.woocommerce-checkout .woocommerce-checkout-review-order-table>tfoot>tr.wpbbshop-shipping-full-row{
  display:table-row!important;
  width:auto!important;
  max-width:none!important;
}
html body.woocommerce-checkout .woocommerce-checkout-review-order-table>tfoot>tr>th,
html body.woocommerce-checkout .woocommerce-checkout-review-order-table>tfoot>tr>td,
html body.woocommerce-checkout .woocommerce-checkout-review-order-table tr.wpbbshop-shipping-full-row>td{
  display:table-cell!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
html body.woocommerce-checkout .woocommerce-checkout-review-order-table tr.wpbbshop-shipping-full-row>td[colspan="2"]{
  width:auto!important;
  text-align:left!important;
  padding-left:0!important;
  padding-right:0!important;
}

/* The actual carrier list always fills the spanning cell. */
html body.woocommerce-cart .wpbbshop-shipping-full,
html body.woocommerce-checkout .wpbbshop-shipping-full,
html body.woocommerce-cart .wpbbshop-shipping-full #shipping_method,
html body.woocommerce-checkout .wpbbshop-shipping-full #shipping_method,
html body.woocommerce-cart .wpbbshop-shipping-full .woocommerce-shipping-methods,
html body.woocommerce-checkout .wpbbshop-shipping-full .woocommerce-shipping-methods,
html body.woocommerce-cart .wpbbshop-shipping-full .woocommerce-shipping-destination,
html body.woocommerce-checkout .wpbbshop-shipping-full .woocommerce-shipping-destination,
html body.woocommerce-cart .wpbbshop-shipping-full .woocommerce-shipping-calculator,
html body.woocommerce-checkout .wpbbshop-shipping-full .woocommerce-shipping-calculator{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
  text-align:left!important;
}
html body.woocommerce-cart .wpbbshop-shipping-full #shipping_method,
html body.woocommerce-checkout .wpbbshop-shipping-full #shipping_method,
html body.woocommerce-cart .wpbbshop-shipping-full .woocommerce-shipping-methods,
html body.woocommerce-checkout .wpbbshop-shipping-full .woocommerce-shipping-methods{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:8px!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
html body.woocommerce-cart .wpbbshop-shipping-full #shipping_method>li,
html body.woocommerce-checkout .wpbbshop-shipping-full #shipping_method>li,
html body.woocommerce-cart .wpbbshop-shipping-full .woocommerce-shipping-methods>li,
html body.woocommerce-checkout .wpbbshop-shipping-full .woocommerce-shipping-methods>li{
  display:grid!important;
  grid-template-columns:20px minmax(0,1fr)!important;
  gap:9px!important;
  align-items:start!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:11px 12px!important;
  border:1px solid #dce7e0!important;
  border-radius:9px!important;
  background:#fbfdfb!important;
  box-sizing:border-box!important;
}
html body.woocommerce-cart .wpbbshop-shipping-full #shipping_method>li>label,
html body.woocommerce-checkout .wpbbshop-shipping-full #shipping_method>li>label,
html body.woocommerce-cart .wpbbshop-shipping-full .woocommerce-shipping-methods>li>label,
html body.woocommerce-checkout .wpbbshop-shipping-full .woocommerce-shipping-methods>li>label{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  text-align:left!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}

/* Preserve the approved Git R5 department typography. */
html body.wpbbshop-theme .wpbb-v400-departments .wpbb-v400-dept strong{
  font-size:17px!important;
  font-weight:500!important;
}
html body.wpbbshop-theme .wpbb-v400-departments .wpbb-v400-dept small{
  font-size:13px!important;
}
