/* WP BB Home & Garden v4.0.15 — UK commerce + language + page-width fixes. */

/* Information/policy pages should use the same full storefront shell as home/shop. */
body.wpbbshop-theme.llg-v414-managed-info .wpbbshop-page-shell,
body.wpbbshop-theme.llg-v314-info-page .wpbbshop-page-shell,
body.wpbbshop-theme .llg-v414-virtual-info,
body.wpbbshop-theme .llg-v314-virtual-page{
  width:min(var(--wpbb-v4-shell,1480px),calc(100% - 48px))!important;
  max-width:var(--wpbb-v4-shell,1480px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body.wpbbshop-theme.llg-v414-managed-info .wpbbshop-page-card,
body.wpbbshop-theme.llg-v314-info-page .wpbbshop-page-card,
body.wpbbshop-theme.llg-v414-managed-info .entry-content,
body.wpbbshop-theme.llg-v314-info-page .entry-content,
body.wpbbshop-theme.llg-v414-managed-info .llg-info-pro,
body.wpbbshop-theme.llg-v314-info-page .llg-info-pro{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}
body.wpbbshop-theme.llg-v414-managed-info .llg-info-cards,
body.wpbbshop-theme.llg-v314-info-page .llg-info-cards{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
body.wpbbshop-theme.llg-v414-managed-info .llg-info-intro p,
body.wpbbshop-theme.llg-v314-info-page .llg-info-intro p{
  max-width:1100px!important;
}

/* Cart + checkout delivery row: eliminate the blank second column completely. */
body.woocommerce-cart .llg-cart-summary-card table.shop_table,
body.woocommerce-checkout .woocommerce-checkout-review-order-table{
  width:100%!important;
  max-width:none!important;
  table-layout:fixed!important;
}
body.woocommerce-cart .llg-cart-summary-card tr.woocommerce-shipping-totals.shipping,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals.shipping{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
body.woocommerce-cart .llg-cart-summary-card tr.woocommerce-shipping-totals.shipping>th,
body.woocommerce-cart .llg-cart-summary-card tr.woocommerce-shipping-totals.shipping>td,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals.shipping>th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals.shipping>td{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  padding-left:0!important;
  padding-right:0!important;
  text-align:left!important;
  box-sizing:border-box!important;
}
body.woocommerce-cart tr.woocommerce-shipping-totals.shipping>td:before,
body.woocommerce-checkout tr.woocommerce-shipping-totals.shipping>td:before{
  display:none!important;
  content:none!important;
}
body.woocommerce-cart tr.woocommerce-shipping-totals.shipping td>* ,
body.woocommerce-checkout tr.woocommerce-shipping-totals.shipping td>*{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}
body.woocommerce-cart ul#shipping_method,
body.woocommerce-checkout ul#shipping_method,
body.woocommerce-cart .woocommerce-shipping-methods,
body.woocommerce-checkout .woocommerce-shipping-methods{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}
body.woocommerce-cart ul#shipping_method>li,
body.woocommerce-checkout ul#shipping_method>li,
body.woocommerce-cart .woocommerce-shipping-methods>li,
body.woocommerce-checkout .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;
  box-sizing:border-box!important;
}
body.woocommerce-cart ul#shipping_method>li label,
body.woocommerce-checkout ul#shipping_method>li label{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  white-space:normal!important;
}

/* UK checkout uses the address fields, not the legacy Latvian parcel-locker selector. */
body.wpbb-v415-market-uk.woocommerce-checkout .wpbbshop-parcel-fields{display:none!important}
body.wpbb-v415-market-uk.woocommerce-checkout .wpbbshop-courier-fields{display:block!important}
body.wpbb-v415-market-uk.woocommerce-checkout .wpbbshop-delivery-fields{
  width:100%!important;
  margin-top:8px!important;
  padding-top:6px!important;
}

/* My Account: compact, consistent list without inherited blank spacers. */
body.woocommerce-account .llg-account-nav ul{
  display:flex!important;
  flex-direction:column!important;
  gap:4px!important;
  margin:0!important;
  padding:0!important;
}
body.woocommerce-account .llg-account-nav li,
body.woocommerce-account .woocommerce-MyAccount-navigation li{
  display:block!important;
  width:100%!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}
body.woocommerce-account .llg-account-nav li:before,
body.woocommerce-account .llg-account-nav li:after,
body.woocommerce-account .woocommerce-MyAccount-navigation li:before,
body.woocommerce-account .woocommerce-MyAccount-navigation li:after{
  display:none!important;
  content:none!important;
}
body.woocommerce-account .llg-account-nav a,
body.woocommerce-account .woocommerce-MyAccount-navigation a{
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  min-height:40px!important;
  height:40px!important;
  margin:0!important;
  padding:0 10px!important;
  box-sizing:border-box!important;
}
body.woocommerce-account .llg-account-nav-title{
  padding:8px 9px 10px!important;
}
body.woocommerce-account .llg-commerce-heading{
  margin-bottom:14px!important;
}

@media(max-width:1280px){
  body.wpbbshop-theme.llg-v414-managed-info .llg-info-cards,
  body.wpbbshop-theme.llg-v314-info-page .llg-info-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:900px){
  body.woocommerce-account .llg-account-nav ul{flex-direction:row!important;gap:5px!important}
  body.woocommerce-account .llg-account-nav li,
  body.woocommerce-account .woocommerce-MyAccount-navigation li{width:auto!important;flex:0 0 auto!important}
  body.woocommerce-account .llg-account-nav a,
  body.woocommerce-account .woocommerce-MyAccount-navigation a{width:auto!important;height:40px!important;white-space:nowrap!important}
}
@media(max-width:760px){
  body.wpbbshop-theme.llg-v414-managed-info .wpbbshop-page-shell,
  body.wpbbshop-theme.llg-v314-info-page .wpbbshop-page-shell,
  body.wpbbshop-theme .llg-v414-virtual-info,
  body.wpbbshop-theme .llg-v314-virtual-page{width:calc(100% - 20px)!important}
  body.wpbbshop-theme.llg-v414-managed-info .llg-info-cards,
  body.wpbbshop-theme.llg-v314-info-page .llg-info-cards{grid-template-columns:1fr!important}
}
