/* AuctionForge 3.8.8.19: My Account fits phones. Standalone file, scoped to the profile page. */

/* The profile column is a flex item (min-width:auto), so one wide child stretched it past the screen. */
.bp-row_profile,
.bp-row_profile .bp-lots,
.bp-row_profile .bp-col,
.bp-bills-table-wrapper { min-width: 0; max-width: 100%; }

@media (max-width: 640px) {
  /* Invoices: one card per invoice instead of a 5-column table. */
  .bp-bills-table-wrapper { overflow-x: visible !important; }
  .bp-bills-table,
  .bp-bills-table tbody,
  .bp-bills-table tr,
  .bp-bills-table td { display: block; width: 100%; box-sizing: border-box; }
  .bp-bills-table thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .bp-bills-table tr {
    border: 1px solid #e2e2e2 !important; border-radius: 8px; margin: 0 0 12px; padding: 4px 0; background: #fff;
  }
  .bp-bills-table td {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    padding: 8px 14px !important; border: 0; text-align: right; font-size: 15px; line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .bp-bills-table td[data-label]::before {
    content: attr(data-label); flex: 0 0 auto; text-align: left; color: #666; font-weight: 400; font-size: 14px;
  }
  .bp-bills-table td.bp-bill-name {
    display: block; text-align: left; font-size: 16px; border-bottom: 1px solid #eee; padding-bottom: 10px !important;
  }
  .bp-bills-table td.bp-bill-actions { display: block; padding-top: 6px !important; }
  .bp-bills-table td.bp-bill-actions > div { flex-wrap: wrap; }
  .bp-bills-table td.bp-bill-actions .bp-btn {
    flex: 1 1 140px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
    text-align: center;
  }

  /* Account tab rows (Future / Ended auctions...) wrap instead of running off-screen. */
  .bp-row_profile .bp-tabs, .bp-row_profile [class*="tabs"] { flex-wrap: wrap; max-width: 100%; }
}
