/* v591 Customer checkout summary repair.
   Presentation only: preserve server/client pricing math while ensuring a
   single readable tax/fee breakdown on narrow customer viewports. */
body.shop-page[data-staff-table-order="false"][data-staff-quick-order="false"] .checkout-summary{
  min-width:0;
  overflow:hidden;
}

/* premium.css gives every direct summary <div> flex layout. The tax/fee
   container itself must remain a vertical stack, not a horizontal flex row. */
body.shop-page[data-staff-table-order="false"][data-staff-quick-order="false"] .checkout-summary > #cart-tax-fee-lines-v89,
body.shop-page[data-staff-table-order="false"][data-staff-quick-order="false"] .checkout-summary > #customer-tax-fee-lines-v90,
body.shop-page[data-staff-table-order="false"][data-staff-quick-order="false"] .checkout-summary > .customer-tax-fee-lines-v591{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  gap:8px !important;
  width:100% !important;
  min-width:0 !important;
  margin:8px 0 10px !important;
  padding:0 !important;
}

body.shop-page[data-staff-table-order="false"][data-staff-quick-order="false"] .cart-tax-fee-row-v89,
body.shop-page[data-staff-table-order="false"][data-staff-quick-order="false"] .customer-tax-fee-row-v90,
body.shop-page[data-staff-table-order="false"][data-staff-quick-order="false"] .customer-tax-fee-row-v591{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:start !important;
  gap:12px !important;
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  line-height:1.25 !important;
}

body.shop-page[data-staff-table-order="false"][data-staff-quick-order="false"] .cart-tax-fee-row-v89 span,
body.shop-page[data-staff-table-order="false"][data-staff-quick-order="false"] .customer-tax-fee-row-v90 span,
body.shop-page[data-staff-table-order="false"][data-staff-quick-order="false"] .customer-tax-fee-row-v591 span{
  min-width:0;
  overflow-wrap:anywhere;
  word-break:normal;
}

body.shop-page[data-staff-table-order="false"][data-staff-quick-order="false"] .cart-tax-fee-row-v89 strong,
body.shop-page[data-staff-table-order="false"][data-staff-quick-order="false"] .customer-tax-fee-row-v90 strong,
body.shop-page[data-staff-table-order="false"][data-staff-quick-order="false"] .customer-tax-fee-row-v591 strong{
  justify-self:end;
  white-space:nowrap;
  text-align:right;
}

@media (max-width:480px){
  body.shop-page[data-staff-table-order="false"][data-staff-quick-order="false"] .checkout-summary{
    padding:15px !important;
  }
  body.shop-page[data-staff-table-order="false"][data-staff-quick-order="false"] .cart-tax-fee-row-v89,
  body.shop-page[data-staff-table-order="false"][data-staff-quick-order="false"] .customer-tax-fee-row-v90,
  body.shop-page[data-staff-table-order="false"][data-staff-quick-order="false"] .customer-tax-fee-row-v591{
    gap:10px !important;
    font-size:0.96rem;
  }
}
