/* Live empty-cart shell: author flex styles must respect the semantic hidden state. */
.wpt-cart-all--foot[hidden] { display: none !important; }
/* The bottom navigation is also visible on desktop. Reserve its measured height
   and raised invitation button instead of assuming a mobile-only 72px bar. */
.wpt-full-cart > .wp-dr-footwrap {
  bottom: var(--wp-cart-nav-clearance, calc(var(--wp-tabbar-h, 72px) + 28px));
}
@media (max-width: 479px) {
  .wpt-full-cart .wp-dr-footrow, .wp-drawer .wp-dr-footrow { flex-wrap: wrap; }
  .wpt-full-cart .wpt-cart-all--foot, .wp-drawer .wpt-cart-all--foot { flex-basis: 100%; }
  .wpt-full-cart .wp-dr-footrow .wp-dr-foot, .wp-drawer .wp-dr-footrow .wp-dr-foot { flex-basis: 100%; }
  .wp-selected-cart-total { min-width: 0; }
}
/* Keep the site's floating support entry above, rather than on, the cart actions. */
.woocommerce-cart.has-tabbar .wp-fab {
  bottom: calc(var(--wp-cart-nav-clearance, 100px) + var(--wp-cart-footer-height, 120px) + 12px);
}
/* 1.1.17's flex rule must not defeat the newer category header grid. */
.wp-category-browser .wp-category-topbar {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) minmax(0, 146px);
}
.wp-category-topbar .wp-brand-lockup { flex: initial; max-width: 100%; }
@media (max-width: 600px) {
  .wp-category-browser .wp-category-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 8px 10px;
    gap: 8px;
  }
  .wp-category-topbar-spacer { display: none; }
  .wp-category-topbar .wp-brand-lockup { justify-self: start; gap: 6px; }
  .wp-category-topbar .wp-logo { width: 44px; }
  .wp-category-topbar .wp-logo img { max-width: 44px; }
  .wp-category-topbar .wp-source-brand b { white-space: normal; line-height: 1.15; }
  .wp-category-topbar-lang { width: auto; max-width: 146px; }
}
@media (max-width: 359px) {
  .wp-category-topbar-lang { max-width: 118px; }
}
.wp-category-browser .wp-category-searchbar {
  top: calc(var(--wp-category-header-height, 78px) + var(--wp-category-adminbar-height, 0px));
}
