/* Narrow extension of the accepted storefront and account design. */
.email-access-status { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 13px; margin: 12px 0; overflow-wrap: anywhere; }
.email-access-status p { margin: 8px 0; }
[data-email-error]:not(:empty) { color: #f49c89; }
html[data-theme="light"] [data-email-error]:not(:empty) { color: #a52c1c; }
.modal__dialog--customer-registration { width: min(760px, calc(100vw - 32px)); }
.customer-profile-grid, .company-profile, .bank-profile, .purchase-details { min-width: 0; }
.customer-profile-grid { margin: 14px 0; }
.company-profile { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 12px 0; }
.company-profile[hidden], .company-profile [hidden] { display: none !important; }
.company-profile legend { padding: 0 6px; font-weight: 700; font-size: 14px; }
.company-profile input, .customer-profile-grid input, .customer-profile-grid select { width: 100%; min-width: 0; box-sizing: border-box; }
.bank-profile { margin-top: 16px; }
.bank-profile summary, .purchase-details summary { cursor: pointer; font-weight: 650; font-size: 13px; padding: 10px 0; }
.bank-profile[open] .account-profile__grid { margin-top: 12px; }
.purchase-details { border-top: 1px solid var(--line); margin-top: 12px; }
.purchase-lines { list-style: none; padding: 0; margin: 8px 0; }
.purchase-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.purchase-lines li > div { min-width: 0; }
.purchase-lines small { display: block; opacity: .75; margin-top: 4px; }
.purchase-lines li > strong { white-space: nowrap; }
.purchase-meta { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 12px; margin: 14px 0; font-size: 13px; }
.purchase-meta dt { opacity: .7; }
.purchase-meta dd { margin: 0; overflow-wrap: anywhere; }
.purchase-timeline { list-style: none; padding: 0; font-size: 12px; }
.purchase-timeline li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.purchase-timeline time { opacity: .7; }
.purchase-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 16px; font-size: 12px; }
[data-profile-error]:not(:empty), [data-auth-error]:not(:empty) { color: #f49c89; }
html[data-theme="light"] [data-profile-error]:not(:empty), html[data-theme="light"] [data-auth-error]:not(:empty) { color: #a52c1c; }
@media (max-width: 640px) {
  .modal__dialog--customer-registration { width: calc(100vw - 20px); }
  .customer-profile-grid, .company-profile .account-profile__grid { grid-template-columns: minmax(0, 1fr); }
  .customer-profile-grid .account-profile__wide, .company-profile .account-profile__wide { grid-column: auto; }
  .company-profile { padding: 10px; }
  .purchase-meta { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .purchase-meta dd { margin-bottom: 8px; }
  .purchase-lines li { flex-direction: column; gap: 6px; }
  .purchase-pagination span { width: 100%; text-align: center; order: -1; }
}
