/* Keep the native checkout link in normal flow. Woo hides its sticky variant
   on desktop/short viewports; this site's shell can leave that variant active. */
.bwud-page .wc-block-cart .wc-block-cart__submit-container {
  display: flex !important;
  position: static !important;
  inset: auto !important;
  width: 100%;
  padding: 0 !important;
  margin-top: 20px;
  background: transparent !important;
  box-shadow: none !important;
}
.bwud-page .wc-block-cart .wc-block-cart__submit-container::before { display: none !important; }
.bwud-page .wc-block-cart .wc-block-cart__submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  width: 100%;
  background: #1259d0;
  border: 1px solid #1259d0;
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 20px;
  box-sizing: border-box;
}
.bwud-page .wc-block-cart .wc-block-cart__submit-button:hover { background: #104db4; }
.bwud-page .wc-block-cart .wc-block-cart__submit-button:focus-visible { outline: 3px solid #9cc0ff; outline-offset: 3px; }
.bwud-page .bwuc-cart-shop-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 50px;
  max-width: 100%;
  padding: 12px 20px;
  border-radius: 4px;
  background: #1259d0;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.bwud-page .bwuc-cart-shop-link:focus-visible { outline: 3px solid #9cc0ff; outline-offset: 3px; }
/* Code purchases require full billing and contract review at checkout.
   Keep every eligible payment method available there, rather than starting
   an unsupported express purchase from the cart. */
.bwud-page .wp-block-woocommerce-cart-express-payment-block,
.bwud-page .wc-block-cart__payment-options { display: none !important; }
@media(max-width:600px) {
  .bwud-page .wc-block-cart table.wc-block-cart-items,
  .bwud-page .wc-block-cart table.wc-block-cart-items tbody {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .bwud-page .wc-block-cart table.wc-block-cart-items thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .bwud-page .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    column-gap: 12px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  /* Code products have no product photo; omit the empty thumbnail on phones. */
  .bwud-page .wc-block-cart .wc-block-cart-item__image { display: none; }
  /* Override Woo's native mobile row and its product span 2 / 4 together.
     Overriding only the price cell would put it over the product controls. */
  .bwud-page .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row > .wc-block-cart-item__product {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    padding: 0;
    overflow-wrap: anywhere;
  }
  .bwud-page .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row > .wc-block-cart-item__total {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    align-self: start;
    white-space: nowrap;
  }
}
