/* Katie's 18 October cart/checkout corrections. Keep Woo's state and forms native. */
html body.woocommerce-cart .hl-main.hl-page > .wp-block-post-title{margin-bottom:16px}
html body.woocommerce-cart .hl-main > .wp-block-post-content{margin-block-start:0}
html body.woocommerce-cart .hl-empty-cart{padding-block:0 32px;align-items:start}
html body.woocommerce-cart .hl-empty-cart > div{padding-top:24px}
html body.woocommerce-cart .hl-empty-cart-product h2{margin-block:20px 16px}
html body.woocommerce-cart .hl-empty-cart-product ins{text-decoration:none}
/* Respect a hidden state even if a Woo extension adds it to this layout. */
html body.woocommerce-cart .hl-empty-cart[hidden],
html body.woocommerce-cart .hl-empty-cart[aria-hidden="true"]{display:none!important}

html body.woocommerce-cart .wc-block-cart__submit-button,
html body.woocommerce-checkout .wc-block-components-checkout-place-order-button{background:#303030;color:#fff9ec;border:1px solid #303030}
html body.woocommerce-cart .wc-block-cart__submit-button:hover,
html body.woocommerce-cart .wc-block-cart__submit-button:focus-visible,
html body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
html body.woocommerce-checkout .wc-block-components-checkout-place-order-button:focus-visible{background:#cad482;color:#303030;border-color:#303030}
html body.woocommerce-cart .wc-block-cart__submit-button:focus-visible,
html body.woocommerce-checkout .wc-block-components-checkout-place-order-button:focus-visible{outline:2px solid #303030;outline-offset:3px}

/* A narrow summary must give its totals their own row, not squeeze three
   flex children past the panel edge. Prices may wrap between whole amounts. */
html body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item{display:grid;grid-template-columns:48px minmax(0,1fr);column-gap:16px;row-gap:8px;align-items:start}
html body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__image{grid-column:1;margin-top:8px;padding-bottom:0;width:48px}
html body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__description{grid-column:2;min-width:0;width:auto;padding:4px 0 0;word-break:normal;overflow-wrap:break-word}
html body.woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name{font-size:20px;line-height:1.3}
html body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__total-price{grid-column:2;justify-self:end;min-width:0;max-width:100%;margin:0;padding:0 0 16px;text-align:right}
html body.woocommerce-checkout .wc-block-components-order-summary-item__individual-prices{display:flex;flex-wrap:wrap;gap:4px 8px}
html body.woocommerce-checkout .wc-block-components-order-summary-item__individual-prices del,
html body.woocommerce-checkout .wc-block-components-order-summary-item__individual-prices ins{margin:0;white-space:nowrap}
html body.woocommerce-checkout .wc-block-components-order-summary-item__total-price .wc-block-components-product-price__value,
html body.woocommerce-checkout .wc-block-components-order-summary-item__total-price .wc-block-components-sale-badge{white-space:nowrap;overflow-wrap:normal;word-break:normal}
@media(max-width:600px){
  html body.woocommerce-cart .hl-empty-cart > div{padding-top:0}
  html body.woocommerce-cart .hl-empty-cart-product{max-width:100%}
  /* Keep the native image/details cells, with the full line total below the
     details instead of a third column that exceeds a phone's content width. */
  html body.woocommerce-cart table.wc-block-cart-items{display:block;width:100%;max-width:100%;border-spacing:0}
  html body.woocommerce-cart table.wc-block-cart-items tbody{display:block;width:100%}
  html body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row{grid-template-columns:64px minmax(0,1fr);gap:12px;width:100%;box-sizing:border-box}
  html body.woocommerce-cart .wp-block-woocommerce-cart table.wc-block-cart-items tr.wc-block-cart-items__row > td.wc-block-cart-item__image{grid-column:1;grid-row:1;width:64px;padding:0}
  html body.woocommerce-cart .wp-block-woocommerce-cart table.wc-block-cart-items tr.wc-block-cart-items__row > td.wc-block-cart-item__product{grid-column:2;grid-row:1;min-width:0;width:auto;padding:0}
  html body.woocommerce-cart .wp-block-woocommerce-cart table.wc-block-cart-items tr.wc-block-cart-items__row > td.wc-block-cart-item__total{grid-column:2;grid-row:2;justify-self:end;width:auto;max-width:100%;padding:0}
  html body.woocommerce-cart .wc-block-cart-item__prices .wc-block-components-product-price{flex-wrap:wrap;gap:4px 8px}
  html body.woocommerce-cart .wc-block-cart-item__prices del,
  html body.woocommerce-cart .wc-block-cart-item__prices ins{margin:0;white-space:nowrap}
  html body.woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price,
  html body.woocommerce-cart .wc-block-cart-item__total .wc-block-components-sale-badge{white-space:nowrap}
  html body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item{column-gap:12px}
}
