/* Activity-aware cards expand to fill remaining space without clipped amounts. */
#app .tx-summary-v1251{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr))!important;gap:10px!important}
#app .tx-summary-v1251>.tx-summary-card-v1251[hidden]{display:none!important}
#app .tx-summary-v1251 .tx-summary-card-v1251{min-width:0!important;overflow-wrap:anywhere}
#app .tx-summary-v1251 .tx-summary-values-v1251{min-width:0!important}
#app .tx-summary-v1251 .tx-summary-values-v1251 strong{font-size:clamp(12px,3.3vw,19px)!important;overflow-wrap:anywhere}
#app .tx-summary-v1251.r3-phase1-no-activity{display:none!important}
@media(max-width:420px){#app .tx-summary-v1251{grid-template-columns:repeat(auto-fit,minmax(min(100%,104px),1fr))!important;gap:7px!important}}

/* iPhone: do not squeeze Sent + amount + currency into one overflowing line. */
#app .tx-summary-v1251 .u2-transfer-summary-values{display:flex!important;flex-direction:column!important;gap:5px!important;min-width:0!important}
#app .tx-summary-v1251 .u2-transfer-summary-line{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;column-gap:3px!important;row-gap:0!important;min-width:0!important;width:100%!important;align-items:baseline!important}
#app .tx-summary-v1251 .u2-transfer-summary-kind{grid-column:1!important;grid-row:1/3!important;font-size:10px!important;white-space:nowrap!important;align-self:center}
#app .tx-summary-v1251 .u2-transfer-summary-line strong{grid-column:2!important;grid-row:1!important;min-width:0!important;font-size:clamp(12px,3.0vw,18px)!important;white-space:nowrap!important;overflow:visible!important;line-height:1.1!important;letter-spacing:-.25px!important}
#app .tx-summary-v1251 .u2-transfer-summary-line span{grid-column:2!important;grid-row:2!important;justify-self:end!important;font-size:9px!important;line-height:1.2!important;white-space:nowrap!important}
#app .tx-summary-v1251 .tx-summary-card-v1251{min-width:0!important;overflow:hidden!important}
#app .tx-summary-v1251[hidden]{display:none!important}
@media(max-width:420px){#app .tx-summary-v1251 .u2-transfer-summary-card{padding:12px 9px!important}}

/* Full-width single summary cards should use the space rather than leave
   the value stranded on the left with a blank right-hand half. */
#app .tx-summary-v1251.r3-single-summary>.tx-summary-card-v1251{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,max-content);
  gap:16px;align-items:center;
}
#app .tx-summary-v1251.r3-single-summary>.tx-summary-card-v1251>.label{align-self:center}
#app .tx-summary-v1251.r3-single-summary .tx-summary-values-v1251{
  margin-top:0!important;justify-items:end!important;text-align:right;min-width:0;
}
#app .tx-summary-v1251.r3-single-summary .u2-transfer-summary-values{
  min-width:min(220px,45vw)!important;
}
#app .tx-summary-v1251.r3-single-summary .u2-transfer-summary-line{
  grid-template-columns:minmax(0,1fr) max-content!important;
}
@media(max-width:420px){
 #app .tx-summary-v1251.r3-single-summary>.tx-summary-card-v1251{gap:8px!important}
 #app .tx-summary-v1251.r3-single-summary .u2-transfer-summary-values{min-width:min(180px,60vw)!important}
}
