/* Layout QA pass — retain all text, never overlay it. */
#account .truncate {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
}
#account p,
#account span {
  overflow-wrap: anywhere;
}

/* The long bypass-tariff title needs two full lines.  All tariff cards reserve
   the same header/description rows, so price options still begin together. */
@media (min-width: 1024px) {
  #pricing > div > div.grid.items-stretch > article {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
  }
  #pricing > div > div.grid.items-stretch > article > div:nth-child(1) {
    height: 128px !important;
    min-height: 128px !important;
  }
  #pricing > div > div.grid.items-stretch > article > div:nth-child(1) > p {
    display: none !important;
  }
  #pricing > div > div.grid.items-stretch > article > div:nth-child(1) h3 {
    margin-top: 12px !important;
    min-height: 0 !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere;
  }
  #pricing > div > div.grid.items-stretch > article > p:nth-child(2) {
    min-height: 72px !important;
    margin-top: 16px !important;
    overflow: visible !important;
  }
  #pricing > div > div.grid.items-stretch > article > div:nth-child(3) {
    min-height: 88px !important;
  }
  #pricing > div > div.grid.items-stretch > article > div:nth-child(4) {
    min-height: 92px !important;
  }
}

/* On phone widths, the account header has to stack: otherwise the narrow text
   column clips the upload label and account data. */
@media (max-width: 767px) {
  #account .flex.flex-col.gap-4 {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  #account .flex.flex-col.gap-4 > div.min-w-0 {
    width: 100% !important;
  }
  #account .flex.flex-col.gap-4 button.h-9 {
    width: 100% !important;
    height: auto !important;
    min-height: 2.5rem !important;
    padding: 0.45rem 0.75rem !important;
    white-space: normal !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }
  #account .grid.grid-cols-2 > * {
    min-width: 0 !important;
  }
}
