/* Commerce only. Fit content instead of hiding horizontal overflow. */
@media screen and (max-width:782px){
 body.bb-checkout-page .bb-checkout-main>article,
 body.bb-checkout-page .bb-checkout-content,
 body.bb-page .wp-block-woocommerce-checkout,
 body.bb-page .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout{
  min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box!important;margin-inline:0!important;
 }
 body.bb-page .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout{display:flex!important;flex-direction:column!important;gap:24px!important}
 body.bb-page .wp-block-woocommerce-checkout .wc-block-checkout__main,
 body.bb-page .wp-block-woocommerce-checkout .wc-block-checkout__sidebar{
  flex:none!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;padding-inline:0!important;box-sizing:border-box!important;
 }
 body.bb-page .wp-block-woocommerce-checkout .wc-block-checkout__sidebar{position:static!important;inset:auto!important;align-self:stretch!important}
 body.bb-page .bb-checkout-entry.bb-checkout-entry-compact{
  width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important;box-sizing:border-box!important;
 }
 body.bb-page .bb-checkout-entry-card,
 body.bb-page .bb-checkout-entry form,
 body.bb-page .wp-block-woocommerce-checkout :is(.bb-profile-account-panel,.bb-account-match,.bb-checkout-final-review,.wc-block-components-checkout-step,.wc-block-components-checkout-step__content,.wc-block-components-address-form,.wp-block-woocommerce-checkout-order-summary-block,.wc-block-components-checkout-order-summary__content){
  min-width:0!important;max-width:100%!important;box-sizing:border-box!important;overflow-wrap:anywhere;
 }
 body.bb-page .wp-block-woocommerce-checkout :is(.bb-profile-account-panel,.bb-account-match,.bb-checkout-final-review){width:100%!important}
 body.bb-page .bb-checkout-entry :is(input[type=text],input[type=email],input[type=password]),
 body.bb-page .wp-block-woocommerce-checkout :is(.wc-block-components-text-input>input,.wc-blocks-components-select,.wc-blocks-components-select__container,.wc-blocks-components-select__select){
  width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
 }
 body.bb-page .wp-block-woocommerce-checkout fieldset{min-inline-size:0!important;max-inline-size:100%!important}
 body.bb-page .wp-block-woocommerce-checkout :is(.bb-profile-guest,.wc-block-components-checkbox__label){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 body.bb-page .wp-block-woocommerce-checkout .bb-profile-guest>span{min-width:0!important;overflow-wrap:anywhere}
 body.bb-page .bb-checkout-entry :is(button,.button),
 body.bb-page .bb-checkout-step-controls .button,
 body.bb-page .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button{max-width:100%!important;box-sizing:border-box!important;white-space:normal!important;overflow-wrap:anywhere}
 body.bb-page .bb-checkout-progress{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
 body.bb-page .bb-checkout-progress :is(ol,li,button){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 body.bb-page .bb-checkout-progress button{padding:10px 8px!important;overflow-wrap:anywhere}
 body.bb-page .wc-block-checkout__shipping-method-option{min-width:0!important;padding:10px 8px!important;box-sizing:border-box!important}
 body.bb-page .wc-block-checkout__shipping-method-option-title-wrapper{min-width:0;max-width:100%;align-items:center;flex-wrap:wrap}
 body.bb-page .wc-block-checkout__shipping-method-option-title{font-size:14px!important;line-height:1.4!important;white-space:normal}
 /* Give quantity + delete their own full-width row below the product details. */
 body.bb-page .wp-block-woocommerce-checkout .wc-block-components-order-summary-item{
  display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;column-gap:12px!important;row-gap:10px!important;align-items:start!important;min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box!important;
 }
 body.bb-page .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__image{grid-column:1!important;grid-row:1!important;width:48px!important;min-width:0!important;max-width:48px!important;margin:0!important}
 body.bb-page .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__image img{width:48px!important;max-width:100%!important;height:auto!important}
 body.bb-page .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__total-price{grid-column:2!important;grid-row:1!important;justify-self:end!important;position:static!important;min-width:0!important;max-width:100%!important;margin:0!important;white-space:normal!important;overflow-wrap:anywhere}
 body.bb-page .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__description{grid-column:1/-1!important;grid-row:2!important;min-width:0!important;width:100%!important;max-width:100%!important;margin:0!important;overflow-wrap:anywhere}
 body.bb-page .wp-block-woocommerce-checkout .wc-block-components-totals-item{flex-wrap:wrap!important;gap:4px 12px!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 body.bb-page .wp-block-woocommerce-checkout :is(.wc-block-components-totals-item__label,.wc-block-components-totals-item__value){min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere}
 body.bb-page .wp-block-woocommerce-checkout :is(.wc-block-components-payment-methods,.wc-block-components-payment-methods__content,.wc-block-components-radio-control,.wc-block-components-radio-control-accordion-content){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 body.bb-page .wp-block-woocommerce-checkout iframe{max-width:100%!important}
 /* Drawer padding is included in its width, and action labels can wrap. */
 body.bb-page dialog.bb-cart-drawer{width:min(460px,100vw)!important;max-width:100vw!important;min-width:0!important;box-sizing:border-box!important}
 body.bb-page dialog.bb-cart-drawer :is(.dialog-header,.bb-cart-drawer-body,.cart-actions,.bb-drawer-item,.bb-drawer-item-copy,.bb-drawer-empty){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 body.bb-page dialog.bb-cart-drawer .bb-cart-continue{flex:1;min-width:0;white-space:normal;overflow-wrap:anywhere}
 body.bb-page dialog.bb-cart-drawer .close-dialog{flex:0 0 44px}
 body.bb-page dialog.bb-cart-drawer :is(h2,h3,p,.button){overflow-wrap:anywhere;max-width:100%;box-sizing:border-box;white-space:normal}
 body.bb-page dialog.bb-cart-drawer .bb-drawer-controls{min-width:0;max-width:100%;flex-wrap:wrap;box-sizing:border-box}
}
