.arraysubs-email-settings {
  width: 100%;

  &__group {
    margin-bottom: 28px;
  }

  &__group-title {
    margin: 0 0 12px;
    color: #1d2327;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
  }

  &__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  &__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 16px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #fff;
  }

  &__card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
  }

  &__title {
    margin: 0;
    padding-top: 5px;
    color: #1d2327;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
  }

  &__description {
    margin: 0 0 12px;
    color: #646970;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  &__recipient {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: auto 0 0;
    color: #646970;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  &__recipient-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;

    &--customer {
      color: #1e4620;
      background: #edf8ee;
    }

    &--admin {
      color: var(--wp-admin-theme-color-darker-20);
      background: color-mix(in srgb, var(--wp-admin-theme-color) 10%, #fff);
    }
  }

  &__recipient-address {
    min-width: 0;
  }

  &__edit {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    color: var(--wp-admin-theme-color);

    &:hover {
      color: var(--wp-admin-theme-color-darker-10);
      background: color-mix(in srgb, var(--wp-admin-theme-color) 8%, transparent);
    }

    &:focus-visible {
      outline: 2px solid var(--wp-admin-theme-color);
      outline-offset: 2px;
    }
  }

  &__settings-link {
    margin-top: 0;
  }

  @media (max-width: 600px) {
    &__grid {
      grid-template-columns: minmax(0, 1fr);
    }
  }
}
