/* EDD retains the account, order status, file selection and signed links. */
.macs-customer-cover { display: flex; align-items: center; justify-content: center; flex: none; width: 112px; height: 140px; overflow: hidden; border: 1px solid var(--macs-primary); border-radius: 6px; background: var(--macs-surface); }
.macs-customer-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.macs-customer-cover--empty { background: var(--macs-primary); color: var(--macs-ink); }
.macs-customer-cover--empty .macs-icon { width: 36px; height: 36px; }
a.macs-file-download { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; width: fit-content; max-width: 100%; min-height: 48px; padding: 12px 18px; font-size: 14px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; text-align: center; }
a.macs-file-download[data-macs-download-label]::before { content: attr(data-macs-download-label); display: block; max-width: 100%; padding-left: 28px; background: url('../icons/download.svg') no-repeat left center / 20px 20px; font-size: 16px; font-weight: 700; line-height: 1.4; }
.macs-file-download:focus-visible { outline: 3px solid var(--macs-ink); outline-offset: 4px; }
.macs-customer-history { width: 100%; table-layout: fixed; border-collapse: collapse; }
.macs-customer-history th, .macs-customer-history td { padding: 16px; text-align: start; vertical-align: top; overflow-wrap: anywhere; border-bottom: 1px solid var(--macs-primary); }
.macs-customer-history .macs-history-cover-heading { width: 144px; }
.macs-customer-history .edd_download_download_name { font-weight: 700; }
.macs-customer-history .edd_download_file + .edd_download_file { margin-top: 12px; }
.macs-history-product { display: flex; align-items: flex-start; gap: 16px; min-width: 0; overflow-wrap: anywhere; }
.edd-blocks__user-downloads .edd-order-item__file + .edd-order-item__file { margin-top: 12px; }
.macs-customer-receipt { width: 100%; max-width: 100%; border-collapse: collapse; table-layout: auto; }
.macs-customer-receipt th, .macs-customer-receipt td { padding: 16px; vertical-align: top; overflow-wrap: anywhere; border-bottom: 1px solid var(--macs-primary); }
.macs-customer-receipt th:first-child { width: 70%; }
.macs-customer-receipt th:not(:first-child), .macs-customer-receipt td:not(:first-child) { text-align: end; }
.macs-receipt-details { min-width: 0; }
.macs-receipt-details.is-covered { display: grid; grid-template-columns: 112px minmax(0,1fr); grid-template-rows: auto 1fr; gap: 12px 20px; align-content: start; align-items: start; }
.macs-receipt-details.is-covered > :not(.macs-receipt-cover) { grid-column: 2; min-width: 0; }
.macs-receipt-details.is-covered > .macs-receipt-cover { grid-column: 1; grid-row: 1 / -1; }
.macs-receipt-details :is(.edd_purchase_receipt_product_name,.edd-blocks__row-label) { font-weight: 700; }
.macs-receipt-details .edd_purchase_receipt_files, .macs-receipt-details .edd_bundled_product_files { margin: 0; padding: 0; list-style: none; }
.macs-receipt-details .edd_purchase_receipt_files > li + li, .macs-receipt-details .edd_bundled_product_files > li + li { margin-top: 12px; }
.macs-receipt-details .edd_bundled_product_name { display: block; margin: 0 0 8px; font-weight: 700; }
.macs-receipt-details .edd_purchase_receipt_product_notes { margin: 0; }
.edd-blocks-receipt__item { gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--macs-primary); }
.edd-blocks-receipt__item-details { flex: 1; }
.edd-blocks-receipt__item-price { flex-shrink: 0; }
@media (max-width: 600px) {
  .macs-customer-cover { width: 80px; height: 100px; }
  .macs-customer-history thead, .macs-customer-receipt thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }
  .macs-customer-history, .macs-customer-history tbody { display: block; width: 100%; }
  .macs-customer-history .edd_download_history_row { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px 16px; padding-block: 20px; border-bottom: 1px solid var(--macs-primary); }
  .macs-customer-history.is-covered .edd_download_history_row { grid-template-columns: 80px minmax(0,1fr); }
  .macs-customer-history .edd_download_history_row td { display: block; grid-column: 1; padding: 0; border: 0; min-width: 0; }
  .macs-customer-history.is-covered .edd_download_history_row td { grid-column: 2; }
  .macs-customer-history.is-covered .edd_download_history_row .macs-history-cover-cell { grid-column: 1; grid-row: 1 / 3; }
  a.macs-file-download { width: 100%; }
  .macs-customer-receipt, .macs-customer-receipt tbody { display: block; width: 100%; }
  .macs-customer-receipt tbody > tr { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--macs-primary); }
  .macs-customer-receipt tbody > tr > td { display: block; width: auto; min-width: 0; padding: 0; border: 0; }
  .macs-customer-receipt tbody > tr > .macs-receipt-details.is-covered { display: grid; }
  .macs-customer-receipt tbody > tr > td:not(:first-child) { display: flex; justify-content: space-between; gap: 16px; text-align: end; }
  .macs-customer-receipt td:not(:first-child)::before { content: attr(data-macs-label); font-weight: 700; text-align: start; }
  .macs-receipt-details.is-covered { grid-template-columns: 80px minmax(0,1fr); gap: 12px 16px; }
  .edd-blocks-receipt__item { flex-wrap: wrap; gap: 16px; }
  .edd-blocks-receipt__item-details { flex-basis: 100%; }
  .edd-blocks-receipt__item-price { margin-left: auto; }
  .edd-blocks__user-downloads .edd-order-item__product { flex-wrap: wrap; gap: 16px; }
  .edd-blocks__user-downloads .edd-blocks__row-column { flex-basis: 100%; min-width: 0; }
}
