/* WP BB Home & Garden v4.0.18 — Git-master restore + full-width shipping. */

/* Final ownership: match the working Git R5 homepage department geometry. */
html body.wpbbshop-theme .wpbb-v400-departments .wpbb-v400-dept-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  grid-auto-rows:58px!important;
  gap:6px!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  margin:20px 0!important;
  padding:0!important;
  align-items:stretch!important;
  align-content:start!important;
  justify-content:stretch!important;
  box-sizing:border-box!important;
}
html body.wpbbshop-theme .wpbb-v400-departments .wpbb-v400-dept-grid>.wpbb-v400-dept{
  display:grid!important;
  grid-template-columns:30px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  grid-column:auto!important;
  grid-row:auto!important;
  flex:none!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  min-height:58px!important;
  height:58px!important;
  margin:0!important;
  padding:7px 10px!important;
  gap:1px 8px!important;
  align-content:center!important;
  align-items:center!important;
  transform:none!important;
  order:0!important;
  box-sizing:border-box!important;
}
html body.wpbbshop-theme .wpbb-v400-projects{margin-top:10px!important}

/* Structural shipping template already uses colspan=2; force every nested
   control to fill that single full-width cell. */
html body.woocommerce-cart tr.wpbbshop-shipping-full-row,
html body.woocommerce-checkout tr.wpbbshop-shipping-full-row{
  display:table-row!important;
  width:100%!important;
}
html body.woocommerce-cart tr.wpbbshop-shipping-full-row>td,
html body.woocommerce-checkout tr.wpbbshop-shipping-full-row>td{
  display:table-cell!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  padding:12px 0!important;
  text-align:left!important;
  box-sizing:border-box!important;
}
html body.woocommerce-cart tr.wpbbshop-shipping-full-row>td:before,
html body.woocommerce-checkout tr.wpbbshop-shipping-full-row>td:before{display:none!important}
html body .wpbbshop-shipping-full,
html body .wpbbshop-shipping-full #shipping_method,
html body .wpbbshop-shipping-full .woocommerce-shipping-methods,
html body .wpbbshop-shipping-full .woocommerce-shipping-destination,
html body .wpbbshop-shipping-full .woocommerce-shipping-calculator{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  box-sizing:border-box!important;
  text-align:left!important;
}
html body .wpbbshop-shipping-title{
  display:block!important;
  width:100%!important;
  margin:0 0 9px!important;
  color:#687983!important;
  font-size:13px!important;
  font-weight:750!important;
}
html body .wpbbshop-shipping-full #shipping_method,
html body .wpbbshop-shipping-full .woocommerce-shipping-methods{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
html body .wpbbshop-shipping-full #shipping_method>li,
html body .wpbbshop-shipping-full .woocommerce-shipping-methods>li{
  display:grid!important;
  grid-template-columns:20px minmax(0,1fr)!important;
  gap:8px!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 #dde7e2!important;
  border-radius:9px!important;
  background:#fbfdfb!important;
  box-sizing:border-box!important;
}
html body .wpbbshop-shipping-full #shipping_method>li>label,
html body .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;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  text-align:left!important;
  line-height:1.35!important;
}
html body .wpbbshop-shipping-full .woocommerce-shipping-destination{margin:8px 0 0!important}
html body .wpbbshop-shipping-full .woocommerce-shipping-calculator{margin:8px 0 0!important}

@media(max-width:820px){
  html body.wpbbshop-theme .wpbb-v400-departments .wpbb-v400-dept-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:480px){
  html body.wpbbshop-theme .wpbb-v400-departments .wpbb-v400-dept-grid{grid-template-columns:1fr!important;gap:5px!important}
}
