/* Keep the complete description visible in the home page agenda preview. */
.overview-future-copy strong {
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  line-height: 1.45;
}

.overview-future-meta {
  flex-wrap: wrap;
}

.overview-future-copy small {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Payment actions and amounts must not squeeze the description on phones. */
@media (max-width: 880px) {
  .overview-future-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .overview-future-main {
    grid-template-columns: 38px minmax(0, 1fr) 16px;
    grid-template-areas:
      "date copy arrow"
      "date amount arrow";
    gap: 6px 9px;
    padding: 12px;
  }

  .overview-future-date {
    grid-area: date;
    align-self: start;
  }

  .overview-future-main > .movement-icon {
    display: none;
  }

  .overview-future-copy {
    grid-area: copy;
  }

  .overview-future-copy strong {
    font-size: 13px;
  }

  .overview-future-main > b {
    grid-area: amount;
    justify-self: start;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    font-size: 12px;
  }

  .overview-future-main > svg {
    grid-area: arrow;
  }

  .overview-future-settle {
    justify-self: end;
    min-height: 36px;
    margin: 0 12px 12px;
    padding: 6px 10px;
    font-size: 11px;
  }
}
