/* Shared mobile controls for every document wizard and status choice card. */
.mobile-wizard-page [data-wizard-radio-group] {
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, 14rem), 1fr)
  );
}

.mobile-wizard-page [data-radio-label] {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: pretty;
}

@media (max-width: 767px) {
  .mobile-wizard-page form.wizard-form {
    padding-bottom: 1rem;
  }

  .mobile-wizard-page .wizard-actions {
    position: static;
    z-index: auto;
    bottom: auto;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem 0 0;
    border: 0;
    border-top: 1px solid #eaecf0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .mobile-wizard-page .wizard-actions > button,
  .mobile-wizard-page .wizard-actions > div {
    flex: 0 1 auto;
    min-width: 0;
  }

  .mobile-wizard-page .wizard-actions > .wizard-primary-slot {
    display: flex;
    width: 10.75rem;
    margin-left: auto;
  }

  .mobile-wizard-page
    .wizard-actions
    > [data-wizard-prev][hidden]
    + .wizard-primary-slot {
    flex: 0 1 auto;
    margin-left: auto;
  }

  .mobile-wizard-page
    .wizard-actions
    > [data-wizard-prev]:not([hidden]) {
    flex: 0 1 auto;
    width: auto;
  }

  .mobile-wizard-page .wizard-actions button {
    width: auto;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    line-height: 1.2;
  }

  .mobile-wizard-page .wizard-actions button[hidden] {
    display: none !important;
  }

  .mobile-wizard-page .wizard-actions [data-wizard-prev] {
    color: #475467;
  }

  .mobile-wizard-page .wizard-actions .wizard-primary-action {
    width: 100%;
  }

  .mobile-wizard-page .wizard-actions .btn-primary {
    box-shadow: 0 6px 14px -12px rgba(128, 101, 53, 0.55);
  }

  .mobile-wizard-page [data-radio-option] {
    min-width: 0;
    align-items: flex-start;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  [data-choice-card] {
    min-width: 0;
  }

  [data-choice-card] [data-choice-badge] {
    position: static;
    align-self: flex-start;
    margin-bottom: 0.5rem;
  }

  [data-choice-card] [data-choice-title] {
    min-width: 0;
    padding-right: 0;
    overflow-wrap: anywhere;
  }

  [data-choice-card] [data-choice-description],
  [data-choice-card] [data-choice-target] {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
