/* Let the page description give way before the account controls on small desktops. */
@media (min-width: 1025px) and (max-width: 1279px) {
  .caomei-console:has(main:is([data-user-list="available-channels"], [data-user-list="batch-image"])) .console-header > div {
    column-gap: .5rem;
  }
  .caomei-console:has(main:is([data-user-list="available-channels"], [data-user-list="batch-image"])) .console-header > div > :first-child {
    flex: 1 1 0;
    min-width: 0;
  }
  .caomei-console:has(main:is([data-user-list="available-channels"], [data-user-list="batch-image"])) .console-header > div > :first-child :is(h1, p) {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .caomei-console:has(main:is([data-user-list="available-channels"], [data-user-list="batch-image"])) .console-header > div > :last-child {
    flex: 0 0 auto;
    column-gap: .5rem;
  }
}

/* A note gets a full line below the transaction type, date and amount. */
@media (max-width: 639px) {
  main[data-user-list="redeem"] .rounded-xl:has(> .text-right > p[title]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: .5rem;
  }
  main[data-user-list="redeem"] .rounded-xl:has(> .text-right > p[title]) > :first-child {
    grid-area: 1 / 1 / span 2;
    gap: .5rem;
    overflow-wrap: anywhere;
  }
  main[data-user-list="redeem"] .text-right:has(> p[title]) {
    display: contents;
  }
  main[data-user-list="redeem"] .text-right:has(> p[title]) > p:not([title]) {
    grid-column: 2;
    text-align: right;
  }
  main[data-user-list="redeem"] .text-right > p[title] {
    grid-column: 1 / -1;
    margin-top: .5rem;
    min-width: 0;
    max-width: none;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    overflow: visible;
    text-overflow: clip;
    text-align: start;
  }
}
