/*
 * patient-support-documentation.css - Documentation support on the Support tab:
 * the uploaded forms, the payment step's buttons, and the "Your request" card
 * (support-documentation.js, support-pay.js, support-request.js).
 *
 * Its own file because patient-support.css is already past 700 lines. Same
 * tokens as the dashboard (--ps-*); every control is at least 44px tall on a phone.
 * Scoped to the patient page's stage body and to a support link's page
 * (short_link_support.html, `.sl-support-card`), so both draw the same rows.
 */

:is(.ps-stage-body, .sl-support-card) .sp-files {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

:is(.ps-stage-body, .sl-support-card) .sp-file {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--ps-border);
  border-radius: 10px;
  background: var(--color-card);
  font-size: var(--fs-14, 14px);
}

:is(.ps-stage-body, .sl-support-card) .sp-file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Remove, Cancel, Ask us, Retry: quiet text buttons that still get a full target.
   "Your follow-up"'s Cancel wears the same look, so the two cards match. */
:is(.ps-stage-body, .sl-support-card) .sp-file .sp-text-btn,
:is(.ps-stage-body, .sl-support-card) .sp-req-foot .sp-text-btn,
:is(.ps-stage-body, .sl-support-card) .sp-fu-actions .sp-text-btn,
:is(.ps-stage-body, .sl-support-card) .sp-error .sp-text-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0 4px;
  color: var(--ps-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

:is(.ps-stage-body, .sl-support-card) .sp-upload,
:is(.ps-stage-body, .sl-support-card) [data-sp-continue],
:is(.ps-stage-body, .sl-support-card) .sp-pay-row .acp-cta,
:is(.ps-stage-body, .sl-support-card) .sp-req .acp-cta {
  min-height: 44px;
}

:is(.ps-stage-body, .sl-support-card) .sp-check {
  min-height: 44px;
}

:is(.ps-stage-body, .sl-support-card) .sp-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

:is(.ps-stage-body, .sl-support-card) .sp-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 4px;
}

:is(.ps-stage-body, .sl-support-card) .sp-cards:empty {
  display: none;
}

:is(.ps-stage-body, .sl-support-card) .sp-req .acp-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

:is(.ps-stage-body, .sl-support-card) .sp-req-items {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ps-border);
}

:is(.ps-stage-body, .sl-support-card) .sp-req-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  min-height: 48px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ps-border);
  font-size: var(--fs-14, 14px);
}

:is(.ps-stage-body, .sl-support-card) .sp-req-name {
  flex: 1;
  min-width: 10em;
  color: var(--ps-text);
}

:is(.ps-stage-body, .sl-support-card) .sp-req-state {
  color: var(--ps-text-soft);
  font-size: var(--fs-13, 13px);
}

:is(.ps-stage-body, .sl-support-card) .sp-req-state--ready {
  color: var(--ps-green, #2f6b4f);
  font-weight: 600;
}

:is(.ps-stage-body, .sl-support-card) .sp-req-reason {
  flex-basis: 100%;
  margin: 0;
  color: var(--ps-text-soft);
  font-size: var(--fs-13, 13px);
}
