.arraysubs-member-lookup-table {
  background: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 4px;

  &__search {
    padding: 16px;

    label {
      display: block;
      margin-bottom: 8px;
      font-weight: 600;
    }

    input {
      width: 100%;
      max-width: none;
      min-height: 36px;
    }
  }

  &__scroll {
    overflow-x: auto;
  }

  table {
    width: 100%;
    min-width: 1000px;
    border-right: 0;
    border-left: 0;
    box-shadow: none;
  }

  caption {
    padding: 0 16px 12px;
    color: #1d2327;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
  }

  th,
  td {
    padding: 12px;
    vertical-align: middle;
  }

  thead th {
    background: #f6f7f7;
    color: #50575e;
    font-size: 12px;
    font-weight: 600;
  }

  tbody td {
    border-bottom: 1px solid #f0f0f1;
  }

  tbody tr:last-child td {
    border-bottom: 0;
  }

  tbody tr:hover {
    background: #f9f9fa;
  }

  &__customer {
    min-width: 190px;
    max-width: 260px;
    overflow-wrap: anywhere;
  }

  &__account {
    min-width: 120px;
    max-width: 180px;
    overflow-wrap: anywhere;
  }

  &__secondary {
    display: block;
    margin-top: 4px;
    color: #646970;
    font-size: 12px;
  }

  th#{&}__number,
  td#{&}__number {
    text-align: right;
    font-variant-numeric: tabular-nums;
  }

  td#{&}__number,
  &__date {
    white-space: nowrap;
  }

  abbr[title] {
    text-decoration: underline dotted;
    text-underline-offset: 3px;
    cursor: help;
  }

  td a {
    color: var(--wp-admin-theme-color);
    font-weight: 600;

    &:hover {
      color: var(--wp-admin-theme-color-darker-10);
    }
  }

  &__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: #c3c4c7;
    font-size: 12px;

    a {
      text-decoration: none;

      &:hover {
        text-decoration: underline;
      }
    }
  }

  &__customer &__actions a {
    font-weight: 400;
  }

  @media (hover: hover) and (pointer: fine) {
    &__actions {
      opacity: 0;
      pointer-events: none;
    }

    tbody tr:hover &__actions,
    tbody tr:focus-within &__actions {
      opacity: 1;
      pointer-events: auto;
    }
  }

  a:focus-visible,
  input:focus {
    outline: 2px solid var(--wp-admin-theme-color);
    outline-offset: 2px;
    box-shadow: none;
  }

  &__error {
    padding: 0 16px;
    color: #b32d2e;
  }

  &__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;

    p {
      margin: 0;
      color: #646970;
      font-size: 12px;
    }
  }
}
