/* v47.23 — responsive cards and consolidated account/management screens. */
#content,#content>*,#content article,#content section,#content form,#content label{min-width:0}
.v61-account-tabs{display:flex;gap:7px;overflow-x:auto;margin:10px 0 18px;padding:6px;border:1px solid #eadfe0;border-radius:14px;background:#fff}
.v61-account-tabs button{flex:0 0 auto;padding:11px 15px;border:0;border-radius:9px;background:transparent;color:#66595a;font-weight:850;cursor:pointer}
.v61-account-tabs button.active{background:#a5141d;color:#fff;box-shadow:0 5px 14px rgba(165,20,29,.18)}

/* Prevent the narrow card collision shown in checkout/customer panels. */
.payment-methods,.payment-options,[class*="payment-methods"],[class*="payment-options"]{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))!important;gap:8px!important;min-width:0!important}
.payment-methods>*,.payment-options>*,[class*="payment-methods"]>*,[class*="payment-options"]>*{width:auto!important;min-width:0!important;max-width:100%!important;overflow:hidden!important}
.payment-methods label,.payment-options label,[class*="payment-methods"] label,[class*="payment-options"] label{white-space:normal!important;overflow-wrap:anywhere!important}
.payment-method,.payment-option,[class~="payment-method"],[class~="payment-option"]{box-sizing:border-box!important;width:auto!important;min-width:0!important;max-width:100%!important;overflow:hidden!important}
.payment-method *,.payment-option *{min-width:0!important;max-width:100%;overflow-wrap:anywhere}
.v44-crm-card,.v59-customer-card,.v44-profile-columns>section,.v44-quote-row>*{min-width:0!important;max-width:100%}
.v44-crm-card>header strong,.v59-customer-card header b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v44-profile-columns{align-items:start}.v44-recommendations button,.v44-order-list button{min-width:0}.v44-recommendations button span,.v44-order-list button span{min-width:0;overflow-wrap:anywhere}
.v44-crm-toolbar,.v44-crm-toolbar>*,.v44-tabs,.v44-crm-card>header span,.v44-crm-metrics>*{min-width:0!important}

@media(max-width:700px){
  .v61-account-tabs{margin-left:-3px;margin-right:-3px}
  .payment-methods,.payment-options,[class*="payment-methods"],[class*="payment-options"]{grid-template-columns:1fr!important}
  .v44-crm-summary{grid-template-columns:1fr 1fr!important}
  .v44-profile-columns,.v44-crm-grid,.v59-customer-grid{grid-template-columns:1fr!important}
  .v44-profile-actions{grid-template-columns:1fr 1fr!important}
}
@media(max-width:480px){
  .v44-quote-row{grid-template-columns:minmax(0,1fr) 64px 34px!important}
  .v44-quote-row>select{grid-column:1/-1}
  .v44-quote-row>input:nth-of-type(2){grid-column:1/3}
  .v44-crm-metrics,.v59-customer-card>div{grid-template-columns:1fr 1fr!important}
}
